Commit 7191c140 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jakub Kicinski

ethernet: atarilance: mark init function static

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: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230810122528.1220434-2-arnd@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ea6f782f
...@@ -367,7 +367,7 @@ static void *slow_memcpy( void *dst, const void *src, size_t len ) ...@@ -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; int i;
static int found; static int found;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment