linux-next: build failure after merge of the final tree (akpm treerelated)

From: Stephen Rothwell
Date: Wed Oct 05 2011 - 04:24:07 EST

Hi all,

After merging the final tree, today's linux-next build (powerpc allyesconfig)
failed like this:

kernel/cgroup_task_counter.c: In function 'task_counter_create':
kernel/cgroup_task_counter.c:60:3: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
kernel/cgroup_task_counter.c:60:3: warning: return makes pointer from integer without a cast [enabled by default]

Caused by commit 7d8662e11b18 ("cgroups: add a task counter subsystem")
from the akpm tree.

I added the following patch for today:

From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Wed, 5 Oct 2011 19:20:15 +1100
Subject: [PATCH] cgroups: ERR_PTR needs err.h

Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
kernel/cgroup_task_counter.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/cgroup_task_counter.c b/kernel/cgroup_task_counter.c
index 2374905..201d8e3 100644
--- a/kernel/cgroup_task_counter.c
+++ b/kernel/cgroup_task_counter.c
@@ -11,6 +11,7 @@
#include <linux/cgroup.h>
#include <linux/slab.h>
#include <linux/res_counter.h>
+#include <linux/err.h>

struct task_counter {

Stephen Rothwell sfr@xxxxxxxxxxxxxxxx

Attachment: pgp00000.pgp
Description: PGP signature