Hi Hugo, kernel test robot noticed the following build warnings: [auto build test WARNING on d804987153e7bedf503f8e4ba649afe52cfd7f6d] url: https://github.com/intel-lab-lkp/linux/commits/Hugo-Villeneuve/serial-sc16is7xx-fix-snprintf-format-specifier-in-sc16is7xx_regmap_name/20231201-031413 base: d804987153e7bedf503f8e4ba649afe52cfd7f6d patch link: https://lore.kernel.org/r/20231130191050.3165862-8-hugo%40hugovil.com patch subject: [PATCH 7/7] serial: max310x: use separate regmap name for each port config: arm-randconfig-r081-20231201 (https://download.01.org/0day-ci/archive/20231206/202312062240.v39k99mQ-lkp@xxxxxxxxx/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312062240.v39k99mQ-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202312062240.v39k99mQ-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): In function 'max310x_regmap_name', inlined from 'max310x_i2c_probe' at drivers/tty/serial/max310x.c:1641:21: >> drivers/tty/serial/max310x.c:30:41: warning: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=] 30 | #define MAX310X_PORT_NAME_SUFFIX "port" | ^~~~~~ drivers/tty/serial/max310x.c:1494:36: note: in expansion of macro 'MAX310X_PORT_NAME_SUFFIX' 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/max310x.c: In function 'max310x_i2c_probe': drivers/tty/serial/max310x.c:1494:62: note: format string is defined here 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~ In function 'max310x_regmap_name', inlined from 'max310x_i2c_probe' at drivers/tty/serial/max310x.c:1641:21: drivers/tty/serial/max310x.c:30:41: note: directive argument in the range [1, 4294967294] 30 | #define MAX310X_PORT_NAME_SUFFIX "port" | ^~~~~~ drivers/tty/serial/max310x.c:1494:36: note: in expansion of macro 'MAX310X_PORT_NAME_SUFFIX' 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/max310x.c:1494:9: note: 'snprintf' output between 6 and 15 bytes into a destination of size 6 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'max310x_regmap_name', inlined from 'max310x_spi_probe' at drivers/tty/serial/max310x.c:1535:17: >> drivers/tty/serial/max310x.c:30:41: warning: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size 2 [-Wformat-truncation=] 30 | #define MAX310X_PORT_NAME_SUFFIX "port" | ^~~~~~ drivers/tty/serial/max310x.c:1494:36: note: in expansion of macro 'MAX310X_PORT_NAME_SUFFIX' 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/max310x.c: In function 'max310x_spi_probe': drivers/tty/serial/max310x.c:1494:62: note: format string is defined here 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~ In function 'max310x_regmap_name', inlined from 'max310x_spi_probe' at drivers/tty/serial/max310x.c:1535:17: drivers/tty/serial/max310x.c:30:41: note: directive argument in the range [0, 4294967294] 30 | #define MAX310X_PORT_NAME_SUFFIX "port" | ^~~~~~ drivers/tty/serial/max310x.c:1494:36: note: in expansion of macro 'MAX310X_PORT_NAME_SUFFIX' 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/tty/serial/max310x.c:1494:9: note: 'snprintf' output between 6 and 15 bytes into a destination of size 6 1494 | snprintf(buf, sizeof(buf), MAX310X_PORT_NAME_SUFFIX "%u", port_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +30 drivers/tty/serial/max310x.c 28 29 #define MAX310X_NAME "max310x" > 30 #define MAX310X_PORT_NAME_SUFFIX "port" 31 #define MAX310X_MAJOR 204 32 #define MAX310X_MINOR 209 33 #define MAX310X_UART_NRMAX 16 34 #define MAX310X_MAX_PORTS 4 /* Maximum number of UART ports per IC. */ 35 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki