Message ID | 20230810122528.1220434-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp409022vqi; Thu, 10 Aug 2023 06:09:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFH2CvMcAZfV8or2WOkAgU6r+my+ARARWvI0QddiBj6im//ryERuNpVCZ01r7Fap+B6Hagz X-Received: by 2002:a05:6a00:cc1:b0:682:37be:c9fe with SMTP id b1-20020a056a000cc100b0068237bec9femr3301285pfv.10.1691672992593; Thu, 10 Aug 2023 06:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691672992; cv=none; d=google.com; s=arc-20160816; b=IWl/X/J9bo4lmij1uFOBF2CpTIfCQPpSgoyscBSJqmiJSoSHTBdsfmoo4hilOk3ang 5MmdRY785r3WvnD9uP6m25f6tSU8KXo3fyxY1/qOSlSU3/EdC02ypPLuMPGbzDjnMC4m IVwyyyNs+SUkd0QOCTxdAg5xvvP1WIO58D5LgvrGRoz0+zxOlV/z4pOF4+3FFVPeETtw FlHkCSU59fU0GbtXcGVCIO4wpgOZi35ott9XDOMxvHsmE0Z9rurQT52Hr7oIvdjqFiGF fKBCj/3Ol/9q+rDCV0Ar3tDB4hP0nM3iAhAScQ6oKjixSIm5dV510BezpPuj6j2FQHDF /U9g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tGHLahA8TlYBy7zz8/mf3T9pHpbyYP05WLJPtAuuQOA=; fh=bFiconCAXkrW0fZVE558isz0sKjGAHVODTTSsgDfnkM=; b=kJWebYscQRVwCV67Q+1nOXkaecnoyASzRS1nzOfEgtr6kS1kYRbsz1fQYd7fM68SQX qbYGjYp0jl9VqAPR90JDAb0Ks4lcuG2ePe4R6An0X0Oqpk9DO4fcrBroY927GS7s6vaK gyG8Q3HLJ46FpPIJ8dgvwthiu3GTJZmelpFYRozS8O92WQpPur9GwjQrL9M+ticNgxca nyAou0vVqYcUaTbvz1xtTGRCUnpBxtbr3PiLXvCeFXiI6hq0wj8dcHcQi2O2mh4CI+AS BHPaV+7qUsV1uHS7xEWURRRn97WrXUuOISDJajn8Dx4a+da7/9i2n5RyYCya0/VISg13 kD9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AerNdbBB; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t37-20020a056a0013a500b0066d45f035a5si1525428pfg.320.2023.08.10.06.09.33; Thu, 10 Aug 2023 06:09:52 -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=AerNdbBB; 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 S234904AbjHJMZh (ORCPT <rfc822;lanlanxiyiji@gmail.com> + 99 others); Thu, 10 Aug 2023 08:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230240AbjHJMZg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 08:25:36 -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 9CC1EE54 for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 05:25:35 -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 32CB7615F6 for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 12:25:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E78B0C433C8; Thu, 10 Aug 2023 12:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691670334; bh=1f1uo4HhIlgH6LQc+YKtqnOOYeuciSTPT0zrCjcnXio=; h=From:To:Cc:Subject:Date:From; b=AerNdbBBddvE2On+cYp4dMdrRdmJXjHtrNolxFfAV6vrZ2QzZ1qT0twkSqjmM23yC K5fy8gieyWVpD5iQoxXB0jSUKvbzzKe9BORAnv0WHXgirr0mUJKYdAeEkBbkEw2WhR 27HVE3jF6a/HaNxFGrLK5dR6KsuhFT/ecpVn2QgZTW9fCLPO7DCRTggzjdq9fBTR48 BzvpjUAJ5KcEs5Gmgyc1Z9Kn3Yy05orERx1bhHepK0A18Jo3rXnoMVktfxTLjNCFjr ZhSdNpD3GJBtyvtMtgL2G5/ffwXQso5G+mFSH92Rcw5LObLD7JEvwFrfHQPjzR8WNO 3h4ggjR0pZfaQ== From: Arnd Bergmann <arnd@kernel.org> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Arnd Bergmann <arnd@arndb.de>, Geoff Levand <geoff@infradead.org>, Petr Machata <petrm@nvidia.com>, Piotr Raczynski <piotr.raczynski@intel.com>, Wolfram Sang <wsa+renesas@sang-engineering.com>, Liang He <windhl@126.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ethernet: ldmvsw: mark ldmvsw_open() static Date: Thu, 10 Aug 2023 14:25:15 +0200 Message-Id: <20230810122528.1220434-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773847700047803578 X-GMAIL-MSGID: 1773847700047803578 |
Series |
[1/2] ethernet: ldmvsw: mark ldmvsw_open() static
|
|
Commit Message
Arnd Bergmann
Aug. 10, 2023, 12:25 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The function is exported for no reason and should just be static: drivers/net/ethernet/sun/ldmvsw.c:127:5: error: no previous prototype for 'ldmvsw_open' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/net/ethernet/sun/ldmvsw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Thu, Aug 10, 2023 at 02:25:15PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The function is exported for no reason and should just be static: > > drivers/net/ethernet/sun/ldmvsw.c:127:5: error: no previous prototype for 'ldmvsw_open' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Simon Horman <horms@kernel.org> Tested-by: Simon Horman <horms@kernel.org> # build-tested
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Thu, 10 Aug 2023 14:25:15 +0200 you wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The function is exported for no reason and should just be static: > > drivers/net/ethernet/sun/ldmvsw.c:127:5: error: no previous prototype for 'ldmvsw_open' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > [...] Here is the summary with links: - [1/2] ethernet: ldmvsw: mark ldmvsw_open() static https://git.kernel.org/netdev/net-next/c/ea6f782fe584 - [2/2] ethernet: atarilance: mark init function static https://git.kernel.org/netdev/net-next/c/7191c140faa2 You are awesome, thank you!
diff --git a/drivers/net/ethernet/sun/ldmvsw.c b/drivers/net/ethernet/sun/ldmvsw.c index 734a817d3c945..a9a6670b5ff1f 100644 --- a/drivers/net/ethernet/sun/ldmvsw.c +++ b/drivers/net/ethernet/sun/ldmvsw.c @@ -124,7 +124,7 @@ static void vsw_set_rx_mode(struct net_device *dev) return sunvnet_set_rx_mode_common(dev, port->vp); } -int ldmvsw_open(struct net_device *dev) +static int ldmvsw_open(struct net_device *dev) { struct vnet_port *port = netdev_priv(dev); struct vio_driver_state *vio = &port->vio; @@ -136,7 +136,6 @@ int ldmvsw_open(struct net_device *dev) return 0; } -EXPORT_SYMBOL_GPL(ldmvsw_open); #ifdef CONFIG_NET_POLL_CONTROLLER static void vsw_poll_controller(struct net_device *dev)