lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202508141517.TTc9sw7w-lkp@intel.com>
Date: Thu, 14 Aug 2025 15:54:36 +0800
From: kernel test robot <lkp@...el.com>
To: Bhargava Marreddy <bhargava.marreddy@...adcom.com>, davem@...emloft.net,
	edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
	andrew+netdev@...n.ch, horms@...nel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
	michael.chan@...adcom.com, pavan.chebbi@...adcom.com,
	vsrama-krishna.nemani@...adcom.com,
	Bhargava Marreddy <bhargava.marreddy@...adcom.com>,
	Vikas Gupta <vikas.gupta@...adcom.com>,
	Rajashekar Hudumula <rajashekar.hudumula@...adcom.com>
Subject: Re: [net-next 7/9] bng_en: Register rings with the firmware

Hi Bhargava,

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/Bhargava-Marreddy/bng_en-Add-initial-support-for-RX-and-TX-rings/20250814-004339
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250813215603.76526-8-bhargava.marreddy%40broadcom.com
patch subject: [net-next 7/9] bng_en: Register rings with the firmware
config: um-randconfig-002-20250814 (https://download.01.org/0day-ci/archive/20250814/202508141517.TTc9sw7w-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 3769ce013be2879bf0b329c14a16f5cb766f26ce)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508141517.TTc9sw7w-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/202508141517.TTc9sw7w-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/broadcom/bnge/bnge_core.c:5:
   In file included from include/linux/crash_dump.h:5:
   In file included from include/linux/kexec.h:20:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1175 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_core.c:9:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge.h:13:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.h:7:
>> drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:430:15: error: incomplete definition of type 'struct bnge_dev'
     430 |         spin_lock(&bd->db_lock);
         |                    ~~^
   drivers/net/ethernet/broadcom/bnge/bnge_rmem.h:8:8: note: forward declaration of 'struct bnge_dev'
       8 | struct bnge_dev;
         |        ^
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_core.c:9:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge.h:13:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.h:7:
>> drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:431:2: error: call to undeclared function 'lo_hi_writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     431 |         lo_hi_writeq(val, addr);
         |         ^
   drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:432:17: error: incomplete definition of type 'struct bnge_dev'
     432 |         spin_unlock(&bd->db_lock);
         |                      ~~^
   drivers/net/ethernet/broadcom/bnge/bnge_rmem.h:8:8: note: forward declaration of 'struct bnge_dev'
       8 | struct bnge_dev;
         |        ^
   drivers/net/ethernet/broadcom/bnge/bnge_core.c:177:40: warning: shift count >= width of type [-Wshift-count-overflow]
     177 |         dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
         |                                               ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:73:54: note: expanded from macro 'DMA_BIT_MASK'
      73 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
         |                                                      ^ ~~~
   2 warnings and 3 errors generated.
--
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.c:6:
   In file included from include/linux/pci.h:38:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1175 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.c:10:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge.h:13:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.h:7:
>> drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:430:15: error: incomplete definition of type 'struct bnge_dev'
     430 |         spin_lock(&bd->db_lock);
         |                    ~~^
   drivers/net/ethernet/broadcom/bnge/bnge_rmem.h:8:8: note: forward declaration of 'struct bnge_dev'
       8 | struct bnge_dev;
         |        ^
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.c:10:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge.h:13:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.h:7:
>> drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:431:2: error: call to undeclared function 'lo_hi_writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     431 |         lo_hi_writeq(val, addr);
         |         ^
   drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:432:17: error: incomplete definition of type 'struct bnge_dev'
     432 |         spin_unlock(&bd->db_lock);
         |                      ~~^
   drivers/net/ethernet/broadcom/bnge/bnge_rmem.h:8:8: note: forward declaration of 'struct bnge_dev'
       8 | struct bnge_dev;
         |        ^
   1 warning and 3 errors generated.
--
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c:7:
   In file included from include/linux/pci.h:38:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1175 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c:10:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge.h:13:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.h:7:
>> drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:430:15: error: incomplete definition of type 'struct bnge_dev'
     430 |         spin_lock(&bd->db_lock);
         |                    ~~^
   drivers/net/ethernet/broadcom/bnge/bnge_rmem.h:8:8: note: forward declaration of 'struct bnge_dev'
       8 | struct bnge_dev;
         |        ^
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c:10:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge.h:13:
   In file included from drivers/net/ethernet/broadcom/bnge/bnge_resc.h:7:
>> drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:431:2: error: call to undeclared function 'lo_hi_writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     431 |         lo_hi_writeq(val, addr);
         |         ^
   drivers/net/ethernet/broadcom/bnge/bnge_netdev.h:432:17: error: incomplete definition of type 'struct bnge_dev'
     432 |         spin_unlock(&bd->db_lock);
         |                      ~~^
   drivers/net/ethernet/broadcom/bnge/bnge_rmem.h:8:8: note: forward declaration of 'struct bnge_dev'
       8 | struct bnge_dev;
         |        ^
   drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c:768:32: warning: variable 'resp' set but not used [-Wunused-but-set-variable]
     768 |         struct hwrm_ring_free_output *resp;
         |                                       ^
   2 warnings and 3 errors generated.


vim +430 drivers/net/ethernet/broadcom/bnge/bnge_netdev.h

   425	
   426	static inline void bnge_writeq(struct bnge_dev *bd, u64 val,
   427				       void __iomem *addr)
   428	{
   429	#if BITS_PER_LONG == 32
 > 430		spin_lock(&bd->db_lock);
 > 431		lo_hi_writeq(val, addr);
   432		spin_unlock(&bd->db_lock);
   433	#else
   434		writeq(val, addr);
   435	#endif
   436	}
   437	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ