Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ethernet: ldmvsw: mark ldmvsw_open() static

The function is exported for no reason and should just be static:

drivers/net/ethernet/sun/ldmvsw.c:127:5: error: no previous prototype for 'ldmvsw_open' [-Werror=missing-prototypes]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org> # build-tested
Link: https://lore.kernel.org/r/20230810122528.1220434-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Arnd Bergmann and committed by
Jakub Kicinski
ea6f782f 80f9ad04

+1 -2
+1 -2
drivers/net/ethernet/sun/ldmvsw.c
··· 124 124 return sunvnet_set_rx_mode_common(dev, port->vp); 125 125 } 126 126 127 - int ldmvsw_open(struct net_device *dev) 127 + static int ldmvsw_open(struct net_device *dev) 128 128 { 129 129 struct vnet_port *port = netdev_priv(dev); 130 130 struct vio_driver_state *vio = &port->vio; ··· 136 136 137 137 return 0; 138 138 } 139 - EXPORT_SYMBOL_GPL(ldmvsw_open); 140 139 141 140 #ifdef CONFIG_NET_POLL_CONTROLLER 142 141 static void vsw_poll_controller(struct net_device *dev)