[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZIgIN7VqkGytCiKx@corigine.com>
Date: Tue, 13 Jun 2023 08:09:59 +0200
From: Simon Horman <simon.horman@...igine.com>
To: edward.cree@....com
Cc: linux-net-drivers@....com, davem@...emloft.net, kuba@...nel.org,
pabeni@...hat.com, edumazet@...gle.com,
Edward Cree <ecree.xilinx@...il.com>, netdev@...r.kernel.org,
habetsm.xilinx@...il.com, oe-kbuild-all@...ts.linux.dev,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH net-next] sfc: do not try to call tc functions when
CONFIG_SFC_SRIOV=n
On Mon, Jun 12, 2023 at 09:54:28PM +0100, edward.cree@....com wrote:
> From: Edward Cree <ecree.xilinx@...il.com>
>
> Functions efx_tc_netdev_event and efx_tc_netevent_event do not exist
> in that case as object files tc_bindings.o and tc_encap_actions.o
> are not built, so the calls to them from ef100_netdev_event and
> ef100_netevent_event cause link errors.
> Guard the relevant part of ef100_netdev_event with #ifdef, as well as
> the entire function ef100_netevent_event and the code that registers
> and unregisters the netevent notifier.
> Also guard the includes of tc_bindings.h and tc_encap_actions.h into
> ef100_netdev.c, as the symbols from these headers are only available
> when the corresponding object files are built.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202306102026.ISK5JfUQ-lkp@intel.com/
> Fixes: 7e5e7d800011 ("sfc: neighbour lookup for TC encap action offload")
> Signed-off-by: Edward Cree <ecree.xilinx@...il.com>
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists