[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202408192219.zrGff7n1-lkp@intel.com>
Date: Mon, 19 Aug 2024 23:07:19 +0800
From: kernel test robot <lkp@...el.com>
To: Jijie Shao <shaojijie@...wei.com>, yisen.zhuang@...wei.com,
salil.mehta@...wei.com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, horms@...nel.org
Cc: oe-kbuild-all@...ts.linux.dev, shenjian15@...wei.com,
wangpeiyang1@...wei.com, liuyonglong@...wei.com,
shaojijie@...wei.com, sudongming1@...wei.com, xujunsheng@...wei.com,
shiyongbang@...wei.com, libaihan@...wei.com, andrew@...n.ch,
jdamato@...tly.com, jonathan.cameron@...wei.com,
shameerali.kolothum.thodi@...wei.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 09/11] net: hibmcge: Add a Makefile and update
Kconfig for hibmcge
Hi Jijie,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Jijie-Shao/net-hibmcge-Add-pci-table-supported-in-this-module/20240819-152333
base: net-next/main
patch link: https://lore.kernel.org/r/20240819071229.2489506-10-shaojijie%40huawei.com
patch subject: [PATCH net-next 09/11] net: hibmcge: Add a Makefile and update Kconfig for hibmcge
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20240819/202408192219.zrGff7n1-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240819/202408192219.zrGff7n1-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408192219.zrGff7n1-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c:9:
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c: In function 'hbg_hw_set_txrx_intr_enable':
>> drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.h:27:59: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
27 | regmap_write_bits((priv)->regmap, reg_addr, mask, FIELD_PREP(mask, val))
| ^~~~~~~~~~
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c:101:9: note: in expansion of macro 'hbg_reg_write_field'
101 | hbg_reg_write_field(priv, addr, HBG_REG_CF_IND_INT_STAT_CLR_MSK_B, enabld);
| ^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c: In function 'hbg_hw_txrx_intr_is_enabled':
>> drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.h:24:9: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
24 | FIELD_GET(mask, hbg_reg_read(priv, reg_addr))
| ^~~~~~~~~
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c:109:16: note: in expansion of macro 'hbg_reg_read_field'
109 | return hbg_reg_read_field(priv, addr, HBG_REG_CF_IND_INT_STAT_CLR_MSK_B);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c: In function 'hbg_init_tx_desc':
>> drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c:52:18: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
52 | word0 |= FIELD_PREP(HBG_TX_DESC_W0_WB_B, HBG_STATUS_ENABLE);
| ^~~~~~~~~~
drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c: In function 'hbg_sync_data_from_hw':
>> drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c:233:16: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
233 | return FIELD_GET(HBG_RX_DESC_W2_PKT_LEN_M, rx_desc->word2) != 0;
| ^~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +27 drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.h
97e170277067a0 Jijie Shao 2024-08-19 19
97e170277067a0 Jijie Shao 2024-08-19 20 #define hbg_reg_write64(priv, reg_addr, value) \
97e170277067a0 Jijie Shao 2024-08-19 21 lo_hi_writeq(value, (priv)->io_base + (reg_addr))
97e170277067a0 Jijie Shao 2024-08-19 22
44d1e0ec4b312d Jijie Shao 2024-08-19 23 #define hbg_reg_read_field(priv, reg_addr, mask) \
44d1e0ec4b312d Jijie Shao 2024-08-19 @24 FIELD_GET(mask, hbg_reg_read(priv, reg_addr))
44d1e0ec4b312d Jijie Shao 2024-08-19 25
44d1e0ec4b312d Jijie Shao 2024-08-19 26 #define hbg_reg_write_field(priv, reg_addr, mask, val) \
44d1e0ec4b312d Jijie Shao 2024-08-19 @27 regmap_write_bits((priv)->regmap, reg_addr, mask, FIELD_PREP(mask, val))
44d1e0ec4b312d Jijie Shao 2024-08-19 28
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists