Message ID | 20230810122528.1220434-2-arnd@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 7191c140faa2631dd28d382ec53fb94d47c170cc |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/2] ethernet: ldmvsw: mark ldmvsw_open() static | expand |
On 2023/8/10 20:25, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The init function is only referenced locally, so it should be static to > avoid this warning: > > drivers/net/ethernet/amd/atarilance.c:370:28: error: no previous prototype for 'atarilance_probe' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Yang Yingliang <yangyingliang@huawei.com>
diff --git a/drivers/net/ethernet/amd/atarilance.c b/drivers/net/ethernet/amd/atarilance.c index ec704222925d8..751454d305c64 100644 --- a/drivers/net/ethernet/amd/atarilance.c +++ b/drivers/net/ethernet/amd/atarilance.c @@ -367,7 +367,7 @@ static void *slow_memcpy( void *dst, const void *src, size_t len ) } -struct net_device * __init atarilance_probe(void) +static struct net_device * __init atarilance_probe(void) { int i; static int found;