Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2060374lqz; Tue, 2 Apr 2024 06:19:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXajaXk7lCBqI8ELalDlbYnpE3al3grqJIc2rbkDyG7aVEHckY54Eeb13MihkgKvNdPz9Lda43SNWQ2DDpJ6X9cdzkv/tIZSW2LBwRGsg== X-Google-Smtp-Source: AGHT+IFfOadrGXQSTrH5DTQAeNnazPvaA6g8AgVucst1WZy38jPSAHUHNIVXbwGy85uqAHJ85cpO X-Received: by 2002:a92:ca4e:0:b0:368:a861:5a6b with SMTP id q14-20020a92ca4e000000b00368a8615a6bmr17752538ilo.21.1712063941229; Tue, 02 Apr 2024 06:19:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712063941; cv=pass; d=google.com; s=arc-20160816; b=iKfnxUmZWr1RL817Qt9Xo7YvxajBOv+5HUnwKb9rWGmbK4J2n84sur1M2D8CsZsB9J SyxeVLA/x7ed3AfPJFBYF3n4P/lxPo3Zei7PQbv0E13rFygGhJ7M+K/CU79B9pw4o+qS y/jT5pZtuSBheykJY33ZkPT8XVThxJVM4Z0VYzegpqDU/hsDXQbEp0YD9YlKsGDuHij5 svDlWqtOaQiqWVkHAOZtJDjVLs7MB5Ub+9LSTiKvSW2ZiZS3B1iQnNh/6gq7XMAORNMu BeOaiHHDOaiwHIpI73rMbFIQt4gWM7oUX3olWNxp8hOwCN9DLMey/u7TvDhpiukc4q1w 0iyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Nnsnp0nAVNEIAdgYvJdlxIEgq5vfICTaNZANOehMtRw=; fh=+wuPl0jVtcYGOKyQ4dCrYwpLO51Md4SLm1XlQV1l1VE=; b=cJcfQlHBIt7Mh970o4XiEZATxH4/5u2ksVfxr3nz3HrVjwuhETF9y8+a6nURo1X5Uo 7WhOiA7OELs6lm8NZto9dgNDasYHg2k+PkUmLChnp89HOt5wSBWwhst3XcnZrMdNgdk4 4S+O8HHiEi67vN8G+zT7WIh5GG/7OspohRSVv8nk8AURAfvOtf876O8jABgrLHeCNK0k 20AhzTHcfKQOa7KHM3p8ZaN6z0jc/s3SyC6tT6N/o0MTjFC8jmUlel+iszhSz/pHXhom oreKdzqCVjPZ4viCaeWYrhsQU2tB6ZCLkYvKJy56mbLOMinPeRxQZnHHVBVxNUK/LdMX qcvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-128021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128021-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s20-20020a63af54000000b005dc85a7eb1dsi11216340pgo.299.2024.04.02.06.19.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 06:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-128021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128021-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3BC4128B123 for ; Tue, 2 Apr 2024 13:16:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B3F384A4D; Tue, 2 Apr 2024 13:13:57 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8B948405D for ; Tue, 2 Apr 2024 13:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712063635; cv=none; b=FZDt9QPAnuqlgfEiHu6k/f9jvmA8jndTQMtlZkZg3zLHitdFYkzOEzAK9fnv526CpvhT1zZw+zGoikJALwi7b/i/WkoX4w1YLqabEHPsXjhIMcMF7xkjT24VK8QBt+FL5HuSPEtcqP5pV7Qf5oxGOeVheI2RAdpjJTTyUmNu/aE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712063635; c=relaxed/simple; bh=Xo/L48jvjuEGxvq24DHYX6gDPMmtGeRmKn1eh80C+Kg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OAfg71No6o/4cpOENTIPa/iSkpaRxZbgU96Lm6ix33C+IO4Qoac5Ed+V0tzgO1QBZPKJKeE5285WqoD7ijNYqBTwmgPaQzrcRtu0VdgRUh+pyU1menVHwoVXgmVqPjAxG/aL4HKscFDHRQ+6NstgGs60vgmQf22W85Fn1iOPR1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rrdxN-0007Ni-MW; Tue, 02 Apr 2024 15:13:41 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrdxM-009zW2-El; Tue, 02 Apr 2024 15:13:40 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rrdxM-006Op1-1G; Tue, 02 Apr 2024 15:13:40 +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, =?UTF-8?q?S=C3=B8ren=20Andersen?= Subject: [PATCH net-next v1 2/8] net: dsa: microchip: Make ksz8_r_dyn_mac_table() static Date: Tue, 2 Apr 2024 15:13:33 +0200 Message-Id: <20240402131339.1525330-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240402131339.1525330-1-o.rempel@pengutronix.de> References: <20240402131339.1525330-1-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org ksz8_r_dyn_mac_table() is not used outside the source file. Make it static. 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 5b38cbb7b058b..571c26ce71e47 100644 --- a/drivers/net/dsa/microchip/ksz8.h +++ b/drivers/net/dsa/microchip/ksz8.h @@ -19,8 +19,6 @@ void ksz8_flush_dyn_mac_table(struct ksz_device *dev, int port); void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port); 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, u16 *entries); void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt); void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, u64 *dropped, u64 *cnt); diff --git a/drivers/net/dsa/microchip/ksz8795.c b/drivers/net/dsa/microchip/ksz8795.c index f59a03e6981d2..e407111db6637 100644 --- a/drivers/net/dsa/microchip/ksz8795.c +++ b/drivers/net/dsa/microchip/ksz8795.c @@ -408,8 +408,8 @@ static int ksz8_valid_dyn_entry(struct ksz_device *dev, u8 *data) return 0; } -int ksz8_r_dyn_mac_table(struct ksz_device *dev, u16 addr, u8 *mac_addr, - u8 *fid, u8 *src_port, u16 *entries) +static int ksz8_r_dyn_mac_table(struct ksz_device *dev, u16 addr, u8 *mac_addr, + u8 *fid, u8 *src_port, u16 *entries) { u32 data_hi, data_lo; const u8 *shifts; -- 2.39.2