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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96712CA0EC3 for ; Mon, 11 Sep 2023 22:09:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D5FB96B00A0; Mon, 11 Sep 2023 18:09:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CE8756B00A1; Mon, 11 Sep 2023 18:09:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B62BD6B00A2; Mon, 11 Sep 2023 18:09:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A0ED76B00A0 for ; Mon, 11 Sep 2023 18:09:02 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 6EF4C1205DE for ; Mon, 11 Sep 2023 22:09:02 +0000 (UTC) X-FDA: 81225707724.30.E479111 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by imf28.hostedemail.com (Postfix) with ESMTP id EAEACC0027 for ; Mon, 11 Sep 2023 22:08:54 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Wpv5MekI; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694470139; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=hWVMGa/8+eN4oGin9aJdmqnBAsklXHOGQw7dP+u6G/M=; b=IEHX37kUVYQvAGEYrByGpVuk2ApLdb+RaeQfBncbv/ogWNN94GpxO+LHfavOry1xcCbHXz 8fknzG63Wbf80mDJ7F68kwo5Jk/NokxcYbSSUV/jS3eLVTlC/bYzRBGH1kb7T7Hcm773zZ PCCVwkSYQkrxyvTQZnWkyrv9Rc1QYnU= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Wpv5MekI; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694470139; a=rsa-sha256; cv=none; b=OTWhFejy4ogiGxNdA3RsY8zno47/HR/RdUzjimH/4EOQesscFgRul/osJDOE0raMNug2I3 C5fdFVONgh5lwffJc0KrovDleZb7WGjiPQEFMQDwnikLjOhuBW2V7TKFeJ/TwnzrDaxVl4 iYfDjNOPR0HP+3QGhJHct9yXEbfJHkI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694470139; x=1726006139; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=W/uyQm7bKFLaA8kTTensqk8xGU67xd00d8UbqkoUevA=; b=Wpv5MekIgMzt+zOoRQ1n+Nea7bPw21iC9bQ7g3S7SOu+Wv+I6YevZTTw JxOCAIozhZ31l3+suzrcAwCPR2ua+w1GCeo3CnLrjIqf3rL9OeCGdL4FI nXnpbCJWkCM81CO2FtFLvFhSj1SILLJR7cCcwgU75MgsSV+a3mTF37Ad0 2aQ2Y3PsdXsC4BFQxLmyBb3GuVv/lTRAy64l8M+8ZgMG4OzaQksGCqFFk Mw1K9V+5NVd+NMLFRnYKXyfZnh8L3Iy4AYTUMVdUImD3YtQnuZxgiuXnm J72k694uUg4rBUahz9FJpsnYK2bihbfE+vvBk99EoNn5Tok0ZIgURjA2f w==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="464589453" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="464589453" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 15:08:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="720143377" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="720143377" Received: from lkp-server01.sh.intel.com (HELO 59b3c6e06877) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 11 Sep 2023 15:08:50 -0700 Received: from kbuild by 59b3c6e06877 with local (Exim 4.96) (envelope-from ) id 1qfp5M-0006n8-14; Mon, 11 Sep 2023 22:08:48 +0000 Date: Tue, 12 Sep 2023 06:08:10 +0800 From: kernel test robot To: Samuel Holland , Palmer Dabbelt , Alexandre Ghiti , linux-riscv@lists.infradead.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: Re: [PATCH 7/7] riscv: mm: Combine the SMP and non-SMP TLB flushing code Message-ID: <202309120544.bc0uet1N-lkp@intel.com> References: <20230909201727.10909-8-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230909201727.10909-8-samuel@sholland.org> X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: EAEACC0027 X-Stat-Signature: ewkyd38rpbuh1uw71qy59adroc54hxeb X-HE-Tag: 1694470134-107401 X-HE-Meta: U2FsdGVkX1/684VZ3mfYXEmNxlnPqG46Fogc4/lI98zQ7PtEZTxI9woAsT15gr46FCEfTg2Mm15i4laXfLE1vU5v8c/khYA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+ZuNihHYUrzdv7vBiALcld3MZCcoHx8mVxYDBbonySoGKEdXLzW3EYUV8LIj4g/svcBaFx5S1z0X3pdbRs5R2cRDK2ybdHwlIV5xQrt7DSt0KfC8LSQRbtGcJLz3EdEfAnCOxKi4x6nITb93IwaW0/pisjZiWfnA/pMPHq7OkZtVDAbx/xWZaCYC2uQ9lZ7KiZEtUcLZVbbuxRCU9r4jvfb9WGhQdoXxaQu0Nf3JY+Bm08RUYsA= 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: Hi Samuel, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.6-rc1 next-20230911] [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/Samuel-Holland/riscv-Apply-SiFive-CIP-1200-workaround-to-single-ASID-sfence-vma/20230910-042028 base: linus/master patch link: https://lore.kernel.org/r/20230909201727.10909-8-samuel%40sholland.org patch subject: [PATCH 7/7] riscv: mm: Combine the SMP and non-SMP TLB flushing code config: riscv-randconfig-r005-20230912 (https://download.01.org/0day-ci/archive/20230912/202309120544.bc0uet1N-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230912/202309120544.bc0uet1N-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309120544.bc0uet1N-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:29: In file included from include/linux/pgtable.h:6: In file included from arch/riscv/include/asm/pgtable.h:117: >> arch/riscv/include/asm/tlbflush.h:60:2: error: call to undeclared function 'flush_tlb_all'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | flush_tlb_all(); | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 97 | return (set->sig[3] | set->sig[2] | | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:97:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 97 | return (set->sig[3] | set->sig[2] | | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | set->sig[1] | set->sig[0]) == 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:100:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 100 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:113:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 113 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:113:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 113 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | (set1->sig[2] == set2->sig[2]) && | ^ ~ include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here 62 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/riscv/kernel/asm-offsets.c:10: In file included from include/linux/mm.h:1075: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: vim +/flush_tlb_all +60 arch/riscv/include/asm/tlbflush.h fab957c11efe2f4 Palmer Dabbelt 2017-07-10 55 fab957c11efe2f4 Palmer Dabbelt 2017-07-10 56 /* Flush a range of kernel pages */ fab957c11efe2f4 Palmer Dabbelt 2017-07-10 57 static inline void flush_tlb_kernel_range(unsigned long start, fab957c11efe2f4 Palmer Dabbelt 2017-07-10 58 unsigned long end) fab957c11efe2f4 Palmer Dabbelt 2017-07-10 59 { fab957c11efe2f4 Palmer Dabbelt 2017-07-10 @60 flush_tlb_all(); fab957c11efe2f4 Palmer Dabbelt 2017-07-10 61 } fab957c11efe2f4 Palmer Dabbelt 2017-07-10 62 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki