mirror of https://github.com/torvalds/linux.git
Reduce nodename string size to fit IB_DEVICE_NODE_DESC_MAX.
drivers/infiniband/hw/qib/qib_verbs.c: In function ‘qib_register_ib_device’:
drivers/infiniband/hw/qib/qib_verbs.c:1554:40: error: ‘%s’ directive output may be truncated writing up to 64 bytes into a region of size 43
[-Werror=format-truncation=]
1554 | "Intel Infiniband HCA %s", init_utsname()->nodename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/qib/qib_verbs.c:1553:9: note: ‘snprintf’ output between 22 and 86 bytes into a destination of size 64
1553 | snprintf(ibdev->node_desc, sizeof(ibdev->node_desc),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1554 | "Intel Infiniband HCA %s", init_utsname()->nodename);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Link: https://lore.kernel.org/r/1fb6393fa2e0702fef995834c3c7db972bbc4d06.1719837715.git.leon@kernel.org
Acked-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| qib.h | ||
| qib_6120_regs.h | ||
| qib_7220.h | ||
| qib_7220_regs.h | ||
| qib_7322_regs.h | ||
| qib_common.h | ||
| qib_debugfs.c | ||
| qib_debugfs.h | ||
| qib_diag.c | ||
| qib_driver.c | ||
| qib_eeprom.c | ||
| qib_file_ops.c | ||
| qib_fs.c | ||
| qib_iba6120.c | ||
| qib_iba7220.c | ||
| qib_iba7322.c | ||
| qib_init.c | ||
| qib_intr.c | ||
| qib_mad.c | ||
| qib_mad.h | ||
| qib_pcie.c | ||
| qib_pio_copy.c | ||
| qib_qp.c | ||
| qib_qsfp.c | ||
| qib_qsfp.h | ||
| qib_rc.c | ||
| qib_ruc.c | ||
| qib_sd7220.c | ||
| qib_sdma.c | ||
| qib_sysfs.c | ||
| qib_twsi.c | ||
| qib_tx.c | ||
| qib_uc.c | ||
| qib_ud.c | ||
| qib_user_pages.c | ||
| qib_user_sdma.c | ||
| qib_user_sdma.h | ||
| qib_verbs.c | ||
| qib_verbs.h | ||
| qib_wc_ppc64.c | ||
| qib_wc_x86_64.c | ||