Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 3 participants 4 messages Sep 8, 2014 – Sep 10, 2014

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

Hi John,

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

drivers/net/wireless/ath/ath5k/debug.c: In function 'open_file_eeprom':
drivers/net/wireless/ath/ath5k/debug.c:933:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
buf = vmalloc(eesize);
^
drivers/net/wireless/ath/ath5k/debug.c:933:6: warning: assignment makes pointer from integer without a cast

  buf = vmalloc(eesize);
      ^

drivers/net/wireless/ath/ath5k/debug.c:960:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
vfree(buf);
^

Caused by commit db906eb2101b ("ath5k: added debugfs file for dumping eeprom"). Also reported by Guenter Roeck.

I have used Geert Uytterhoeven's suggested fix of including vmalloc.h and so added this patch for today:

From: Stephen Rothwell <[email protected]>
Date: Mon, 8 Sep 2014 18:39:23 +1000
Subject: [PATCH] ath5k: fix debugfs addition

---
 drivers/net/wireless/ath/ath5k/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath5k/debug.c +1 -0
index 30e4e1fd4b04..399728618fb9 100644
@@ -62,6 +62,7 @@
 
 #include <linux/export.h>
 #include <linux/moduleparam.h>
+#include <linux/vmalloc.h>
 
 #include <linux/seq_file.h>
 #include <linux/list.h>
Signature · 5 lines
2.1.0

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

Hi Dave,

Quoted 48 lines · On Mon, 8 Sep 2014 18:42:53 +1000 Stephen Rothwell <[email protected]> wrote:

Hi John,

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

drivers/net/wireless/ath/ath5k/debug.c: In function 'open_file_eeprom':
drivers/net/wireless/ath/ath5k/debug.c:933:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
buf = vmalloc(eesize);
^
drivers/net/wireless/ath/ath5k/debug.c:933:6: warning: assignment makes pointer from integer without a cast

  buf = vmalloc(eesize);
      ^

drivers/net/wireless/ath/ath5k/debug.c:960:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
vfree(buf);
^

Caused by commit db906eb2101b ("ath5k: added debugfs file for dumping eeprom"). Also reported by Guenter Roeck.

I have used Geert Uytterhoeven's suggested fix of including vmalloc.h and so added this patch for today:

From: Stephen Rothwell <[email protected]>
Date: Mon, 8 Sep 2014 18:39:23 +1000
Subject: [PATCH] ath5k: fix debugfs addition

---
 drivers/net/wireless/ath/ath5k/debug.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/wireless/ath/ath5k/debug.c +1 -0
index 30e4e1fd4b04..399728618fb9 100644
@@ -62,6 +62,7 @@
 
 #include <linux/export.h>
 #include <linux/moduleparam.h>
+#include <linux/vmalloc.h>
 
 #include <linux/seq_file.h>
 #include <linux/list.h>
Signature · 1 line
2.1.0

This fix patch is now needed in the net-next tree ...

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
maintainer
#2 lore raw

From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Sep 2014 09:28:19 +1000

Quoted 1 line

Hi Dave,

...

Quoted 1 line

This fix patch is now needed in the net-next tree ...

Applied thanks Stephen.

#3 lore raw
Quoted 8 lines · David Miller

From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Sep 2014 09:28:19 +1000

Quoted 1 line

Hi Dave,

...

Quoted 1 line

This fix patch is now needed in the net-next tree ...

Applied thanks Stephen.

Doh! Sorry I missed that one...

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.