From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Thu, 26 Jan 2017 12:21:31 +0000 Subject: [PATCH] perf: xgene: Include module.h In-Reply-To: References: <20170125234658.12071-1-sboyd@codeaurora.org> Message-ID: <20170126122131.GF14167@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Jan 25, 2017 at 07:29:30PM -0800, Tai Tri Nguyen wrote: > On Wed, Jan 25, 2017 at 3:46 PM, Stephen Boyd wrote: > > I ran into a build error when I disabled CONFIG_ACPI and tried to > > compile this driver: > > > > drivers/perf/xgene_pmu.c:1242:1: warning: data definition has no type or storage class > > MODULE_DEVICE_TABLE(of, xgene_pmu_of_match); > > ^ > > drivers/perf/xgene_pmu.c:1242:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] > > > > Include module.h for the MODULE_DEVICE_TABLE macro that's > > implicitly included through ACPI. > > > > Cc: Tai Nguyen > > Signed-off-by: Stephen Boyd > > --- > > drivers/perf/xgene_pmu.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c > > index a8ac4bcef2c0..fb3281962a6d 100644 > > --- a/drivers/perf/xgene_pmu.c > > +++ b/drivers/perf/xgene_pmu.c > > @@ -20,6 +20,7 @@ > > */ > > > > #include > > +#include > > Please fix alphabetic order of the include file. > > Tested-by: Tai Nguyen I've picked this up with the includes put in the correct order. Thanks, Will