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: <202103042344.fdBUnQEi-lkp@intel.com>
Date:   Thu, 4 Mar 2021 23:43:49 +0800
From:   kernel test robot <lkp@...el.com>
To:     Guo Ren <guoren@...ux.alibaba.com>
Cc:     linux-kernel@...r.kernel.org
Subject: arch/csky/mm/tcm.c:14:2: error: #error "You should define
 DTCM_RAM_BASE"

Hi Guo,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f69d02e37a85645aa90d18cacfff36dba370f797
commit: 18c07d23da5a48525b2955aa269b8bb108c19300 csky: Fixup calltrace panic
date:   10 months ago
config: csky-randconfig-r035-20210304 (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 errors (new ones prefixed by >>):

   arch/csky/mm/tcm.c:9:2: error: #error "You should define ITCM_RAM_BASE"
       9 | #error "You should define ITCM_RAM_BASE"
         |  ^~~~~
>> arch/csky/mm/tcm.c:14:2: error: #error "You should define DTCM_RAM_BASE"
      14 | #error "You should define DTCM_RAM_BASE"
         |  ^~~~~
>> arch/csky/mm/tcm.c:18:2: error: #error "You should define correct DTCM_RAM_BASE"
      18 | #error "You should define correct DTCM_RAM_BASE"
         |  ^~~~~
   arch/csky/mm/tcm.c:109:7: warning: no previous prototype for 'tcm_alloc' [-Wmissing-prototypes]
     109 | void *tcm_alloc(size_t len)
         |       ^~~~~~~~~
   arch/csky/mm/tcm.c:124:6: warning: no previous prototype for 'tcm_free' [-Wmissing-prototypes]
     124 | void tcm_free(void *addr, size_t len)
         |      ^~~~~~~~


vim +14 arch/csky/mm/tcm.c

f525bb2c9e7cf1 Guo Ren 2019-11-27   7  
f525bb2c9e7cf1 Guo Ren 2019-11-27   8  #if (CONFIG_ITCM_RAM_BASE == 0xffffffff)
f525bb2c9e7cf1 Guo Ren 2019-11-27  @9  #error "You should define ITCM_RAM_BASE"
f525bb2c9e7cf1 Guo Ren 2019-11-27  10  #endif
f525bb2c9e7cf1 Guo Ren 2019-11-27  11  
f525bb2c9e7cf1 Guo Ren 2019-11-27  12  #ifdef CONFIG_HAVE_DTCM
f525bb2c9e7cf1 Guo Ren 2019-11-27  13  #if (CONFIG_DTCM_RAM_BASE == 0xffffffff)
f525bb2c9e7cf1 Guo Ren 2019-11-27 @14  #error "You should define DTCM_RAM_BASE"
f525bb2c9e7cf1 Guo Ren 2019-11-27  15  #endif
f525bb2c9e7cf1 Guo Ren 2019-11-27  16  
f525bb2c9e7cf1 Guo Ren 2019-11-27  17  #if (CONFIG_DTCM_RAM_BASE == CONFIG_ITCM_RAM_BASE)
f525bb2c9e7cf1 Guo Ren 2019-11-27 @18  #error "You should define correct DTCM_RAM_BASE"
f525bb2c9e7cf1 Guo Ren 2019-11-27  19  #endif
f525bb2c9e7cf1 Guo Ren 2019-11-27  20  #endif
f525bb2c9e7cf1 Guo Ren 2019-11-27  21  

:::::: The code at line 14 was first introduced by commit
:::::: f525bb2c9e7cf1e3c43ab57704c9e1c836d30b34 csky: Tightly-Coupled Memory or Sram support

:::::: TO: Guo Ren <guoren@...ux.alibaba.com>
:::::: CC: Guo Ren <guoren@...ux.alibaba.com>

---
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" (23907 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ