From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CD8CC433B4 for ; Tue, 13 Apr 2021 01:37:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5B75C6124C for ; Tue, 13 Apr 2021 01:37:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B75C6124C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E77B66B0036; Mon, 12 Apr 2021 21:37:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E4E1F6B006E; Mon, 12 Apr 2021 21:37:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D18346B0070; Mon, 12 Apr 2021 21:37:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0140.hostedemail.com [216.40.44.140]) by kanga.kvack.org (Postfix) with ESMTP id B70576B0036 for ; Mon, 12 Apr 2021 21:37:25 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 706FA18084BB3 for ; Tue, 13 Apr 2021 01:37:25 +0000 (UTC) X-FDA: 78025631250.11.098C5B2 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf22.hostedemail.com (Postfix) with ESMTP id 106E8C0007C9 for ; Tue, 13 Apr 2021 01:37:20 +0000 (UTC) IronPort-SDR: MhTujmGDkPlHK46Xj9EW0TFCPW4rIhGOfcIg1hhaLV7HK6n0nTr8zTj6+dMxyw9uljKJ6QPCtr CvCjWe6CnOfQ== X-IronPort-AV: E=McAfee;i="6200,9189,9952"; a="191128269" X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="191128269" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 18:37:22 -0700 IronPort-SDR: 2PuPirryjBwR0mIFvmOX/5lOEAlpTYnH9YRoUUaM+wDmQ7tokfcDTXFP2FxZLDWETLVmjwxBUl wvibQumxnk4g== X-IronPort-AV: E=Sophos;i="5.82,216,1613462400"; d="scan'208";a="460398098" Received: from shao2-debian.sh.intel.com (HELO [10.239.13.11]) ([10.239.13.11]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2021 18:37:19 -0700 Subject: Re: [kbuild-all] Re: arch/csky/mm/tcm.c:9:2: error: #error "You should define ITCM_RAM_BASE" To: Randy Dunlap , kernel test robot , Julian Braha Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Guo Ren References: <202104111227.ArabakLc-lkp@intel.com> <3c581465-2b66-934c-28a2-a5328de4fa35@infradead.org> From: Rong Chen Message-ID: <1f764916-77ea-9bb1-81d0-2f90ed621ff6@intel.com> Date: Tue, 13 Apr 2021 09:36:20 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <3c581465-2b66-934c-28a2-a5328de4fa35@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 106E8C0007C9 X-Stat-Signature: ay6q1iua7eqwnizchmmh73rnc7bcccj3 Received-SPF: none (intel.com>: No applicable sender policy available) receiver=imf22; identity=mailfrom; envelope-from=""; helo=mga11.intel.com; client-ip=192.55.52.93 X-HE-DKIM-Result: none/none X-HE-Tag: 1618277840-590537 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 4/11/21 1:42 PM, Randy Dunlap wrote: > On 4/10/21 9:43 PM, kernel test robot wrote: >> Hi Julian, >> >> First bad commit (maybe != root cause): >> >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >> head: 52e44129fba5cfc4e351fdb5e45849afc74d9a53 >> commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS >> date: 31 hours ago >> config: csky-randconfig-c003-20210411 (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=7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 >> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> git fetch --no-tags linus master >> git checkout 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 >> # 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 >> >> 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: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) >> | ^~~~~~~~ >> >> Kconfig warnings: (for reference only) >> WARNING: unmet direct dependencies detected for LOCKDEP >> Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86) >> Selected by >> - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT >> - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT >> >> >> vim +9 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 >> >> :::::: The code at line 9 was first introduced by commit >> :::::: f525bb2c9e7cf1e3c43ab57704c9e1c836d30b34 csky: Tightly-Coupled Memory or Sram support >> >> :::::: TO: Guo Ren >> :::::: CC: Guo Ren > > Hi ktr/lkp, > > Do you have the ability to modify a (rand)config file before doing > a build? > To fix this kconfig problem, you can use: > > ./scripts/config --set-val ITCM_RAM_BASE 0xe0000000 > or > ./scripts/config --file csky-randconfig-c003-20210411 --set-val ITCM_RAM_BASE 0xe0000000 > if you want to modify some file other than ".config". > > (0xe000000 is an arbitrary value here -- just cannot be 0xffffffff.) > > Then run "make oldconfig" and "make all" or however you normally build a kernel. > > It looks like the Kconfig file's ITCM_RAM_BASE parameter is expected to be > set/modified by the user. The default value of 0xffffffff is invalid. > Hi Randy, Thanks for the advice, we'll modify the config files for arch csky. Best Regards, Rong Chen