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

Stephen Rothwell
2021-07-21T01:27:05Z

[-- Attachment #1: Type: text/plain, Size: 3076 bytes --]

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

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]