Skip to contentSkip to conversation

linux-next: build failure after merge of the nfs tree

PATCH Stephen Rothwell 2 participants 2 messages Sep 15, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Trond,

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

fs/nfs/blocklayout/extent_tree.c: In function 'ext_tree_prepare_commit':
fs/nfs/blocklayout/extent_tree.c:540:3: error: implicit declaration of function '__vmalloc' [-Werror=implicit-function-declaration]
start_p = __vmalloc(buffer_size, GFP_NOFS, PAGE_KERNEL);
^
fs/nfs/blocklayout/extent_tree.c:540:11: warning: assignment makes pointer from integer without a cast

   start_p = __vmalloc(buffer_size, GFP_NOFS, PAGE_KERNEL);
           ^

Caused by commit 34dc93c2fc04 ("pnfs/blocklayout: allocate separate pages for the layoutcommit payload").

I added the following fix patch for today:

From: Stephen Rothwell <[email protected]>
Date: Mon, 15 Sep 2014 17:01:32 +1000
Subject: [PATCH] pnfs/blocklayout: include vmalloc.h for __vmalloc

---
 fs/nfs/blocklayout/extent_tree.c | 2 ++
 1 file changed, 2 insertions(+)
fs/nfs/blocklayout/extent_tree.c +2 -0
index 93193616205a..31d0b5e53dfd 100644
@@ -2,6 +2,8 @@
  * Copyright (c) 2014 Christoph Hellwig.
  */
 
+#include <linux/vmalloc.h>
+
 #include "blocklayout.h"
 
 #define NFSDBG_FACILITY		NFSDBG_PNFS_LD
Signature · 5 lines
2.1.0

-- 
Cheers,
Stephen Rothwell                    [email protected]
Reviewed-by
#1 lore raw

Thanks Stephen!

Trond, can you just pick up the patch? Considered it:

Quoted 46 lines · Stephen Rothwell

Hi Trond,

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

fs/nfs/blocklayout/extent_tree.c: In function 'ext_tree_prepare_commit':
fs/nfs/blocklayout/extent_tree.c:540:3: error: implicit declaration of function '__vmalloc' [-Werror=implicit-function-declaration]

   start_p = __vmalloc(buffer_size, GFP_NOFS, PAGE_KERNEL);
   ^
fs/nfs/blocklayout/extent_tree.c:540:11: warning: assignment makes pointer from integer without a cast
   start_p = __vmalloc(buffer_size, GFP_NOFS, PAGE_KERNEL);
           ^

Caused by commit 34dc93c2fc04 ("pnfs/blocklayout: allocate separate pages for the layoutcommit payload").

I added the following fix patch for today:

From: Stephen Rothwell <[email protected]>
Date: Mon, 15 Sep 2014 17:01:32 +1000
Subject: [PATCH] pnfs/blocklayout: include vmalloc.h for __vmalloc

---
 fs/nfs/blocklayout/extent_tree.c | 2 ++
 1 file changed, 2 insertions(+)
fs/nfs/blocklayout/extent_tree.c +2 -0
index 93193616205a..31d0b5e53dfd 100644
@@ -2,6 +2,8 @@
  * Copyright (c) 2014 Christoph Hellwig.
  */
 
+#include <linux/vmalloc.h>
+
 #include "blocklayout.h"
 
 #define NFSDBG_FACILITY		NFSDBG_PNFS_LD
Signature · 5 lines
2.1.0

-- 
Cheers,
Stephen Rothwell                    [email protected]

---end quoted text---