In file included from ../include/linux/ethtool.h:19, from ../include/uapi/linux/ethtool_netlink.h:12, from ../include/linux/ethtool_netlink.h:6, from ../drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:34: ../drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c: In function ‘mlx5e_rxfh_hfunc_check.isra’: ../include/linux/netlink.h:116:13: warning: ‘) exceeds the maximum allowe...’ directive output truncated writing 50 bytes into a region of size between 0 and 3 [-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/en_ethtool.c:1508:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 1508 | NL_SET_ERR_MSG_FMT_MOD( | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:116:13: note: directive argument in the range [0, 65534] 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/en_ethtool.c:1508:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 1508 | NL_SET_ERR_MSG_FMT_MOD( | ^~~~~~~~~~~~~~~~~~~~~~ ../include/linux/netlink.h:116:13: note: ‘snprintf’ output between 131 and 139 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/en_ethtool.c:1508:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ 1508 | NL_SET_ERR_MSG_FMT_MOD( | ^~~~~~~~~~~~~~~~~~~~~~ New errors added --- /tmp/tmp.WBfooLAOrZ 2025-09-22 03:05:26.044806562 -0700 +++ /tmp/tmp.Y65u2WWrkb 2025-09-22 03:07:53.405598458 -0700 @@ -0,0 +1,38 @@ +In file included from ../include/linux/ethtool.h:19, + from ../include/uapi/linux/ethtool_netlink.h:12, + from ../include/linux/ethtool_netlink.h:6, + from ../drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:34: +../drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c: In function ‘mlx5e_rxfh_hfunc_check.isra’: +../include/linux/netlink.h:116:13: warning: ‘) exceeds the maximum allowe...’ directive output truncated writing 50 bytes into a region of size between 0 and 3 [-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/en_ethtool.c:1508:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 1508 | NL_SET_ERR_MSG_FMT_MOD( + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:116:13: note: directive argument in the range [0, 65534] + 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/en_ethtool.c:1508:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 1508 | NL_SET_ERR_MSG_FMT_MOD( + | ^~~~~~~~~~~~~~~~~~~~~~ +../include/linux/netlink.h:116:13: note: ‘snprintf’ output between 131 and 139 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/en_ethtool.c:1508:25: note: in expansion of macro ‘NL_SET_ERR_MSG_FMT_MOD’ + 1508 | NL_SET_ERR_MSG_FMT_MOD( + | ^~~~~~~~~~~~~~~~~~~~~~ Per-file breakdown --- /tmp/tmp.4OnODZraor 2025-09-22 03:07:53.432832465 -0700 +++ /tmp/tmp.vwegKhXi4X 2025-09-22 03:07:53.443832392 -0700 @@ -0,0 +1 @@ + 1 ../include/linux/netlink.h