kernel_samsung_a53x/drivers/ata
Damien Le Moal da108c168f ata: libata-eh: Fix compilation warning in ata_eh_link_report()
[ Upstream commit 49728bdc702391902a473b9393f1620eea32acb0 ]

The 6 bytes length of the tries_buf string in ata_eh_link_report() is
too short and results in a gcc compilation warning with W-!:

drivers/ata/libata-eh.c: In function ‘ata_eh_link_report’:
drivers/ata/libata-eh.c:2371:59: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 4 [-Wformat-truncation=]
 2371 |                 snprintf(tries_buf, sizeof(tries_buf), " t%d",
      |                                                           ^~
drivers/ata/libata-eh.c:2371:56: note: directive argument in the range [-2147483648, 4]
 2371 |                 snprintf(tries_buf, sizeof(tries_buf), " t%d",
      |                                                        ^~~~~~
drivers/ata/libata-eh.c:2371:17: note: ‘snprintf’ output between 4 and 14 bytes into a destination of size 6
 2371 |                 snprintf(tries_buf, sizeof(tries_buf), " t%d",
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2372 |                          ap->eh_tries);
      |                          ~~~~~~~~~~~~~

Avoid this warning by increasing the string size to 16B.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-08 11:26:16 +01:00
..
acard-ahci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_brcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_ceva.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_da850.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_dm816.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_imx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_mtk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_mvebu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_octeon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_qoriq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_seattle.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_st.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_sunxi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_tegra.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ahci_xgene.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ata_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ata_piix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libahci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libahci_platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-eh.c ata: libata-eh: Fix compilation warning in ata_eh_link_report() 2024-11-08 11:26:16 +01:00
libata-pata-timings.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-pmp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-sata.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-scsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-sff.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-transport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata-zpodd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
libata.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_ali.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_amd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_arasan_cf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_artop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_atiixp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_atp867x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_bk3710.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_buddha.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_cmd64x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_cmd640.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_cs5520.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_cs5530.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_cs5535.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_cs5536.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_cypress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_efar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_ep93xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_falcon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_ftide010.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_gayle.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_hpt3x2n.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_hpt3x3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_hpt37x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_hpt366.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_icside.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_imx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_isapnp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_it821x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_it8213.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_ixp4xx_cf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_jmicron.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_legacy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_macio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_marvell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_mpc52xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_mpiix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_netcell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_ninja32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_ns87410.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_ns87415.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_octeon_cf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_of_platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_oldpiix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_opti.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_optidma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_palmld.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_pcmcia.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_pdc202xx_old.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_pdc2027x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_piccolo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_pxa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_radisys.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_rb532_cf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_rdc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_rz1000.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_samsung_cf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_sc1200.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_sch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_serverworks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_sil680.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_sis.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_sl82c105.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_triflex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pata_via.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pdc_adma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_dwc_460ex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_fsl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_gemini.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_gemini.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_highbank.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_inic162x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_mv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_nv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_promise.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_promise.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_qstor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_rcar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_sil.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_sil24.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_sis.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_svw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_sx4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_uli.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_via.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sata_vsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sis.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00