mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20230810122528.1220434-2-arnd@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ea6f782fe5
commit
7191c140fa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue