In file included from ../include/uapi/linux/if_link.h:6, from ../include/linux/if_link.h:5, from ../drivers/net/ethernet/mellanox/mlx5/core/eswitch.h:37, from ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:4: ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c: In function ‘esw_qos_vport_tc_enable’: ../include/linux/netlink.h:116:13: warning: ‘%d’ directive output truncated writing between 1 and 3 bytes into a region of size 0 [-Wformat-truncation=] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 974 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:116:13: note: directive argument in the range [1, 256] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 974 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:116:13: note: ‘snprintf’ output between 82 and 84 bytes into a destination of size 80 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 974 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c: In function ‘esw_qos_node_enable_tc_arbitration’: ../include/linux/netlink.h:116:13: warning: ‘%d’ directive output truncated writing between 1 and 3 bytes into a region of size 0 [-Wformat-truncation=] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:17: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:116:13: note: directive argument in the range [1, 255] 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:17: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:116:13: note: ‘snprintf’ output between 82 and 84 bytes into a destination of size 80 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 | "%s" fmt "%s", "", ##args, "") >= \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:17: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, | ^~~~~~~~~~~~~~~~~~~~~~ New errors added --- /tmp/tmp.1GKEam9Flf 2025-09-22 02:53:37.335664685 -0700 +++ /tmp/tmp.6uRWhrdTwS 2025-09-22 02:54:53.522807302 -0700 @@ -0,0 +1,72 @@ +In file included from ../include/uapi/linux/if_link.h:6, + from ../include/linux/if_link.h:5, + from ../drivers/net/ethernet/mellanox/mlx5/core/eswitch.h:37, + from ../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:4: +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c: In function ‘esw_qos_vport_tc_enable’: +../include/linux/netlink.h:116:13: warning: ‘%d’ directive output truncated writing between 1 and 3 bytes into a region of size 0 [-Wformat-truncation=] + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 117 | "%s" fmt "%s", "", ##args, "") >= \ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 974 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:116:13: note: directive argument in the range [1, 256] + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 117 | "%s" fmt "%s", "", ##args, "") >= \ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 974 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:116:13: note: ‘snprintf’ output between 82 and 84 bytes into a destination of size 80 + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 117 | "%s" fmt "%s", "", ##args, "") >= \ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:974:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 974 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c: In function ‘esw_qos_node_enable_tc_arbitration’: +../include/linux/netlink.h:116:13: warning: ‘%d’ directive output truncated writing between 1 and 3 bytes into a region of size 0 [-Wformat-truncation=] + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 117 | "%s" fmt "%s", "", ##args, "") >= \ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:17: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:116:13: note: directive argument in the range [1, 255] + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 117 | "%s" fmt "%s", "", ##args, "") >= \ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:17: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:116:13: note: ‘snprintf’ output between 82 and 84 bytes into a destination of size 80 + 116 | if (snprintf(__extack->_msg_buf, NETLINK_MAX_FMTMSG_LEN, \ + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 117 | "%s" fmt "%s", "", ##args, "") >= \ + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:131:9: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT’ + 131 | NL_SET_ERR_MSG_FMT((extack), KBUILD_MODNAME ": " fmt, ##args) + | ^~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:1448:17: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 1448 | NL_SET_ERR_MSG_FMT_MOD(extack, + | ^~~~~~~~~~~~~~~~~~~~~~ Per-file breakdown --- /tmp/tmp.TGCCJ5B2pW 2025-09-22 02:54:53.528139228 -0700 +++ /tmp/tmp.GAvKKCetYb 2025-09-22 02:54:53.533139193 -0700 @@ -0,0 +1 @@ + 2 ../include/linux/netlink.h