[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202101300412.H60KUgH0-lkp@intel.com>
Date: Sat, 30 Jan 2021 04:31:17 +0800
From: kernel test robot <lkp@...el.com>
To: Guo Ren <guoren@...ux.alibaba.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/net/ethernet/intel/e1000/e1000_osdep.h:13: warning:
"CONFIG_RAM_BASE" redefined
Hi Guo,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bec4c2968fce2f44ce62d05288a633cd99a722eb
commit: 18c07d23da5a48525b2955aa269b8bb108c19300 csky: Fixup calltrace panic
date: 9 months ago
config: csky-randconfig-r024-20210130 (attached as .config)
compiler: csky-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=18c07d23da5a48525b2955aa269b8bb108c19300
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 18c07d23da5a48525b2955aa269b8bb108c19300
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=csky
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/intel/e1000/e1000_hw.h:11,
from drivers/net/ethernet/intel/e1000/e1000.h:54,
from drivers/net/ethernet/intel/e1000/e1000_main.c:4:
>> drivers/net/ethernet/intel/e1000/e1000_osdep.h:13: warning: "CONFIG_RAM_BASE" redefined
13 | #define CONFIG_RAM_BASE 0x60000
|
In file included from include/linux/kconfig.h:5,
from <command-line>:
./include/generated/autoconf.h:1771: note: this is the location of the previous definition
1771 | #define CONFIG_RAM_BASE 0x0
|
--
In file included from drivers/net/ethernet/intel/e1000/e1000_hw.h:11,
from drivers/net/ethernet/intel/e1000/e1000.h:54,
from drivers/net/ethernet/intel/e1000/e1000_hw.c:8:
>> drivers/net/ethernet/intel/e1000/e1000_osdep.h:13: warning: "CONFIG_RAM_BASE" redefined
13 | #define CONFIG_RAM_BASE 0x60000
|
In file included from include/linux/kconfig.h:5,
from <command-line>:
./include/generated/autoconf.h:1771: note: this is the location of the previous definition
1771 | #define CONFIG_RAM_BASE 0x0
|
drivers/net/ethernet/intel/e1000/e1000_hw.c: In function 'e1000_phy_init_script':
drivers/net/ethernet/intel/e1000/e1000_hw.c:132:6: warning: variable 'ret_val' set but not used [-Wunused-but-set-variable]
132 | u32 ret_val;
| ^~~~~~~
drivers/net/ethernet/intel/e1000/e1000_hw.c: In function 'e1000_reset_hw':
drivers/net/ethernet/intel/e1000/e1000_hw.c:380:6: warning: variable 'icr' set but not used [-Wunused-but-set-variable]
380 | u32 icr;
| ^~~
drivers/net/ethernet/intel/e1000/e1000_hw.c: In function 'e1000_check_for_link':
drivers/net/ethernet/intel/e1000/e1000_hw.c:2378:6: warning: variable 'signal' set but not used [-Wunused-but-set-variable]
2378 | u32 signal = 0;
| ^~~~~~
drivers/net/ethernet/intel/e1000/e1000_hw.c:2374:6: warning: variable 'ctrl' set but not used [-Wunused-but-set-variable]
2374 | u32 ctrl;
| ^~~~
drivers/net/ethernet/intel/e1000/e1000_hw.c:2373:6: warning: variable 'rxcw' set but not used [-Wunused-but-set-variable]
2373 | u32 rxcw = 0;
| ^~~~
drivers/net/ethernet/intel/e1000/e1000_hw.c: In function 'e1000_clear_hw_cntrs':
drivers/net/ethernet/intel/e1000/e1000_hw.c:4678:15: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
4678 | volatile u32 temp;
| ^~~~
vim +/CONFIG_RAM_BASE +13 drivers/net/ethernet/intel/e1000/e1000_osdep.h
5377a4160bb65e drivers/net/e1000/e1000_osdep.h Dirk Brandewie 2011-01-06 12
5377a4160bb65e drivers/net/e1000/e1000_osdep.h Dirk Brandewie 2011-01-06 @13 #define CONFIG_RAM_BASE 0x60000
5377a4160bb65e drivers/net/e1000/e1000_osdep.h Dirk Brandewie 2011-01-06 14 #define GBE_CONFIG_OFFSET 0x0
5377a4160bb65e drivers/net/e1000/e1000_osdep.h Dirk Brandewie 2011-01-06 15
:::::: The code at line 13 was first introduced by commit
:::::: 5377a4160bb65ee4dd11b4b1d081d86d56d92bff e1000: Add support for the CE4100 reference platform
:::::: TO: Dirk Brandewie <dirk.j.brandewie@...el.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (26751 bytes)
Powered by blists - more mailing lists