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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5E50C43334 for ; Wed, 6 Jul 2022 19:23:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbiGFTXZ (ORCPT ); Wed, 6 Jul 2022 15:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231442AbiGFTXY (ORCPT ); Wed, 6 Jul 2022 15:23:24 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C163E26CD; Wed, 6 Jul 2022 12:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657135403; x=1688671403; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9W5dFEwCL++hgdF4pj9Fp2+eAdDKMsj+bU7iZIeUnl4=; b=ET1CNBb4R7kCaN6513wq53iNIgA5rNC7odikGLC+7cMJx65ZkCt0xHq/ WjlobV8ptQuVHTmPkc0hGHIzIndmxRy6TxX+GQAt1p0oqIjD1TC0xMoYx rQRiGbBuMOLeDpqgceKYM+LDiA0BbC+up9/6RWJV1A7POswC118zv1hpU jkbm/m1fQVuQXYxTBLCm2iWG4oP0GSjVH/9t5qANa9AENeILTUnKl7axY hICLdeC29z7QxytyRh0Wg0bL7kjWCauaW35MZ95pjmPilRxt5iQ/Wkuxg CC7nCIeyzSxhtNqJ3MR2laND4+IjvRLL5qoviBy39QPFjntwgkOInrV32 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10400"; a="347833078" X-IronPort-AV: E=Sophos;i="5.92,250,1650956400"; d="scan'208";a="347833078" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2022 12:23:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,250,1650956400"; d="scan'208";a="626032279" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 06 Jul 2022 12:23:21 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o9AcL-000KxF-0k; Wed, 06 Jul 2022 19:23:21 +0000 Date: Thu, 7 Jul 2022 03:23:05 +0800 From: kernel test robot To: Hongchen Zhang , Thomas Bogendoerfer Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Hongchen Zhang Subject: Re: [PATCH] MIPS: fix pmd_mkinvalid Message-ID: <202207070340.HGbiEUlO-lkp@intel.com> References: <1657098456-29244-1-git-send-email-zhanghongchen@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1657098456-29244-1-git-send-email-zhanghongchen@loongson.cn> Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Hi Hongchen, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.19-rc5 next-20220706] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Hongchen-Zhang/MIPS-fix-pmd_mkinvalid/20220706-171327 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e35e5b6f695d241ffb1d223207da58a1fbcdff4b config: mips-maltaaprp_defconfig (https://download.01.org/0day-ci/archive/20220707/202207070340.HGbiEUlO-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f553287b588916de09c66e3e32bf75e5060f967f) 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 mips cross compiling tool for clang build # apt-get install binutils-mipsel-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/cc17741b8218515ea05dd64f5db2402a67e7a821 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Hongchen-Zhang/MIPS-fix-pmd_mkinvalid/20220706-171327 git checkout cc17741b8218515ea05dd64f5db2402a67e7a821 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/mips/mm/init.c:60:6: warning: no previous prototype for function 'setup_zero_pages' [-Wmissing-prototypes] void setup_zero_pages(void) ^ arch/mips/mm/init.c:60:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void setup_zero_pages(void) ^ static >> arch/mips/mm/init.c:454:2: error: call to __compiletime_assert_347 declared with 'error' attribute: BUILD_BUG_ON failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT) BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)); ^ include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ include/linux/compiler_types.h:354:2: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ include/linux/compiler_types.h:342:2: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:335:4: note: expanded from macro '__compiletime_assert' prefix ## suffix(); \ ^ :174:1: note: expanded from here __compiletime_assert_347 ^ 1 warning and 1 error generated. vim +/error +454 arch/mips/mm/init.c 1132137e87898d Jiang Liu 2013-07-03 447 1132137e87898d Jiang Liu 2013-07-03 448 void __init mem_init(void) 1132137e87898d Jiang Liu 2013-07-03 449 { 05d013a0366d50 Paul Burton 2019-09-18 450 /* 05d013a0366d50 Paul Burton 2019-09-18 451 * When _PFN_SHIFT is greater than PAGE_SHIFT we won't have enough PTE 05d013a0366d50 Paul Burton 2019-09-18 452 * bits to hold a full 32b physical address on MIPS32 systems. 05d013a0366d50 Paul Burton 2019-09-18 453 */ 05d013a0366d50 Paul Burton 2019-09-18 @454 BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)); 05d013a0366d50 Paul Burton 2019-09-18 455 -- 0-DAY CI Kernel Test Service https://01.org/lkp