]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix format-security build warnings
authorSaeed Mahameed <saeedm@nvidia.com>
Wed, 3 Nov 2021 21:01:05 +0000 (14:01 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:47 +0000 (20:31 -0800)
commit93b8f0cbc74114d32459e3e3b32bb78ad8c13e39
treecfb8e672f255852e3f37b7a50e22c1b5b98d8647
parentad0baa1edaaa42363ee0fdb4043dd1d38dff8b1d
net/mlx5: Fix format-security build warnings

Treat the string as an argument to avoid this.

drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c:482:5:
error: format string is not a string literal (potentially insecure)
                         name);
                         ^~~~
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c:2079:4:
error: format string is not a string literal (potentially insecure)
                        ptp_ch_stats_desc[i].format);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c