From patchwork Wed Sep 27 23:08:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ausmus X-Patchwork-Id: 9975025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6301160375 for ; Wed, 27 Sep 2017 23:09:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EF3B2937E for ; Wed, 27 Sep 2017 23:09:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4322D29384; Wed, 27 Sep 2017 23:09:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C8BFA2937E for ; Wed, 27 Sep 2017 23:09:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E9EB6E258; Wed, 27 Sep 2017 23:09:43 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0DE1F6E258 for ; Wed, 27 Sep 2017 23:09:42 +0000 (UTC) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2017 16:09:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,446,1500966000"; d="scan'208";a="317022561" Received: from jausmus-gentoo-dev5.jf.intel.com ([10.54.75.124]) by fmsmga004.fm.intel.com with ESMTP; 27 Sep 2017 16:09:39 -0700 From: James Ausmus To: intel-gfx@lists.freedesktop.org Date: Wed, 27 Sep 2017 16:08:27 -0700 Message-Id: <20170927230827.25927-1-james.ausmus@intel.com> X-Mailer: git-send-email 2.14.1 Subject: [Intel-gfx] [PATCH i-g-t] Fix compilation on some distros X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Petri Latvala --- 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 #include #include +#include #include #include #include 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 #include +#include #include #include #include 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 #include #include +#include #include #include #include