[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200428.135830.274833516409783023.davem@davemloft.net>
Date: Tue, 28 Apr 2020 13:58:30 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: gshan@...hat.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
netanel@...zon.com, akiyano@...zon.com, gtzalik@...zon.com,
shan.gavin@...il.com
Subject: Re: [PATCH v2] net/ena: Fix build warning in ena_xdp_set()
From: Gavin Shan <gshan@...hat.com>
Date: Tue, 28 Apr 2020 14:49:45 +1000
> 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 <gshan@...hat.com>
> ---
> v2: Make ENA_PAGE_SIZE to be "unsigned long" and verify on aarch64
> with 4KB or 64KB page size configuration
Applied, thank you.
Powered by blists - more mailing lists