../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:4: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 82 [-Wformat-truncation] 974 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^ ../include/linux/netlink.h:131:2: note: expanded from macro 'NL_SET_ERR_MSG_FMT_MOD' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^ ../include/linux/netlink.h:116:6: note: expanded from macro 'NL_SET_ERR_MSG_FMT' 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:3: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 82 [-Wformat-truncation] 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^ ../include/linux/netlink.h:131:2: note: expanded from macro 'NL_SET_ERR_MSG_FMT_MOD' 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^ ../include/linux/netlink.h:116:6: note: expanded from macro 'NL_SET_ERR_MSG_FMT' 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^ 2 warnings generated. New errors added --- /tmp/tmp.advUtkq6YJ 2025-09-22 02:27:56.250233167 -0700 +++ /tmp/tmp.w7QMkKYpA2 2025-09-22 02:29:24.347639419 -0700 @@ -0,0 +1,19 @@ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:4: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 82 [-Wformat-truncation] + 974 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^ +../include/linux/netlink.h:131:2: note: expanded from macro 'NL_SET_ERR_MSG_FMT_MOD' + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^ +../include/linux/netlink.h:116:6: note: expanded from macro 'NL_SET_ERR_MSG_FMT' + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:3: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 82 [-Wformat-truncation] + 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^ +../include/linux/netlink.h:131:2: note: expanded from macro 'NL_SET_ERR_MSG_FMT_MOD' + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^ +../include/linux/netlink.h:116:6: note: expanded from macro 'NL_SET_ERR_MSG_FMT' + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^ +2 warnings generated. Per-file breakdown --- /tmp/tmp.KIzl6p7RLg 2025-09-22 02:30:18.660267281 -0700 +++ /tmp/tmp.3VEdGzcSxf 2025-09-22 02:30:18.664267254 -0700 @@ -0,0 +1 @@ + 2 ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c