lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 24 Apr 2020 10:01:46 +1000 From: Gavin Shan <gshan@...hat.com> To: netdev@...r.kernel.org Cc: linux-kernel@...r.kernel.org, netanel@...zon.com, akiyano@...zon.com, gtzalik@...zon.com, saeedb@...zon.com, zorik@...zon.com, davem@...emloft.net Subject: [PATCH] net/ena: Fix build warning in ena_xdp_set() This fixes the following build warning in ena_xdp_set() In file included from ./include/net/inet_sock.h:19, from ./include/net/ip.h:27, from drivers/net/ethernet/amazon/ena/ena_netdev.c:46: drivers/net/ethernet/amazon/ena/ena_netdev.c: In function \ ‘ena_xdp_set’: \ drivers/net/ethernet/amazon/ena/ena_netdev.c:557:6: warning: \ format ‘%lu’ \ expects argument of type ‘long unsigned int’, but argument 4 \ has type ‘int’ \ [-Wformat=] "Failed to set xdp program, the current MTU (%d) is \ larger than the maximum allowed MTU (%lu) while xdp is on", Signed-off-by: Gavin Shan <gshan@...hat.com> --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c index 2cc765df8da3..6ff648423867 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -554,7 +554,7 @@ static int ena_xdp_set(struct net_device *netdev, struct netdev_bpf *bpf) } else if (rc == ENA_XDP_CURRENT_MTU_TOO_LARGE) { netif_err(adapter, drv, adapter->netdev, - "Failed to set xdp program, the current MTU (%d) is larger than the maximum allowed MTU (%lu) while xdp is on", + "Failed to set xdp program, the current MTU (%d) is larger than the maximum allowed MTU (%d) while xdp is on", netdev->mtu, ENA_XDP_MAX_MTU); NL_SET_ERR_MSG_MOD(bpf->extack, "Failed to set xdp program, the current MTU is larger than the maximum allowed MTU. Check the dmesg for more info"); -- 2.23.0
Powered by blists - more mailing lists