linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Guo Ren <guoren@linux.alibaba.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/net/ethernet/intel/e1000/e1000_osdep.h:13: warning: "CONFIG_RAM_BASE" redefined
Date: Sat, 30 Jan 2021 04:31:17 +0800	[thread overview]
Message-ID: <202101300412.H60KUgH0-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4605 bytes --]

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@intel.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@intel.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26751 bytes --]

             reply	other threads:[~2021-01-29 20:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-29 20:31 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-06-02  5:14 drivers/net/ethernet/intel/e1000/e1000_osdep.h:13: warning: "CONFIG_RAM_BASE" redefined kbuild test robot

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=202101300412.H60KUgH0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=guoren@linux.alibaba.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).