Skip to contentSkip to conversation

arm, pm, vmpressure: add missing slab.h includes

PATCH In review Tejun Heo 2 participants 2 messages Jan 28, 2014

Subsystems (8)
lore
Share & tools
lore

Tejun Heo

author maintainer
#0 lore raw

PATCH 1/1 arm, pm, vmpressure: add missing slab.h includes

arch/arm/mach-tegra/pm.c, kernel/power/console.c and mm/vmpressure.c were somehow getting slab.h indirectly through cgroup.h which in turn was getting it indirectly through xattr.h. A scheduled cgroup change drops xattr.h inclusion from cgroup.h and breaks compilation of these three files. Add explicit slab.h includes to the three files.

A pending cgroup patch depends on this change and it'd be great if this can be routed through cgroup/for-3.14-fixes branch.

Cc Stephen Warren <[email protected]>
Cc Thierry Reding <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Balbir Singh <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>

---
If you guys are okay with this going through cgroup/for-3.14-fixes, can you please ack it?

Thanks!

 arch/arm/mach-tegra/pm.c |    1 +
 kernel/power/console.c   |    1 +
 mm/vmpressure.c          |    1 +
 3 files changed, 3 insertions(+)
arch/arm/mach-tegra/pm.c +1 -0
@@ -24,6 +24,7 @@
 #include <linux/cpu_pm.h>
 #include <linux/suspend.h>
 #include <linux/err.h>
+#include <linux/slab.h>
 #include <linux/clk/tegra.h>
 
 #include <asm/smp_plat.h>
kernel/power/console.c +1 -0
@@ -9,6 +9,7 @@
 #include <linux/kbd_kern.h>
 #include <linux/vt.h>
 #include <linux/module.h>
+#include <linux/slab.h>
 #include "power.h"
 
 #define SUSPEND_CONSOLE	(MAX_NR_CONSOLES-1)
mm/vmpressure.c +1 -0
@@ -19,6 +19,7 @@
 #include <linux/mm.h>
 #include <linux/vmstat.h>
 #include <linux/eventfd.h>
+#include <linux/slab.h>
 #include <linux/swap.h>
 #include <linux/printk.h>
 #include <linux/vmpressure.h>
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Tejun Heo

arch/arm/mach-tegra/pm.c, kernel/power/console.c and mm/vmpressure.c were somehow getting slab.h indirectly through cgroup.h which in turn was getting it indirectly through xattr.h. A scheduled cgroup change drops xattr.h inclusion from cgroup.h and breaks compilation of these three files. Add explicit slab.h includes to the three files.

A pending cgroup patch depends on this change and it'd be great if this can be routed through cgroup/for-3.14-fixes branch.