Skip to content

Commit caec661

Browse files
Gavin Shandavem330
authored andcommitted
net/ena: Fix build warning in ena_xdp_set()
This fixes the following build warning in ena_xdp_set(), which is observed on aarch64 with 64KB page size. 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 <[email protected]> Acked-by: Shay Agroskin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 37255e7 commit caec661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/amazon/ena/ena_netdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* 16kB.
7070
*/
7171
#if PAGE_SIZE > SZ_16K
72-
#define ENA_PAGE_SIZE SZ_16K
72+
#define ENA_PAGE_SIZE (_AC(SZ_16K, UL))
7373
#else
7474
#define ENA_PAGE_SIZE PAGE_SIZE
7575
#endif

0 commit comments

Comments
 (0)