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.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 DB57AC433B4 for ; Sun, 11 Apr 2021 05:42:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E9BDB610C8 for ; Sun, 11 Apr 2021 05:42:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9BDB610C8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 23E208D0002; Sun, 11 Apr 2021 01:42:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1EDA08D0001; Sun, 11 Apr 2021 01:42:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 08FE88D0002; Sun, 11 Apr 2021 01:42:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0171.hostedemail.com [216.40.44.171]) by kanga.kvack.org (Postfix) with ESMTP id E20738D0001 for ; Sun, 11 Apr 2021 01:42:46 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 938961807B553 for ; Sun, 11 Apr 2021 05:42:46 +0000 (UTC) X-FDA: 78018991932.14.0DE39B8 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf17.hostedemail.com (Postfix) with ESMTP id 878E440002CD for ; Sun, 11 Apr 2021 05:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=I8R+qOv7JBIb43BqUUVOEK0P/64+HYPU2xEo1Y2YOT0=; b=YkQqLDj3EYXP32VB6hPs+NWn3k irqAJDtkpNc2uQBnwMFx6X+kFrLDbPegl/Cqff916CLW5PjhNqje6AvcDEtFXbfopNAcqP4uW+jdE AugkRICKKYNj/xsM5UJV2nIirYoosJ+Ckdi1O1wW9ndKMgd8utYzI/9PHFSy2G1azJ68qEMvcT2WD fl+30cU7cE8k4i44rEPxeBewUurO6PcB74lQdsnDhOKL95QM3cKKizggh+nWTBREmRN+2FgQTrGbJ V7bySNwbeerfH/u03k9Lwgn23ca27C0MezTQ5KAYbLJQdcsc4EwRxkkFhhnid3p9LICeG8hP20z9a U6enpoUg==; Received: from [2601:1c0:6280:3f0::e0e1] by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lVSrn-002bgy-BL; Sun, 11 Apr 2021 05:42:41 +0000 Subject: Re: arch/csky/mm/tcm.c:9:2: error: #error "You should define ITCM_RAM_BASE" To: 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> From: Randy Dunlap Message-ID: <3c581465-2b66-934c-28a2-a5328de4fa35@infradead.org> Date: Sat, 10 Apr 2021 22:42:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <202104111227.ArabakLc-lkp@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Stat-Signature: hxanro8ykamgoan4ywip3ot95ynbm7q9 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 878E440002CD Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf17; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1618119763-221807 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/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. -- ~Randy