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>] [day] [month] [year] [list]
Message-ID: <202208060537.isgDwxJf-lkp@intel.com>
Date:   Sat, 6 Aug 2022 05:12:28 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hans-Christian Noren Egtvedt <egtvedt@...fundet.no>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [egtvedt-avr32:avr32-cleanup 9/9]
 drivers/net/ethernet/cadence/macb.h:725:15: error: 'MACB_MII_OFFSET'
 undeclared here (not in a function); did you mean 'MACB_RMII_OFFSET'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32.git avr32-cleanup
head:   127c95b209653b261277d3a6346b6fc5f9a9ef2e
commit: 127c95b209653b261277d3a6346b6fc5f9a9ef2e [9/9] net:cadence: remove bitfields only used by AVR32
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220806/202208060537.isgDwxJf-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32.git/commit/?id=127c95b209653b261277d3a6346b6fc5f9a9ef2e
        git remote add egtvedt-avr32 https://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32.git
        git fetch --no-tags egtvedt-avr32 avr32-cleanup
        git checkout 127c95b209653b261277d3a6346b6fc5f9a9ef2e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/cadence/macb_main.c:41:
>> drivers/net/ethernet/cadence/macb.h:725:15: error: 'MACB_MII_OFFSET' undeclared here (not in a function); did you mean 'MACB_RMII_OFFSET'?
     725 |         (1 << MACB_##name##_OFFSET)
         |               ^~~~~
   drivers/net/ethernet/cadence/macb_main.c:4114:16: note: in expansion of macro 'MACB_BIT'
    4114 |         .mii = MACB_BIT(MII),
         |                ^~~~~~~~


vim +725 drivers/net/ethernet/cadence/macb.h

1629dd4f763cc1 drivers/net/ethernet/cadence/macb.h Rafal Ozieblo      2016-11-16  722  
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  723  /* Bit manipulation macros */
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  724  #define MACB_BIT(name)					\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09 @725  	(1 << MACB_##name##_OFFSET)
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  726  #define MACB_BF(name,value)				\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  727  	(((value) & ((1 << MACB_##name##_SIZE) - 1))	\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  728  	 << MACB_##name##_OFFSET)
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  729  #define MACB_BFEXT(name,value)\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  730  	(((value) >> MACB_##name##_OFFSET)		\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  731  	 & ((1 << MACB_##name##_SIZE) - 1))
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  732  #define MACB_BFINS(name,value,old)			\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  733  	(((old) & ~(((1 << MACB_##name##_SIZE) - 1)	\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  734  		    << MACB_##name##_OFFSET))		\
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  735  	 | MACB_BF(name,value))
89e5785fc8a6b9 drivers/net/macb.h                  Haavard Skinnemoen 2006-11-09  736  

:::::: The code at line 725 was first introduced by commit
:::::: 89e5785fc8a6b9eafd37f2318a9a76d479c796be [PATCH] Atmel MACB ethernet driver

:::::: TO: Haavard Skinnemoen <hskinnemoen@...el.com>
:::::: CC: Jeff Garzik <jeff@...zik.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ