Skip to contentSkip to conversation

res_counter: Add missing #include <linux/errno.h>

PATCH In review Geert Uytterhoeven 2 participants 2 messages Mar 9, 2013 Linux-next tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 res_counter: Add missing #include <linux/errno.h>

Commit 9259826ccb8165f797e4c2c9d17925b41af5f6ae ("res_counter: remove include of cgroup.h from res_counter.h") removed the indirect inclusion of <linux/errno.h>, breaking the build on m68k and sparc:

In file included from mm/memcontrol.c:29:
include/linux/res_counter.h: In function ‘res_counter_set_limit’:
include/linux/res_counter.h:203: error: ‘EBUSY’ undeclared (first use in this function) include/linux/res_counter.h:203: error: (Each undeclared identifier is reported only once include/linux/res_counter.h:203: error: for each function it appears in.)

---
http://kisskb.ellerman.id.au/kisskb/buildresult/8342952/
http://kisskb.ellerman.id.au/kisskb/buildresult/8342757/
http://kisskb.ellerman.id.au/kisskb/buildresult/8342767/

 include/linux/res_counter.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/res_counter.h +1 -0
index a83a849..f9822dc 100644
@@ -13,6 +13,7 @@
  * info about what this counter is.
  */
 
+#include <linux/errno.h>
 #include <linux/spinlock.h>
 
 /*
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Geert Uytterhoeven

Commit 9259826ccb8165f797e4c2c9d17925b41af5f6ae ("res_counter: remove include of cgroup.h from res_counter.h") removed the indirect inclusion of <linux/errno.h>, breaking the build on m68k and sparc:

In file included from mm/memcontrol.c:29:
include/linux/res_counter.h: In function ‘res_counter_set_limit’:
include/linux/res_counter.h:203: error: ‘EBUSY’ undeclared (first use in this function) include/linux/res_counter.h:203: error: (Each undeclared identifier is reported only once include/linux/res_counter.h:203: error: for each function it appears in.)