From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 503905EA4 for ; Sun, 20 Feb 2022 17:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645379750; x=1676915750; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=InSw3Uyo9gVpWR3B5ntUZxtaVXeszMm6nW3C6kITxuo=; b=ZLyEhG5QMqR/qxso3bpyUP7FNFhIbtpjGUg6zz2rsYVrMclh83Syw2fZ WT/yyGjf1GDBI/egBEQ2RDDxIlFa5QbKo9Wof+CXK07cOCncJV1yHvH3H cAvzqPsazqQltPcXe4JJySnru6IIzdl3XhQxAxY8VDA3Q19Ob+VyxIdex bUipo3au2ghYTCYXZvZVt26Uk/wxoJUfH2ijbqh1qiZkeALRROJhe6X2O oF8oXQS+D2pMh7sDsbplpqOM/QrMetzUpTg4D4KGL02s6v5xn/B9k66eK 1ckXpJf7ymqpGhE8hvZnJg6jRfiy5ooxD6f1gz2FswhLzkKaMUlWszPHw A==; X-IronPort-AV: E=McAfee;i="6200,9189,10264"; a="251573630" X-IronPort-AV: E=Sophos;i="5.88,383,1635231600"; d="scan'208";a="251573630" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2022 09:55:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,383,1635231600"; d="scan'208";a="636422461" Received: from lkp-server01.sh.intel.com (HELO da3212ac2f54) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 20 Feb 2022 09:55:45 -0800 Received: from kbuild by da3212ac2f54 with local (Exim 4.92) (envelope-from ) id 1nLqQz-0000Xm-5R; Sun, 20 Feb 2022 17:55:45 +0000 Date: Mon, 21 Feb 2022 01:55:40 +0800 From: kernel test robot To: Alexandre Ghiti , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Aleksandr Nogikh , Nick Hu , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org Subject: Re: [PATCH -fixes 1/4] riscv: Fix is_linear_mapping with recent move of KASAN region Message-ID: <202202210123.ilPycxXe-lkp@intel.com> References: <20220218133513.1762929-2-alexandre.ghiti@canonical.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218133513.1762929-2-alexandre.ghiti@canonical.com> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Alexandre, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.17-rc4 next-20220217] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Alexandre-Ghiti/Fixes-KASAN-and-other-along-the-way/20220220-181628 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4f12b742eb2b3a850ac8be7dc4ed52976fc6cb0b config: riscv-nommu_virt_defconfig (https://download.01.org/0day-ci/archive/20220221/202202210123.ilPycxXe-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/0day-ci/linux/commit/de8a909a9eabf9066802a3396b7009cbf4fa4369 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Alexandre-Ghiti/Fixes-KASAN-and-other-along-the-way/20220220-181628 git checkout de8a909a9eabf9066802a3396b7009cbf4fa4369 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/riscv/kernel/asm-offsets.c:10: >> include/linux/mm.h:837:22: error: use of undeclared identifier 'KERN_VIRT_SIZE'; did you mean 'KERN_VERSION'? struct page *page = virt_to_page(x); ^ arch/riscv/include/asm/page.h:165:42: note: expanded from macro 'virt_to_page' #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr))) ^ arch/riscv/include/asm/page.h:162:41: note: expanded from macro 'virt_to_pfn' #define virt_to_pfn(vaddr) (phys_to_pfn(__pa(vaddr))) ^ arch/riscv/include/asm/page.h:156:18: note: expanded from macro '__pa' #define __pa(x) __virt_to_phys((unsigned long)(x)) ^ arch/riscv/include/asm/page.h:151:27: note: expanded from macro '__virt_to_phys' #define __virt_to_phys(x) __va_to_pa_nodebug(x) ^ arch/riscv/include/asm/page.h:143:2: note: expanded from macro '__va_to_pa_nodebug' is_linear_mapping(_x) ? \ ^ arch/riscv/include/asm/page.h:122:75: note: expanded from macro 'is_linear_mapping' ((x) >= PAGE_OFFSET && (!IS_ENABLED(CONFIG_64BIT) || (x) < PAGE_OFFSET + KERN_VIRT_SIZE)) ^ include/uapi/linux/sysctl.h:88:2: note: 'KERN_VERSION' declared here KERN_VERSION=4, /* string: compile time info */ ^ In file included from arch/riscv/kernel/asm-offsets.c:10: include/linux/mm.h:844:22: error: use of undeclared identifier 'KERN_VIRT_SIZE'; did you mean 'KERN_VERSION'? struct page *page = virt_to_page(x); ^ arch/riscv/include/asm/page.h:165:42: note: expanded from macro 'virt_to_page' #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr))) ^ arch/riscv/include/asm/page.h:162:41: note: expanded from macro 'virt_to_pfn' #define virt_to_pfn(vaddr) (phys_to_pfn(__pa(vaddr))) ^ arch/riscv/include/asm/page.h:156:18: note: expanded from macro '__pa' #define __pa(x) __virt_to_phys((unsigned long)(x)) ^ arch/riscv/include/asm/page.h:151:27: note: expanded from macro '__virt_to_phys' #define __virt_to_phys(x) __va_to_pa_nodebug(x) ^ arch/riscv/include/asm/page.h:143:2: note: expanded from macro '__va_to_pa_nodebug' is_linear_mapping(_x) ? \ ^ arch/riscv/include/asm/page.h:122:75: note: expanded from macro 'is_linear_mapping' ((x) >= PAGE_OFFSET && (!IS_ENABLED(CONFIG_64BIT) || (x) < PAGE_OFFSET + KERN_VIRT_SIZE)) ^ include/uapi/linux/sysctl.h:88:2: note: 'KERN_VERSION' declared here KERN_VERSION=4, /* string: compile time info */ ^ 2 errors generated. make[2]: *** [scripts/Makefile.build:121: arch/riscv/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1191: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +837 include/linux/mm.h 70b50f94f1644e Andrea Arcangeli 2011-11-02 834 b49af68ff9fc5d Christoph Lameter 2007-05-06 835 static inline struct page *virt_to_head_page(const void *x) b49af68ff9fc5d Christoph Lameter 2007-05-06 836 { b49af68ff9fc5d Christoph Lameter 2007-05-06 @837 struct page *page = virt_to_page(x); ccaafd7fd039ae Joonsoo Kim 2015-02-10 838 1d798ca3f16437 Kirill A. Shutemov 2015-11-06 839 return compound_head(page); b49af68ff9fc5d Christoph Lameter 2007-05-06 840 } b49af68ff9fc5d Christoph Lameter 2007-05-06 841 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org