From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>, Jakub Kicinski <kuba@kernel.org>,
Sasha Levin <sashal@kernel.org>,
andrew@lunn.ch, hkallweit1@gmail.com, netdev@vger.kernel.org
Subject: [PATCH AUTOSEL 5.10 31/31] mdio_bus: unhide mdio_bus_init prototype
Date: Thu, 25 May 2023 14:41:02 -0400 [thread overview]
Message-ID: <20230525184105.1909399-31-sashal@kernel.org> (raw)
In-Reply-To: <20230525184105.1909399-1-sashal@kernel.org>
From: Arnd Bergmann <arnd@arndb.de>
[ Upstream commit 2e9f8ab68f42b059e80db71266c1675c07c664bd ]
mdio_bus_init() is either used as a local module_init() entry,
or it gets called in phy_device.c. In the former case, there
is no declaration, which causes a warning:
drivers/net/phy/mdio_bus.c:1371:12: error: no previous prototype for 'mdio_bus_init' [-Werror=missing-prototypes]
Remove the #ifdef around the declaration to avoid the warning..
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230516194625.549249-4-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
include/linux/phy.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 08725a262f320..273a9409c77d6 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1604,10 +1604,8 @@ void phy_package_leave(struct phy_device *phydev);
int devm_phy_package_join(struct device *dev, struct phy_device *phydev,
int addr, size_t priv_size);
-#if IS_ENABLED(CONFIG_PHYLIB)
int __init mdio_bus_init(void);
void mdio_bus_exit(void);
-#endif
int phy_ethtool_get_strings(struct phy_device *phydev, u8 *data);
int phy_ethtool_get_sset_count(struct phy_device *phydev);
--
2.39.2
prev parent reply other threads:[~2023-05-25 18:52 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-25 18:40 [PATCH AUTOSEL 5.10 01/31] ASoC: dwc: limit the number of overrun messages Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 02/31] selftests/ftrace: Improve integration with kselftest runner Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 03/31] xfrm: Check if_id in inbound policy/secpath match Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 04/31] ASoC: dt-bindings: Adjust #sound-dai-cells on TI's single-DAI codecs Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 05/31] ASoC: ssm2602: Add workaround for playback distortions Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 06/31] media: dvb_demux: fix a bug for the continuity counter Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 07/31] media: dvb-usb: az6027: fix three null-ptr-deref in az6027_i2c_xfer() Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 08/31] media: dvb-usb-v2: ec168: fix null-ptr-deref in ec168_i2c_xfer() Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 09/31] media: dvb-usb-v2: ce6230: fix null-ptr-deref in ce6230_i2c_master_xfer() Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 10/31] media: dvb-usb-v2: rtl28xxu: fix null-ptr-deref in rtl28xxu_i2c_xfer Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 11/31] media: dvb-usb: digitv: fix null-ptr-deref in digitv_i2c_xfer() Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 12/31] media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 13/31] media: netup_unidvb: fix irq init by register it at the end of probe Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 14/31] media: dvb_ca_en50221: fix a size write bug Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 15/31] media: ttusb-dec: fix memory leak in ttusb_dec_exit_dvb() Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 16/31] media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 17/31] media: dvb-core: Fix use-after-free due on race condition at dvb_net Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 18/31] media: dvb-core: Fix kernel WARNING for blocking operation in wait_event*() Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 19/31] media: dvb-core: Fix use-after-free due to race condition at dvb_ca_en50221 Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 20/31] s390/pkey: zeroize key blobs Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 21/31] wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 22/31] ARM: dts: stm32: add pin map for CAN controller on stm32f7 Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 23/31] ARM: dts: stm32: add CAN support on stm32f746 Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 24/31] arm64/mm: mark private VM_FAULT_X defines as vm_fault_t Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 25/31] scsi: core: Decrease scsi_device's iorequest_cnt if dispatch failed Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 26/31] wifi: b43: fix incorrect __packed annotation Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 27/31] netfilter: conntrack: define variables exp_nat_nla_policy and any_addr with CONFIG_NF_NAT Sasha Levin
2023-05-25 18:40 ` [PATCH AUTOSEL 5.10 28/31] ALSA: oss: avoid missing-prototype warnings Sasha Levin
2023-05-25 18:41 ` [PATCH AUTOSEL 5.10 29/31] drm/msm: Be more shouty if per-process pgtables aren't working Sasha Levin
2023-05-25 18:41 ` [PATCH AUTOSEL 5.10 30/31] atm: hide unused procfs functions Sasha Levin
2023-05-25 18:41 ` Sasha Levin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230525184105.1909399-31-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=andrew@lunn.ch \
--cc=arnd@arndb.de \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox