Skip to contentSkip to conversation

Patch "perf: xgene: Include module.h" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Feb 23, 2018

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

perf: xgene: Include module.h

to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
perf-xgene-include-module.h.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From c0bfc549e96231e0ead4424de6e4933fde819d70 Mon Sep 17 00:00:00 2001

From: Stephen Boyd <[email protected]>
Date: Wed, 25 Jan 2017 15:46:58 -0800
Subject: perf: xgene: Include module.h

From: Stephen Boyd <[email protected]>

commit c0bfc549e96231e0ead4424de6e4933fde819d70 upstream.

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.

---
 drivers/perf/xgene_pmu.c |    1 +
 1 file changed, 1 insertion(+)
drivers/perf/xgene_pmu.c +1 -0
@@ -25,6 +25,7 @@
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/mfd/syscon.h>
+#include <linux/module.h>
 #include <linux/of_address.h>
 #include <linux/of_fdt.h>
 #include <linux/of_irq.h>

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/clk-fix-a-panic-error-caused-by-accessing-null-pointer.patch queue-4.9/perf-xgene-include-module.h.patch