From: Stephen Boyd Date: Wed, 25 Jan 2017 23:46:58 +0000 (-0800) Subject: perf: xgene: Include module.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0bfc549e96231e0ead4424de6e4933fde819d70;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git perf: xgene: Include module.h 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. Tested-by: Tai Nguyen Signed-off-by: Stephen Boyd Signed-off-by: Will Deacon --- diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c index a8ac4bcef2c0..35b5289bc5da 100644 --- a/drivers/perf/xgene_pmu.c +++ b/drivers/perf/xgene_pmu.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include