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: 13703849 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8408F1DDD1 for ; Wed, 19 Jun 2024 14:01:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718805691; cv=none; b=Mh7Ulbl1cHhsCk/Hqueb4TDksrPuYYbDoKd0uzKVgS2aXg3SrMWxVxB4kpGZVuBOzLFrZlaT9Evcxu1Xg+iyyU7++v0oT69klsrS4V12W1l2NOAj64/EvUxZvKU7dfxsB06XOJ5EwYXJpUldxmA8f47TC5zK4UJu5V0+NIRhzXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718805691; c=relaxed/simple; bh=V2fOJErIc6JIhPZN2CR7Qs9bsJhQLclboXl8zVWZs88=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SHZkQJC/FMPown3eLjElpRTBtQg7L7txDmX0wv4LA3+dUTF4E0DssHJsiczODReyPKEbwfAZiP1rn4x/8pqCfPfQQyIGsgtT1MXAySG0Rdi+1lXdiv3jWuE1kL/zU4ImZKE05WXSJ7wsZaJ9zHqCRp7NJz7raVUhIMVx/ft8tpg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=exqCXHaM; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="exqCXHaM" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-5295eb47b48so7702199e87.1 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=vger.kernel.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=exqCXHaMoLebCyNVa9+P36W1J5+gX6QMwWMvtK4Rw1B9JpbUmUPFtxnQz+wtLJOMj5 qkH7KwbsEJj02RE1J3wK6rD5GmGQg7Hd42mA+bBS42uR4S5lShBBNVKg2nuhTBNFTWhX VLbmZ+nqs+7KxjQ8ca3VOZ3We3c2Lo9St84RUFq8mIpxnns+9yxTUERFF/RNjC4TzFKk g7NFQQASqWK2pzjboHgXRqd+R2FkB9YNvYn6rsNRO8IN6/dSPKmG9vHk7KBNTpJP8U9Y cLI4gf0RWm30oM0oZGLTsAkpC6e5GZ8b8Pc3rCwF391ux6zodrMmjjv6FTiVYL/zE1GL 0NCA== 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=tGSOAVsNSVVSvslr+Fxpos2POzUPE1gdeHBXNIATkrDgqyKMBLfd4w5Czt0S2nxF/9 lxijAtGsE//ZuHokNqgQuLZ5wBaTOG7Ztrsrh2t7NhBesTiD2v+Zg+I0/7azQFRm/x68 ntGAG1Ga05qQRo//BD8kJw7THdfbFJjjpdOICKBl9+V6XfhqsR02I5Y0w5jdY91+sHnS uZ73DvaPDwtGwMz0twtCU3VDhrcNsjYLLEWYnYXqx0OmwQCTJigDIRJSxsTGex/I9nnJ +idQM6bKutxHI5fcrMh7nomMK51RB7G5kospD4AOfB97o9y8YGAr4HYi5vZUAmWoMOgu Gzpg== X-Gm-Message-State: AOJu0YyBua2uqcHTPawQ5suacqNpowYk5so9Tu43JPx2ZgObgH27mApk 7PBSwMCnKKDIlrj/gDz550ITk3HvblAH7hjX/HNhzPhJfuqOVeNa0eQM4cv6o3I= 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 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.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);