public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jijie Shao <shaojijie@huawei.com>,
	yisen.zhuang@huawei.com, salil.mehta@huawei.com,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, horms@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, shenjian15@huawei.com,
	wangpeiyang1@huawei.com, liuyonglong@huawei.com,
	shaojijie@huawei.com, sudongming1@huawei.com,
	xujunsheng@huawei.com, shiyongbang@huawei.com,
	libaihan@huawei.com, andrew@lunn.ch, jdamato@fastly.com,
	jonathan.cameron@huawei.com,
	shameerali.kolothum.thodi@huawei.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 09/11] net: hibmcge: Add a Makefile and update Kconfig for hibmcge
Date: Mon, 19 Aug 2024 23:07:19 +0800	[thread overview]
Message-ID: <202408192219.zrGff7n1-lkp@intel.com> (raw)
In-Reply-To: <20240819071229.2489506-10-shaojijie@huawei.com>

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@intel.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

  reply	other threads:[~2024-08-19 15:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19  7:12 [PATCH net-next 00/11] Add support of HIBMCGE Ethernet Driver Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 01/11] net: hibmcge: Add pci table supported in this module Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 02/11] net: hibmcge: Add read/write registers supported through the bar space Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 03/11] net: hibmcge: Add mdio and hardware configuration supported in this module Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 04/11] net: hibmcge: Add interrupt " Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 05/11] net: hibmcge: Implement some .ndo functions Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 06/11] net: hibmcge: Implement .ndo_start_xmit function Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 07/11] net: hibmcge: Implement rx_poll function to receive packets Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 08/11] net: hibmcge: Implement some ethtool_ops functions Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 09/11] net: hibmcge: Add a Makefile and update Kconfig for hibmcge Jijie Shao
2024-08-19 15:07   ` kernel test robot [this message]
2024-08-19 16:19   ` kernel test robot
2024-08-19  7:12 ` [PATCH net-next 10/11] net: hibmcge: Add maintainer " Jijie Shao
2024-08-19  7:12 ` [PATCH net-next 11/11] net: add is_valid_ether_addr check in dev_set_mac_address Jijie Shao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202408192219.zrGff7n1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jdamato@fastly.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=kuba@kernel.org \
    --cc=libaihan@huawei.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liuyonglong@huawei.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=salil.mehta@huawei.com \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=shaojijie@huawei.com \
    --cc=shenjian15@huawei.com \
    --cc=shiyongbang@huawei.com \
    --cc=sudongming1@huawei.com \
    --cc=wangpeiyang1@huawei.com \
    --cc=xujunsheng@huawei.com \
    --cc=yisen.zhuang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox