]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: fix switchdev_port_attr_set stub when CONFIG_SWITCHDEV=n
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 15 Feb 2021 21:09:11 +0000 (23:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 21:15:10 +0000 (13:15 -0800)
commit22bfa1e76085677176d3f4b9f8acb0ab5f31a353
treee8328795d10457da1576589b1d5d9d1318b7bd69
parentec45538134ef7a0ca3434796e92452a4c3fc5128
net: bridge: fix switchdev_port_attr_set stub when CONFIG_SWITCHDEV=n

The switchdev_port_attr_set function prototype was updated only for the
case where CONFIG_SWITCHDEV=y|m, leaving a prototype mismatch with the
stub definition for the disabled case. This results in a build error, so
update that function too.

Fixes: 53df3ad65231 ("net: bridge: propagate extack through switchdev_port_attr_set")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/switchdev.h