Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5765900rwl; Tue, 4 Apr 2023 03:23:33 -0700 (PDT) X-Google-Smtp-Source: AKy350aVa4T98gnGTjIQNuCwJMySO03L+T/yxo4pYfqqgfp0dz6+O/P+9iOyUyJ8RM4JFVyGuCte X-Received: by 2002:a17:906:71d8:b0:932:e9c7:c32 with SMTP id i24-20020a17090671d800b00932e9c70c32mr1844929ejk.59.1680603813506; Tue, 04 Apr 2023 03:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680603813; cv=none; d=google.com; s=arc-20160816; b=kgq+JpdBA40mnQrACix64+aXsCcnEuzW9JPE4gcKRS3MwVGTD1UB7MUTe+YZRAYoyi ZTE45k/7S5WWagfjRvhwrRzWnpSyJPgRj4lP0DfictTlD6Pn1/hjVBCoFEXhfkYvqvzr 3ef0hae8KdzFZ0mFBbH7/ykFlEAm4+FbewxzYnj7XQMJfV+mbwMJVlMXXpgBnx2xKENS aWxRYc786Eo7YkFe83rDk8c7+2Ui8KBrmpt5ZmELgFZS3lio3skcvooTUJVIBLHGEa4s habaluidifRA8xlkVLqYlIr/sEbzh4X8NyOAqVPAHms3I1htBrcZ79hSG5OvTD9HLPSG ZzMA== 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; bh=tW5J68nFnbreTSm3w8xohyzS71EHWc94SwTJKQbbDZ0=; b=f1+K70PcxtkyQknfUOLQV/nG2uuDEaSOPgCKbXlO2UaonfqgMt/q02rjm4/TCXF5CH ZWMjSv6TFyanA0PpTPuuB9rKw6K/DPvfhy8HJsDCNxhqtCptnbSZf9JBDF5GIcSESzTu qv9c4rDPB+SBk/9AtL7o8EQE3kBimR6sylhhIkHOTo5UI0PF48FZcc7a4L0+DvjgY4xU vz/cI/Ry2CCeU5CZISvfJuHyu1NpAnViiwcuebygcwUrZM1264ZW//m8GTVHx8S8aNhz jFAWn0vP29B9nDQfFjlpuFI8ibpLRvD33gblTuh9ijNecL8cugJpwidIded+lJ+CYMVy Nr0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a170906c40600b0092a9c23d2dasi10113338ejz.383.2023.04.04.03.23.08; Tue, 04 Apr 2023 03:23: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234489AbjDDKUG (ORCPT + 99 others); Tue, 4 Apr 2023 06:20:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234459AbjDDKTj (ORCPT ); Tue, 4 Apr 2023 06:19:39 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B30BBCF for ; Tue, 4 Apr 2023 03:18:59 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pjdkU-00008E-4U; Tue, 04 Apr 2023 12:18:46 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pjdkT-008tRv-DJ; Tue, 04 Apr 2023 12:18:45 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pjdkR-005nnF-M9; Tue, 04 Apr 2023 12:18:43 +0200 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: [PATCH net-next v1 3/7] net: dsa: microchip: ksz8: Make ksz8_r_sta_mac_table() static Date: Tue, 4 Apr 2023 12:18:38 +0200 Message-Id: <20230404101842.1382986-4-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230404101842.1382986-1-o.rempel@pengutronix.de> References: <20230404101842.1382986-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 As ksz8_r_sta_mac_table() is only used within ksz8795.c, there is no need to export it. Make the function static for better encapsulation. Signed-off-by: Oleksij Rempel --- drivers/net/dsa/microchip/ksz8.h | 2 -- drivers/net/dsa/microchip/ksz8795.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/dsa/microchip/ksz8.h b/drivers/net/dsa/microchip/ksz8.h index ad2c3a72a576..d87f8ebc6323 100644 --- a/drivers/net/dsa/microchip/ksz8.h +++ b/drivers/net/dsa/microchip/ksz8.h @@ -21,8 +21,6 @@ int ksz8_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val); int ksz8_w_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 val); int ksz8_r_dyn_mac_table(struct ksz_device *dev, u16 addr, u8 *mac_addr, u8 *fid, u8 *src_port, u8 *timestamp, u16 *entries); -int ksz8_r_sta_mac_table(struct ksz_device *dev, u16 addr, - struct alu_struct *alu); void ksz8_w_sta_mac_table(struct ksz_device *dev, u16 addr, struct alu_struct *alu); void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt); diff --git a/drivers/net/dsa/microchip/ksz8795.c b/drivers/net/dsa/microchip/ksz8795.c index ee68e166fc44..fc079d6eee80 100644 --- a/drivers/net/dsa/microchip/ksz8795.c +++ b/drivers/net/dsa/microchip/ksz8795.c @@ -457,8 +457,8 @@ int ksz8_r_dyn_mac_table(struct ksz_device *dev, u16 addr, u8 *mac_addr, return rc; } -int ksz8_r_sta_mac_table(struct ksz_device *dev, u16 addr, - struct alu_struct *alu) +static int ksz8_r_sta_mac_table(struct ksz_device *dev, u16 addr, + struct alu_struct *alu) { u32 data_hi, data_lo; const u8 *shifts; -- 2.39.2