gpio: pch: include linux/slab.h
Subsystems (2)
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
@@ -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)
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.Signed-off-by Arnd Bergmann <[email protected]>drivers/gpio/gpio-pch.c +0
-0
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
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.Signed-off-by Arnd Bergmann <[email protected]>
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