From patchwork Wed Jun 19 14:01:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13703850 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7B98C27C53 for ; Wed, 19 Jun 2024 14:01:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=w+GCJmC76KcAMT5GOCDp0RSTcDnH5vcKBmbAZTLYEys=; b=J3vLBQ93tqMjd0I4DZW17WheIx Jf3Yo7wrSUj9cX2C9gkObpmBn7R2aojNzBp61WQqr3W+yL0jxtgOuB+5pMJxfDZjyXvnF4nY7bfXF rE7138WqL8QbpSvRw/GmR7ziLG5NkB6u9o7g57FEa5AgFEHseCPthXV03+8baEbi5ieywH5M0ASSK CEsLVLyQMBLvakO8VlEZOqJiKwjRn1mEKBOZo2+IkNecwhtH+Ht5BBpgDXAHGnOX20hsutJr3zTof qpx8yeJ3v94o7Wv5YjmjyBoeqsFAmSQe9TOgkFGUqGdkjRD/SDgBtPQbFk49W7YG3lvKgJeXkCJku 6LjnoogA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJvsT-00000001PWd-1GE9; Wed, 19 Jun 2024 14:01:33 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJvsQ-00000001PVk-1cuE for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 14:01:32 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-52cc148159dso2523621e87.0 for ; Wed, 19 Jun 2024 07:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1718805687; x=1719410487; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w+GCJmC76KcAMT5GOCDp0RSTcDnH5vcKBmbAZTLYEys=; b=ALmoNwvuCgTuTD7YuL1oah935FhAGlK7TK9Xq1f1cq78WOHHGqa4uw+xO9fp04M+DG 6LCZWjH3tncdkCWSJsqIsMPjEl+lwFnKkRiQQObO5YAwLVh/ywT+ADcgNAMo6acxTLA2 QUnqpXZfp83AAe91/0wLUJOfJuefn5XUt4K8nqr96mEWiLVVWd8EZUMQTIf7L2TJUkL/ oANWJ814+WgAMc63WOQ7Asy2Xmos1qypMD6WrfhFRRueYL97c6xH5PSN/H+O94vvNzrX unAu+9PdMHzPwLqhiRnpg29ffPCqqx2oZMdOE7n1Ra/E3Y1Ox3QcW44izTjhqBxyEpzg KLpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718805687; x=1719410487; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w+GCJmC76KcAMT5GOCDp0RSTcDnH5vcKBmbAZTLYEys=; b=xJgRo/w9WfCokMxwEKNih2P/Udy8kGTRqVaMdmd5H6OUvBcEY0pAQ28k3eSHNwgEGt yMrgv7K3fAGAmwSDnw+Tm5B5wK90EA/U3tHTlZIcLzUzn5/hX1RTb8kvkG2mXTWof/o3 BtJQXh9cGa0jLwnFFEykGpTHFNp80cRvP4LDe6iHAEKzlisfHM62lCcRSULBENbr0II7 gjii9HrUSKXhkiB5QbHhrVTajHi1jBKX5C2b0lLDfkwf3vo5nvGt6ivLVaeK/6XXVUcL djuwf+y4mfyZqnu/lZGp3/RxMJnORUcG7nfAwtPISZTS1DwJRQUm2jgkXvm2O9Ho8pGt Td/g== X-Forwarded-Encrypted: i=1; AJvYcCUTmpBMlZ6QS/URsfPnmmFCCSkIp4blGv4vTjtVxlx1ATmHGF+f4Z/c2uZo6Wp4IKNEl5qO9PbqzcYsgdlJELtErMWqagIUTYZSnBQnP3JYUjPSoGE= X-Gm-Message-State: AOJu0YxFHlsK2FJc9sB8lgRISu8hht8wokFrpSZThApCybM+WzD1cypT /7h/hO8WB8ckle9efxIBP1JkzPhsWLuhY3RKw/ekA+20Wp2VW38PlFqIIh+5Eky9WSyDdanFy31 j X-Google-Smtp-Source: AGHT+IHCqUJRZbuRk9MUMjYdIg9kfXdYDaI8MQjkROBkyKkQf0VyBxkiqb1nGKWXRxYCgsWEC4AjxA== X-Received: by 2002:a05:6512:2309:b0:52c:9906:fa33 with SMTP id 2adb3069b0e04-52ccaa885ddmr2490422e87.43.1718805686415; Wed, 19 Jun 2024 07:01:26 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:991f:deb8:4c5d:d73d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42286fe92c6sm268520905e9.18.2024.06.19.07.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 07:01:26 -0700 (PDT) From: Bartosz Golaszewski To: Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH net-next] net: stmmac: unexport stmmac_pltfr_init/exit() Date: Wed, 19 Jun 2024 16:01:19 +0200 Message-ID: <20240619140119.26777-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_070130_875824_58EB1BC5 X-CRM114-Status: GOOD ( 11.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski These functions are only used within the compilation unit they're defined in so there's no reason to export them. Signed-off-by: Bartosz Golaszewski Reviewed-by: Simon Horman --- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 10 ++++------ drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h | 5 ----- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 54797edc9b38..ad868e8d195d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -764,8 +764,8 @@ EXPORT_SYMBOL_GPL(stmmac_get_platform_resources); * Description: Call the platform's init callback (if any) and propagate * the return value. */ -int stmmac_pltfr_init(struct platform_device *pdev, - struct plat_stmmacenet_data *plat) +static int stmmac_pltfr_init(struct platform_device *pdev, + struct plat_stmmacenet_data *plat) { int ret = 0; @@ -774,7 +774,6 @@ int stmmac_pltfr_init(struct platform_device *pdev, return ret; } -EXPORT_SYMBOL_GPL(stmmac_pltfr_init); /** * stmmac_pltfr_exit @@ -782,13 +781,12 @@ EXPORT_SYMBOL_GPL(stmmac_pltfr_init); * @plat: driver data platform structure * Description: Call the platform's exit callback (if any). */ -void stmmac_pltfr_exit(struct platform_device *pdev, - struct plat_stmmacenet_data *plat) +static void stmmac_pltfr_exit(struct platform_device *pdev, + struct plat_stmmacenet_data *plat) { if (plat->exit) plat->exit(pdev, plat->bsp_priv); } -EXPORT_SYMBOL_GPL(stmmac_pltfr_exit); /** * stmmac_pltfr_probe diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h index bb6fc7e59aed..72dc1a32e46d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h @@ -17,11 +17,6 @@ devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac); int stmmac_get_platform_resources(struct platform_device *pdev, struct stmmac_resources *stmmac_res); -int stmmac_pltfr_init(struct platform_device *pdev, - struct plat_stmmacenet_data *plat); -void stmmac_pltfr_exit(struct platform_device *pdev, - struct plat_stmmacenet_data *plat); - int stmmac_pltfr_probe(struct platform_device *pdev, struct plat_stmmacenet_data *plat, struct stmmac_resources *res);