Skip to contentSkip to conversation

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

PATCH Michael Ellerman 3 participants 3 messages Jun 12, 2015 1 message not in the archive

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

Hi all,

After merging the tip tree, today's linux-next build (x86_allmodconfig) failed like this:

drivers/net/ethernet/cavium/liquidio/request_manager.c: In function 'octeon_init_instr_queue':
drivers/net/ethernet/cavium/liquidio/request_manager.c:111:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]

    iq->request_list = vmalloc(sizeof(*iq->request_list) * num_descs);
    ^
  drivers/net/ethernet/cavium/liquidio/request_manager.c: In function 'octeon_delete_instr_queue':
  drivers/net/ethernet/cavium/liquidio/request_manager.c:178:3: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
     vfree(iq->request_list);
     ^
  drivers/net/ethernet/cavium/liquidio/octeon_device.c: In function 'octeon_free_device_mem':
  drivers/net/ethernet/cavium/liquidio/octeon_device.c:653:4: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
      vfree(oct->droq[i]);
      ^

And so on.

Caused by the interaction of commit d6472302f242 "x86/mm: Decouple <linux/vmalloc.h> from <asm/io.h>" from the tip tree with commit f21fb3ed364b "Add support of Cavium Liquidio ethernet adapters" from the net-next tree.

I applied the following fix for today:

drivers/net/ethernet/cavium/liquidio/octeon_device.c +1 -0
index 2ca91657295f..4e581facae2c 100644
@@ -27,6 +27,7 @@
 #include <linux/crc32.h>
 #include <linux/kthread.h>
 #include <linux/netdevice.h>
+#include <linux/vmalloc.h>
 #include "octeon_config.h"
 #include "liquidio_common.h"
 #include "octeon_droq.h"
drivers/net/ethernet/cavium/liquidio/octeon_droq.c +1 -0
index 60a186f1609b..94b502a0cf33 100644
@@ -25,6 +25,7 @@
 #include <linux/pci.h>
 #include <linux/kthread.h>
 #include <linux/netdevice.h>
+#include <linux/vmalloc.h>
 #include "octeon_config.h"
 #include "liquidio_common.h"
 #include "octeon_droq.h"
drivers/net/ethernet/cavium/liquidio/request_manager.c +1 -0
index adb428463495..cd58660dd161 100644
@@ -26,6 +26,7 @@
 #include <linux/pci.h>
 #include <linux/kthread.h>
 #include <linux/netdevice.h>
+#include <linux/vmalloc.h>
 #include "octeon_config.h"
 #include "liquidio_common.h"
 #include "octeon_droq.h"

cheers

A message that is not in the archive (sent off-list or not yet received): BY1PR0701MB17063C25D627AF725A9E0D46FEBB0@BY1PR0701MB1706.namprd07.prod.outlook.com

maintainer
#2 lore raw

From: "Chickles, Derek" <[email protected]>
Date: Fri, 12 Jun 2015 15:59:54 +0000

Quoted 14 lines
Quoted 14 lines

-----Original Message-----
From: Michael Ellerman [mailto:[email protected]]
Sent: Friday, June 12, 2015 3:51 AM
To: Thomas Gleixner; Ingo Molnar; H. Peter Anvin; Peter Zijlstra; David S.Miller
Cc: [email protected]; [email protected]; [email protected]; Chickles, Derek; Burla, Satananda; Manlunas, Felix; Richter, Robert; Makarov, Aleksey; Vatsavayi, Raghu
Subject: linux-next: build failure after merge of the tip tree

Hi all,

After merging the tip tree, today's linux-next build (x86_allmodconfig) failed like this:

...

Quoted 8 lines
Quoted 8 lines

And so on.

Caused by the interaction of commit d6472302f242 "x86/mm: Decouple <linux/vmalloc.h> from <asm/io.h>" from the tip tree with commit f21fb3ed364b
"Add support of Cavium Liquidio ethernet adapters" from the net-next tree.

I applied the following fix for today:

...

Quoted 1 line

Thanks. Much appreciated.

This doesn't work, neither of these emails are a formal proper submission of a fix for this build failure.

One of you has to do the work to formally submit the patch to netdev with a full signoff and commit log message so that it gets fixed in my tree.

Thanks.

#3 lore raw
Quoted 7 lines

-----Original Message-----
From: David Miller [mailto:[email protected]]
...

Quoted 1 line

Thanks. Much appreciated.

Quoted 8 lines

This doesn't work, neither of these emails are a formal proper submission of a fix for this build failure.

One of you has to do the work to formally submit the patch to netdev with a full signoff and commit log message so that it gets fixed in my tree.

Thanks.

Yes, we're working on this. Hopefully, we'll have this submitted later today, with the build fix and sparse warning fixes.