summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/amd
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-08-10 14:25:16 +0200
committerJakub Kicinski <kuba@kernel.org>2023-08-11 18:24:02 -0700
commit7191c140faa2631dd28d382ec53fb94d47c170cc (patch)
tree918e485b282d88fa999662a66c3a22bd56b6cdf2 /drivers/net/ethernet/amd
parentea6f782fe5841249456c4b64c38b9c4508e05529 (diff)
downloadlwn-7191c140faa2631dd28d382ec53fb94d47c170cc.tar.gz
lwn-7191c140faa2631dd28d382ec53fb94d47c170cc.zip
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>
Diffstat (limited to 'drivers/net/ethernet/amd')
-rw-r--r--drivers/net/ethernet/amd/atarilance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/atarilance.c b/drivers/net/ethernet/amd/atarilance.c
index ec704222925d..751454d305c6 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;