linux/drivers/usb/phy
Johan Hovold 80574c4059 USB: phy: fsl-usb: fix missing static keywords
A recent change enabling compile testing of a Freescale dual-role
controller indirectly enabled a USB PHY driver to be built. That driver
in turn is missing a bunch of static keywords which results in warnings
like:

drivers/usb/phy/phy-fsl-usb.c:105:5: error: no previous prototype for 'write_ulpi' [-Werror=missing-prototypes]
  105 | int write_ulpi(u8 addr, u8 data)
        |     ^~~~~~~~~~

which consequently breaks -Werror builds.

Add the missing static keywords.

Fixes: 0807c500a1 ("USB: add Freescale USB OTG Transceiver driver")
Cc: stable@vger.kernel.org	# 3.0
Reported-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/4f9f5ff9-8eaa-4bd5-9331-37119f78e13f@sirena.org.uk
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260717154957.1853976-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 17:54:18 +02:00
..
Kconfig usb: Remove orphaned UDC drivers 2025-04-11 16:11:25 +02:00
Makefile usb: Remove orphaned UDC drivers 2025-04-11 16:11:25 +02:00
of.c USB: phy: Remove redundant license text 2017-11-07 15:45:01 +01:00
phy-ab8500-usb.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-am335x-control.c usb: phy: add missing MODULE_DESCRIPTION() macros 2024-06-20 19:18:32 +02:00
phy-am335x-control.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-am335x.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-fsl-usb.c USB: phy: fsl-usb: fix missing static keywords 2026-07-17 17:54:18 +02:00
phy-fsl-usb.h USB: phy: fsl-usb: fix missing static keywords 2026-07-17 17:54:18 +02:00
phy-generic.c usb: phy: generic: Convert to device property API 2026-01-23 17:16:54 +01:00
phy-generic.h usb: phy-generic: Delete unused platform data 2020-01-15 10:39:20 +01:00
phy-gpio-vbus-usb.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-isp1301.c usb: phy: isp1301: Use named initializers for struct i2c_device_id 2026-05-21 16:52:36 +02:00
phy-keystone.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
phy-mv-usb.h USB: phy: Use the correct style for SPDX License Identifier 2020-04-23 15:28:14 +02:00
phy-mxs-usb.c usb: phy: mxs: silence EPROBE_DEFER error on boot 2025-02-03 16:29:15 +01:00
phy-omap-otg.c extcon: Fix extcon_get_extcon_dev() error handling 2022-05-13 17:03:40 +09:00
phy-tahvo.c USB: phy: Use str_enable_disable-like helpers 2025-01-15 18:28:13 +01:00
phy-tegra-usb.c usb: phy: tegra: parametrize PORTSC1 register offset 2026-02-05 17:16:24 +01:00
phy-twl6030-usb.c usb: phy: twl6030: Fix incorrect type for ret 2025-09-06 15:21:45 +02:00
phy-ulpi-viewport.c usb: phy-ulpi-viewport: convert to readl_poll_timeout_atomic() 2020-09-25 16:30:05 +02:00
phy-ulpi.c usb: ulpi: Remove unused otg_ulpi_create 2025-03-03 10:23:35 +01:00
phy.c usb: phy: Initialize struct usb_phy list_head 2025-11-26 12:58:46 +01:00