Skip to contentSkip to conversation

gpio: pch: include linux/slab.h

PATCH In review Arnd Bergmann 3 participants 3 messages May 26, 2014 – May 27, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: pch: include linux/slab.h

The gpio-pch driver was recently enabled for compile-tests, which revealed that it is missing an include for linux/slab.h, which on ARM is not implied by any of the other headers.

drivers/gpio/gpio-pch.c +1 -0
index 83a1563..d6eac9b 100644
@@ -20,6 +20,7 @@
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
+#include <linux/slab.h>
 
 #define PCH_EDGE_FALLING	0
 #define PCH_EDGE_RISING		BIT(0)
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Arnd Bergmann

The gpio-pch driver was recently enabled for compile-tests, which revealed that it is missing an include for linux/slab.h, which on ARM is not implied by any of the other headers.

drivers/gpio/gpio-pch.c +0 -0
index 83a1563..d6eac9b 100644

drivers/gpio/gpio-pch.c line 26

Quoted 7 lines
drivers/gpio/gpio-pch.c +1 -0
@@ -20,6 +20,7 @@
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
+#include <linux/slab.h>
 
 #define PCH_EDGE_FALLING	0
 #define PCH_EDGE_RISING		BIT(0)

Good catch, thanks Arnd.

Signature · 2 lines
Jean Delvare
SUSE L3 Support
#2 lore raw
In reply to Arnd Bergmann
Quoted 5 lines · Arnd Bergmann

The gpio-pch driver was recently enabled for compile-tests, which revealed that it is missing an include for linux/slab.h, which on ARM is not implied by any of the other headers.

Oh I fixed that up as I was going over the failed build logs.

Sorry that I didn't see this first, thanks anyway!

Yours,
Linus Walleij