Re: [PATCH 1/2] firmware: bcm47xx_nvram: allow to read from buffered nvram data
From: kernel test robot
Date: Wed Feb 15 2023 - 09:51:03 EST
Hi Willem-Jan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.2-rc8 next-20230215]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Willem-Jan-de-Hoog/firmware-bcm47xx_nvram-allow-to-read-from-buffered-nvram-data/20230206-180737
patch link: https://lore.kernel.org/r/20230206100502.20243-2-wdehoog%40exalondelft.nl
patch subject: [PATCH 1/2] firmware: bcm47xx_nvram: allow to read from buffered nvram data
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20230215/202302152222.wtVZ1npH-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
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
# https://github.com/intel-lab-lkp/linux/commit/763f6661565b50b967e4f22e41cf46d27e14e58f
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Willem-Jan-de-Hoog/firmware-bcm47xx_nvram-allow-to-read-from-buffered-nvram-data/20230206-180737
git checkout 763f6661565b50b967e4f22e41cf46d27e14e58f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/net/ethernet/broadcom/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202302152222.wtVZ1npH-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/broadcom/bgmac.c:15:
include/linux/bcm47xx_nvram.h:56:2: error: expected identifier or '(' before ':' token
56 | }:
| ^
In file included from include/linux/ethtool.h:19,
from include/linux/phy.h:16,
from drivers/net/ethernet/broadcom/bgmac.c:16:
>> include/uapi/linux/ethtool.h:125:49: warning: 'struct ethtool_cmd' declared inside parameter list will not be visible outside of this definition or declaration
125 | static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep,
| ^~~~~~~~~~~
include/uapi/linux/ethtool.h: In function 'ethtool_cmd_speed_set':
include/uapi/linux/ethtool.h:128:11: error: invalid use of undefined type 'struct ethtool_cmd'
128 | ep->speed = (__u16)(speed & 0xFFFF);
| ^~
include/uapi/linux/ethtool.h:129:11: error: invalid use of undefined type 'struct ethtool_cmd'
129 | ep->speed_hi = (__u16)(speed >> 16);
| ^~
include/uapi/linux/ethtool.h: At top level:
include/uapi/linux/ethtool.h:132:52: warning: 'struct ethtool_cmd' declared inside parameter list will not be visible outside of this definition or declaration
132 | static inline __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep)
| ^~~~~~~~~~~
include/uapi/linux/ethtool.h: In function 'ethtool_cmd_speed':
include/uapi/linux/ethtool.h:134:19: error: invalid use of undefined type 'const struct ethtool_cmd'
134 | return (ep->speed_hi << 16) | ep->speed;
| ^~
include/uapi/linux/ethtool.h:134:41: error: invalid use of undefined type 'const struct ethtool_cmd'
134 | return (ep->speed_hi << 16) | ep->speed;
| ^~
vim +125 include/uapi/linux/ethtool.h
607ca46e97a1b6 David Howells 2012-10-13 124
607ca46e97a1b6 David Howells 2012-10-13 @125 static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep,
607ca46e97a1b6 David Howells 2012-10-13 126 __u32 speed)
607ca46e97a1b6 David Howells 2012-10-13 127 {
85a624403c77c3 Jesse Brandeburg 2016-10-13 128 ep->speed = (__u16)(speed & 0xFFFF);
607ca46e97a1b6 David Howells 2012-10-13 129 ep->speed_hi = (__u16)(speed >> 16);
607ca46e97a1b6 David Howells 2012-10-13 130 }
607ca46e97a1b6 David Howells 2012-10-13 131
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests