All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ausmus, James" <james.ausmus@intel.com>
To: Petri Latvala <petri.latvala@intel.com>
Cc: Intel GFX <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] Fix compilation on some distros
Date: Tue, 3 Oct 2017 16:38:29 -0700	[thread overview]
Message-ID: <CAA1Hj7SpYy+1k6iwHXh7Dx6rr+w1mghFU9OrDFL7nD5TZHOP7A@mail.gmail.com> (raw)
In-Reply-To: <20170928084016.s2kss5t4shyjp3kh@platvala-desk.ger.corp.intel.com>

On Thu, Sep 28, 2017 at 1:40 AM, Petri Latvala <petri.latvala@intel.com> wrote:
> On Wed, Sep 27, 2017 at 04:08:27PM -0700, James Ausmus wrote:
>> Some distros (such as Gentoo) are removing the include of
>> sys/sysmacros.h from sys/types.h. Explicitly include sysmacros.h in
>> files where we use the minor() and major() functions.
>>
>> Signed-off-by: James Ausmus <james.ausmus@intel.com>
>
> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
>

Thanks for the review! Can you push? I don't have access rights.

Thanks!

-James

>
>
>> ---
>>  lib/igt_debugfs.c | 1 +
>>  lib/igt_sysfs.c   | 1 +
>>  tools/aubdump.c   | 1 +
>>  3 files changed, 3 insertions(+)
>>
>> diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
>> index 1e8c8cc3cd44..60b29e3a025a 100644
>> --- a/lib/igt_debugfs.c
>> +++ b/lib/igt_debugfs.c
>> @@ -25,6 +25,7 @@
>>  #include <inttypes.h>
>>  #include <sys/stat.h>
>>  #include <sys/mount.h>
>> +#include <sys/sysmacros.h>
>>  #include <dirent.h>
>>  #include <errno.h>
>>  #include <stdio.h>
>> diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
>> index 817678bc28ed..f4e306003b01 100644
>> --- a/lib/igt_sysfs.c
>> +++ b/lib/igt_sysfs.c
>> @@ -24,6 +24,7 @@
>>
>>  #include <inttypes.h>
>>  #include <sys/stat.h>
>> +#include <sys/sysmacros.h>
>>  #include <sys/mount.h>
>>  #include <errno.h>
>>  #include <stdarg.h>
>> diff --git a/tools/aubdump.c b/tools/aubdump.c
>> index 78d183f49adc..ee4d99b06ed1 100644
>> --- a/tools/aubdump.c
>> +++ b/tools/aubdump.c
>> @@ -30,6 +30,7 @@
>>  #include <stdarg.h>
>>  #include <fcntl.h>
>>  #include <sys/types.h>
>> +#include <sys/sysmacros.h>
>>  #include <sys/stat.h>
>>  #include <sys/ioctl.h>
>>  #include <unistd.h>
>> --
>> 2.14.1
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 


James Ausmus
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-10-03 23:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-27 23:08 [PATCH i-g-t] Fix compilation on some distros James Ausmus
2017-09-27 23:27 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-09-28  3:33 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-09-28  8:40 ` [PATCH i-g-t] " Petri Latvala
2017-10-03 23:38   ` Ausmus, James [this message]
2017-10-04 10:39     ` Petri Latvala
2017-09-28 15:58 ` ✗ Fi.CI.IGT: warning for " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA1Hj7SpYy+1k6iwHXh7Dx6rr+w1mghFU9OrDFL7nD5TZHOP7A@mail.gmail.com \
    --to=james.ausmus@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.