Skip to content

Commit c0bfc54

Browse files
bebarinowildea01
authored andcommitted
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 <ttnguyen@apm.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent b128cb5 commit c0bfc54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/perf/xgene_pmu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/interrupt.h>
2626
#include <linux/io.h>
2727
#include <linux/mfd/syscon.h>
28+
#include <linux/module.h>
2829
#include <linux/of_address.h>
2930
#include <linux/of_fdt.h>
3031
#include <linux/of_irq.h>

0 commit comments

Comments
 (0)