linux/drivers/phy/allwinner
Christophe JAILLET 9e34abc7ab phy: sun4i-usb: update array size
With gcc 12.3.0, when this file is built, we get errors such as:

drivers/phy/allwinner/phy-sun4i-usb.c: In function ‘sun4i_usb_phy_probe’:
drivers/phy/allwinner/phy-sun4i-usb.c:790:52: error: ‘_vbus’ directive output may be truncated writing 5 bytes into a region of size between 2 and 12 [-Werror=format-truncation=]
  790 |                 snprintf(name, sizeof(name), "usb%d_vbus", i);
      |                                                    ^~~~~
drivers/phy/allwinner/phy-sun4i-usb.c:790:17: note: ‘snprintf’ output between 10 and 20 bytes into a destination of size 16
  790 |                 snprintf(name, sizeof(name), "usb%d_vbus", i);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Because of the possible value of 'i', this can't be an issue in real world
application, but in order to have "make W=1" work correctly, give more
space for 'name'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/0bc81612171baaa6d5dff58c8e009debc03e1ba8.1693735840.git.christophe.jaillet@wanadoo.fr
[vkoul: updated patch title]
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-10-13 15:34:39 +05:30
..
Kconfig phy: allwinner: Make PHY_SUN6I_MIPI_DPHY depend on COMMON_CLK 2020-07-13 10:40:53 +05:30
Makefile phy: allwinner: add phy driver for USB3 PHY on Allwinner H6 SoC 2019-10-31 16:54:00 +05:30
phy-sun4i-usb.c phy: sun4i-usb: update array size 2023-10-13 15:34:39 +05:30
phy-sun6i-mipi-dphy.c phy: allwinner: phy-sun6i-mipi-dphy: Add the A100 DPHY variant 2022-11-24 23:04:24 +05:30
phy-sun9i-usb.c phy: allwinner: convert to devm_platform_ioremap_resource(_byname) 2020-11-16 12:47:46 +05:30
phy-sun50i-usb3.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30