Skip to content

Commit

Permalink
ethernet: atarilance: mark init function static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and Jakub Kicinski committed Aug 12, 2023
1 parent ea6f782 commit 7191c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/amd/atarilance.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7191c14

Please sign in to comment.