Thread (10 messages) 10 messages, 6 authors, 2011-01-10
STALE5640d

[PATCH] i2c-i801: Add missing <linux/slab.h> include.

From: Michael Cree <hidden>
Date: 2011-01-10 04:45:16
Also in: lkml
Subsystem: i2c subsystem, i2c subsystem host drivers, i2c/smbus controller drivers for pc, the rest · Maintainers: Andi Shyti, Jean Delvare, Linus Torvalds

Causes compile error on Alpha, but not on x86 because its version
of <asm/pci.h> includes <linux/slab.h>.  In any case, it's a bug
in the driver.

Signed-off-by: Michael Cree <redacted>
---

Since no one else has submitted the patch here it goes.  Shall I send it
directly to Linus (since I plan to send some Alpha specific patches very
soon) or will the subsytem maintainers pick it up?

 drivers/i2c/busses/i2c-i801.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index 02835ce..7979aef 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -72,6 +72,7 @@
 #include <linux/acpi.h>
 #include <linux/io.h>
 #include <linux/dmi.h>
+#include <linux/slab.h>
 
 /* I801 SMBus address offsets */
 #define SMBHSTSTS(p)	(0 + (p)->smba)
-- 
1.7.2.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help