* Re: [PATCH v2 1/2] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c [not found] <20220513153606.302464-2-mailhol.vincent@wanadoo.fr> @ 2022-05-14 4:20 ` kernel test robot 2022-05-14 5:16 ` Vincent MAILHOL 0 siblings, 1 reply; 3+ messages in thread From: kernel test robot @ 2022-05-14 4:20 UTC (permalink / raw) To: Vincent Mailhol, Marc Kleine-Budde Cc: llvm, kbuild-all, linux-can, linux-kernel, Max Staudt, Vincent Mailhol Hi Vincent, I love your patch! Yet something to improve: [auto build test ERROR on mkl-can-next/testing] [also build test ERROR on v5.18-rc6 next-20220513] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Vincent-Mailhol/can-skb-move-can_dropped_invalid_skb-and-can_skb_headroom_valid-to-skb-c/20220514-003707 base: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing config: arm-randconfig-r021-20220512 (https://download.01.org/0day-ci/archive/20220514/202205141221.H0aZXRak-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 38189438b69ca27b4c6ce707c52dbd217583d046) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/8f56e6b1b9945ea47c9f410d1254451df9d6fe22 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Vincent-Mailhol/can-skb-move-can_dropped_invalid_skb-and-can_skb_headroom_valid-to-skb-c/20220514-003707 git checkout 8f56e6b1b9945ea47c9f410d1254451df9d6fe22 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected >> ld.lld: error: undefined symbol: can_dropped_invalid_skb >>> referenced by vxcan.c:45 (drivers/net/can/vxcan.c:45) >>> net/can/vxcan.o:(vxcan_xmit) in archive drivers/built-in.a -- 0-DAY CI Kernel Test Service https://01.org/lkp ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/2] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c 2022-05-14 4:20 ` [PATCH v2 1/2] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c kernel test robot @ 2022-05-14 5:16 ` Vincent MAILHOL 2022-05-14 11:17 ` Max Staudt 0 siblings, 1 reply; 3+ messages in thread From: Vincent MAILHOL @ 2022-05-14 5:16 UTC (permalink / raw) To: kernel test robot Cc: Marc Kleine-Budde, llvm, kbuild-all, linux-can, linux-kernel, Max Staudt On Sat. 14 May 2022 à 13:20, kernel test robot <lkp@intel.com> wrote: > Hi Vincent, > > I love your patch! Yet something to improve: > > [auto build test ERROR on mkl-can-next/testing] > [also build test ERROR on v5.18-rc6 next-20220513] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/intel-lab-lkp/linux/commits/Vincent-Mailhol/can-skb-move-can_dropped_invalid_skb-and-can_skb_headroom_valid-to-skb-c/20220514-003707 > base: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing > config: arm-randconfig-r021-20220512 (https://download.01.org/0day-ci/archive/20220514/202205141221.H0aZXRak-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 38189438b69ca27b4c6ce707c52dbd217583d046) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install arm cross compiling tool for clang build > # apt-get install binutils-arm-linux-gnueabi > # https://github.com/intel-lab-lkp/linux/commit/8f56e6b1b9945ea47c9f410d1254451df9d6fe22 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Vincent-Mailhol/can-skb-move-can_dropped_invalid_skb-and-can_skb_headroom_valid-to-skb-c/20220514-003707 > git checkout 8f56e6b1b9945ea47c9f410d1254451df9d6fe22 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <lkp@intel.com> > > All errors (new ones prefixed by >>): > > ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected > ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected > >> ld.lld: error: undefined symbol: can_dropped_invalid_skb > >>> referenced by vxcan.c:45 (drivers/net/can/vxcan.c:45) > >>> net/can/vxcan.o:(vxcan_xmit) in archive drivers/built-in.a OK, so the issue is that VCAN and VXCAN are users of can_dropped_invalid_skb() but do not depend on CAN_DEV. Above error will appear if CONFIG_CAN_DEV is not set (or if CONFIG_V{,X}CAN is set to "yes" and CAN_DEV is set to "module"). I see three choices here: 1. move can_dropped_invalid_skb() outside of drivers/net/can (i.e. move it somewhere in net/can). 2. split CAN_DEV into one additional sub module: CAN_SKB and add a dependency to it in VCAN and VXCAN. 3. Add a dependency to CAN_DEV in VCAN and VXCAN 1. is I think the worse, 2. the best, 3. is the laziest option and is kind of acceptable. @Marc (and anyone else), what are your thoughts? Yours sincerely, Vincent Mailhol ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/2] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c 2022-05-14 5:16 ` Vincent MAILHOL @ 2022-05-14 11:17 ` Max Staudt 0 siblings, 0 replies; 3+ messages in thread From: Max Staudt @ 2022-05-14 11:17 UTC (permalink / raw) To: Vincent MAILHOL Cc: kernel test robot, Marc Kleine-Budde, llvm, kbuild-all, linux-can, linux-kernel On Sat, 14 May 2022 14:16:09 +0900 Vincent MAILHOL <mailhol.vincent@wanadoo.fr> wrote: > OK, so the issue is that VCAN and VXCAN are users of > can_dropped_invalid_skb() but do not depend on CAN_DEV. Above error > will appear if CONFIG_CAN_DEV is not set (or if CONFIG_V{,X}CAN is set > to "yes" and CAN_DEV is set to "module"). > I see three choices here: > 1. move can_dropped_invalid_skb() outside of drivers/net/can (i.e. > move it somewhere in net/can). > 2. split CAN_DEV into one additional sub module: CAN_SKB and add a > dependency to it in VCAN and VXCAN. > 3. Add a dependency to CAN_DEV in VCAN and VXCAN > > 1. is I think the worse, 2. the best, 3. is the laziest option and is > kind of acceptable. > @Marc (and anyone else), what are your thoughts? I think that having v(x)can depend on can-dev isn't half bad - for the user, they are CAN devices, anyway, and modprobe does the dependency resolution magic. Splitting into too many modules is something I'd avoid because of the overhead involved. Max ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-14 11:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220513153606.302464-2-mailhol.vincent@wanadoo.fr>
2022-05-14 4:20 ` [PATCH v2 1/2] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c kernel test robot
2022-05-14 5:16 ` Vincent MAILHOL
2022-05-14 11:17 ` Max Staudt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox