Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1036910rwl; Thu, 10 Aug 2023 05:41:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYOt8kox+WoWAnUTWjebQ9Fj6ws+x+5GRmDDVhkeHuGNI3SPBWWknfBKbu0L1hs2HaI6tJ X-Received: by 2002:a05:6a21:6d84:b0:132:d029:ed3d with SMTP id wl4-20020a056a216d8400b00132d029ed3dmr2548266pzb.29.1691671293374; Thu, 10 Aug 2023 05:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691671293; cv=none; d=google.com; s=arc-20160816; b=ze43m80iaNTKvU6j2hRC3exRZWXPj3Kpzc+TRvuvzSdn2VXhB0/yfXYTZ+iqjkpn+w AHYNGQrsxxM7dXlkjmW8tc2wT5J7Z9gjn+ZHWaNstLoBXK4X4ngc0Stl/QocKaHogBS9 lV6yvPnfg0pBkKx4iAgH9HmVj+G2QoW97+LcB3aFLjrI4BbA/I7oAL69qmp4d7wiuNm8 xJXioFBzq31hEHI/vNISN0J0hk+QsRVbwh0vMmJidGta/WomoB45ZAFTWdAlBPi+WxwA GaFSgBy1OYZxI+LwJqQIOWYOlAKnM74xkyfQHkCnh/hvgswVM/fBAqgXjuixsc88tXy4 gdCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aB2S0os31v4qU/SxGD0Mf+BuWdL0UDsluqSIj9waDH8=; fh=VHMJWWYSNcrRitOITgPdJA+vzqOzyWtogoaaX1/rWeE=; b=iNyeSH3nqNNdNq6ORHY7QgpWE+ccGP5LhBlyqCUAW3kuP24oC8DCjffVM/B8pWNShN k9ROwpEEUMndG5TOoTG7A/uETychZG4pe7eNZZepQu/dh1INduEDBUQOL6JmerXCyOZA FiA3cAGzsWyxPAeDBhMP/kZ27sUiUix3kxHUMtnxZuX1XLSLpEtx5pWgcnbC6t0/4dmE 5ZjJ65iIDkTgKksQiu7Er7PBulg9FjCLMTDd9p87oJkX5o33BNN78Y9aM9aJdwqn38IV tmHbvKd85NIrpWgWl0aKASQX40qcFRQKaiFii5ER7d2w9DD4YDoqwDZL49ZMmqOo943D hl/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UCUG+UaK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a056a0008cb00b00687312950a1si1531047pfu.387.2023.08.10.05.41.20; Thu, 10 Aug 2023 05:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UCUG+UaK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230240AbjHJMZo (ORCPT + 99 others); Thu, 10 Aug 2023 08:25:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235045AbjHJMZo (ORCPT ); Thu, 10 Aug 2023 08:25:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72EC02136 for ; Thu, 10 Aug 2023 05:25:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 07A8065161 for ; Thu, 10 Aug 2023 12:25:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40B8FC433C7; Thu, 10 Aug 2023 12:25:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691670342; bh=OloAD6QmGKnXstqvq00Y+1wIzRiY4JGxfjab4MiA+Yo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UCUG+UaKbFVMZ9rgnD2AroLE1C9PsQ8Q1mvArgMkR/ncOGxxpBmvZ2n55P2acCo+v rBlTdyWGsxBjjTwfPMv7TdJpnM9bqYSBI6I19btGwMDjXaNy6gzwdC3HMhPb2hB3Uh 3TRtdzVVIwWLO+6cz8EJRN95g8zzhn5A4ckz1abhvlZjSS6N725Xo9dch1PNvke7v2 rJwNyEPg/+fdgzCVxyNi9f7xkqaNvDo3Cz8Xrgr0GGCXssSaIjdnDm0fVm215fSvy4 3864eGhUBbvDZ4I9ivPs0llLT5X1c5KREGx3hi1kD/C6vTyMlnja8v6a1EiGz2DNwN AJlljoPSntnHA== From: Arnd Bergmann To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Arnd Bergmann , Haoyue Xu , Guofeng Yue , Yang Yingliang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ethernet: atarilance: mark init function static Date: Thu, 10 Aug 2023 14:25:16 +0200 Message-Id: <20230810122528.1220434-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230810122528.1220434-1-arnd@kernel.org> References: <20230810122528.1220434-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann 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 --- drivers/net/ethernet/amd/atarilance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2