linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] res_counter: Add missing #include <linux/errno.h>
@ 2013-03-09  8:51 Geert Uytterhoeven
  2013-03-09 10:41 ` Li Zefan
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2013-03-09  8:51 UTC (permalink / raw)
  To: Li Zefan; +Cc: Tejun Heo, linux-next, linux-kernel, 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.)

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
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(-)

diff --git a/include/linux/res_counter.h b/include/linux/res_counter.h
index a83a849..f9822dc 100644
--- a/include/linux/res_counter.h
+++ b/include/linux/res_counter.h
@@ -13,6 +13,7 @@
  * info about what this counter is.
  */
 
+#include <linux/errno.h>
 #include <linux/spinlock.h>
 
 /*
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] res_counter: Add missing #include <linux/errno.h>
  2013-03-09  8:51 [PATCH -next] res_counter: Add missing #include <linux/errno.h> Geert Uytterhoeven
@ 2013-03-09 10:41 ` Li Zefan
  0 siblings, 0 replies; 2+ messages in thread
From: Li Zefan @ 2013-03-09 10:41 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Tejun Heo, linux-next, linux-kernel

On 2013/3/9 16:51, Geert Uytterhoeven wrote:
> 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.)
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Acked-by: Li Zefan <lizefan@huawei.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-09 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-09  8:51 [PATCH -next] res_counter: Add missing #include <linux/errno.h> Geert Uytterhoeven
2013-03-09 10:41 ` Li Zefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).