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

2 messages, 2 authors, 2021-07-21 · open the first message on its own page

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

From: Stephen Rothwell <hidden>
Date: 2021-07-21 01:27:07

Hi all,

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

In file included from include/net/dsa.h:23,
                 from net/ethernet/eth.c:59:
include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
  410 | {
      | ^
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
  399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/net/dsa.h:23,
                 from net/core/flow_dissector.c:8:
include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
  410 | {
      | ^
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
  399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/net/dsa.h:23,
                 from net/core/dev.c:102:
include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
  410 | {
      | ^
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
  399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/net/vxlan.h:9,
                 from drivers/net/ethernet/emulex/benet/be_main.c:22:
include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
  410 | {
      | ^
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
  399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/net/vxlan.h:9,
                 from drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:37:
include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
  410 | {
      | ^
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
  399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/net/vxlan.h:9,
                 from drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:50:
include/net/switchdev.h:410:1: error: expected identifier or '(' before '{' token
  410 | {
      | ^
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
  399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

  8ca07176ab00 ("net: switchdev: introduce a fanout helper for SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE")

I have used the net-next tree from next-20210720 for today.

-- 
Cheers,
Stephen Rothwell

Re: linux-next: build failure after merge of the net-next tree

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2021-07-21 10:42:57

On Wed, Jul 21, 2021 at 11:26:52AM +1000, Stephen Rothwell wrote:
include/net/switchdev.h:399:1: warning: 'switchdev_handle_fdb_del_to_device' declared 'static' but never defined [-Wunused-function]
  399 | switchdev_handle_fdb_del_to_device(struct net_device *dev,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sorry for the breakage.
https://patchwork.kernel.org/project/netdevbpf/patch/20210720173557.999534-2-vladimir.oltean@nxp.com/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help