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 BEFDFD2446F for ; Fri, 11 Oct 2024 11:04:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2AE9A6B00B0; Fri, 11 Oct 2024 07:04:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 25DD26B00B2; Fri, 11 Oct 2024 07:04:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0FFF36B00B3; Fri, 11 Oct 2024 07:04:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E27796B00B0 for ; Fri, 11 Oct 2024 07:04:19 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8BF3DA0C5D for ; Fri, 11 Oct 2024 11:04:11 +0000 (UTC) X-FDA: 82661037354.16.A6E716E Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by imf19.hostedemail.com (Postfix) with ESMTP id F06261A0019 for ; Fri, 11 Oct 2024 11:04:13 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=kv76ms7c; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728644518; 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=8Oq17LeuAfTnvdQEVBlS9g9Wh40RBAdSjAkZleivLd8=; b=x7ERUSHTjl4zPWgasEtVLXuXajyIU2Tv20QfoKYOMSa+dxsZWpHp3DUixQ4AhzvPP3YXC0 GmS6MBReW1Wac3Hzf95BN+snoiUMDscpi5TW8cE4qGZ2u8NlYo8RSFW21CMPTiggQoyupz MtIr/032o0R3endpM4AUMgP+WOUd5gg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728644518; a=rsa-sha256; cv=none; b=XsyG67ccJUH8lmxx6HyjbWfGzR5/DJfd9uUynH0fdCvrs75l/sGDPK/0jpHm/qU6VNjy6t j1iutqXwL2IgzsloSMA4X0U3vge4uHhHAy8xP5CCyn+lGJdskUf1iI8uU4X9PCTllCFF2M jIql1lmDgd5KAvXc5WibT47NwYC8Szg= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=kv76ms7c; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728644657; x=1760180657; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bsHr9P9sn418fzmWs5e8FSsCYUJqwNAwWk9X37ZYTSU=; b=kv76ms7cUg7VmfprMN7UPOvl/9Rekcs9P1MxUUfy3UUh4THN2TCRZTXi xfvCqDzAVFUUqF5nQdA/+aRA671cnX88ctH8N3RJQv1AU2/4ihOYYEo09 pvNOWX4d0j9MTYGNMePRTW9805+m7mK/S0O+DWULJy35aSWT3GwpbSOTC GWaS78vPM2ZsF1YyhnCQwjpdQfeVctjqzSX6rEnfcTKXg9GCTVUiWbkXV rGMI2I6Q1gEG3qsiGkazrVpb/JWsD3Ud8BEpIQNxWQyPalWJuByvuVf9B /Cz8zYZMt+ipiDXdp+S7gw0yZzseLd4PD+ssui7I2DK3YdA1UdRH5vy37 Q==; X-CSE-ConnectionGUID: +8pAcy6XQGWigBiWc3d84w== X-CSE-MsgGUID: NRgpr/69SpGzSqu/w4Ni2g== X-IronPort-AV: E=McAfee;i="6700,10204,11221"; a="27910863" X-IronPort-AV: E=Sophos;i="6.11,195,1725346800"; d="scan'208";a="27910863" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2024 04:04:15 -0700 X-CSE-ConnectionGUID: UiIz4troTV+b5Eg7RWr4cg== X-CSE-MsgGUID: 4LFB6g60QouKVazavHWv3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,195,1725346800"; d="scan'208";a="76987510" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 11 Oct 2024 04:04:12 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1szDRK-000CDG-0P; Fri, 11 Oct 2024 11:04:10 +0000 Date: Fri, 11 Oct 2024 19:03:55 +0800 From: kernel test robot To: Vincenzo Frascino , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Vincenzo Frascino , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , "Jason A . Donenfeld" , Geert Uytterhoeven Subject: Re: [PATCH v4 2/2] vdso: Introduce vdso/page.h Message-ID: <202410112106.mvc2U2p0-lkp@intel.com> References: <20241010135146.181175-3-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241010135146.181175-3-vincenzo.frascino@arm.com> X-Stat-Signature: 3jg38nfqq3ai6frce3eez488kh8sqrh6 X-Rspamd-Queue-Id: F06261A0019 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1728644653-907354 X-HE-Meta: U2FsdGVkX1/wmxkzmy5Xhl2Ov6ymsRPfAWgR68UcAxjtrX1lC22EGAJFJpX904kYyfZUIoJc6VIXr0pGcFU4GgzpO6Z1x2FhsINi+1z/Mbo/sW3hdIV5zEnpKh1Y+3zkt13orXvghH2Qx357AKO4hdNS9+rI1sYm1RQuMj1eu9R/lJs2X/WOnvH7Z2XCxwSn9ZtRqmvDQ6Q4m9sua3JFNX7wqxeQdG+Izil2Q7o9SpkU1fsKI8NsN3WZMMMu/Vc6YBpMTYC0nqUusHKbfW5jVd5XlCl70Tee38zbB18rFWnzWhptL1B+UNKPD5TQDe0Zo2ygD7j06wMa/xjkbruuZtLCsRhZgltQpr68x9+RBH34K9v4hyawH+Dse/fODgYSi/NLL7rWCmIahxx7CMNAspLwI1e8RNTKMiLe720GZiJun2LZsMd/mA/9IlFTAUIAllzRrMvZ9xb1INFWaDQrduTRAYw9003DHXIOJaJdOqgkNEjvQde0396ml0Kix1O3y54Hzj+AwmziMxCa0DZECMbQWC03Z42x+a/Ozx1frDp7JDYDMpGrfbYlf/RWnD8CTO2kfYLZbkCPjVOD9rRwJ5GQvt8bGJiUb9BqHeGdcCDjsz/kDtuqoWRENTPSzlUuclm9AvKlu1J+PItymmzjQZOiiC2dGivH1wkS0vX5vzAxBDW1yY2h0SQ06VEgOw/QN3RqjdTOVSH7iOA1KVhmAzsrtvcDd5rf26O6/mVeYzu9ZuOvy5F0DciPFKeDtH0V1VNHNFTGmzvl9T9W2pBZQufgUUYuwdTWlJaUZfosAP1wIo1xld8c+eP0HapeUNYs9LYISm/g7sLa/ajWqPS2nmoHoNVrPBoFcJBPuryQm1P8iWajTw1jfWnGzwZrKh7YqI/Jr5jhD2wKMc4YqzL9PYXHrr4bq6Tz9UXrXj26Tp8sGGU4LbTFH5Im9zNpM84y7JVQY8H+0loiNsH/hC6 MZHN/bG4 fyfeNvywFJU9lAkZHeyxWE5mUU/oWfp4NoldHEcL+ruqyssq/junuls697rmmZHpmFxeTzqjYgV5z22zkXblAzCE/6XsvCiQvOPgAUvJ56emvlvg0LHcu+AgJIuiUDTNAJj2Jgh6hvXLsS18iGVvPglfgiWEgGExFVnlnnT5RR22bd/NnVWdIl1DFXeHuRZ6siBbi288HndCt6htSWpX64ra7Q+dtTe3f9Vylj+lziAARMmosVyK0/koj11ZoS1pHqOW6QQfJx79UDGRX6UZveZI/uJFzyILM3XXF15F6vGNShKOhjtzvCe0d9ggJYp0jcUVxIHESVFLm0Bn42zQpw0yxAxpONzi3y1UyswJ/HvEHmar5txHxpxUbIUQCna4UTHHKO0Kes0S9XeoweWPPNyyh2LLZHtqe026u 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: List-Subscribe: List-Unsubscribe: Hi Vincenzo, kernel test robot noticed the following build errors: [auto build test ERROR on vgupta-arc/for-curr] [also build test ERROR on arm64/for-next/core geert-m68k/for-next geert-m68k/for-linus deller-parisc/for-next powerpc/next powerpc/fixes s390/features uml/next tip/x86/core linus/master v6.12-rc2 next-20241011] [cannot apply to vgupta-arc/for-next uml/fixes] [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/Vincenzo-Frascino/drm-i915-Change-fault-type-to-unsigned-long/20241010-215325 base: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git for-curr patch link: https://lore.kernel.org/r/20241010135146.181175-3-vincenzo.frascino%40arm.com patch subject: [PATCH v4 2/2] vdso: Introduce vdso/page.h config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20241011/202410112106.mvc2U2p0-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 70e0a7e7e6a8541bcc46908c592eed561850e416) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241011/202410112106.mvc2U2p0-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/202410112106.mvc2U2p0-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:17:9: warning: 'PAGE_SHIFT' macro redefined [-Wmacro-redefined] 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ include/vdso/page.h:13:9: note: previous definition is here 13 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:18:9: warning: 'PAGE_SIZE' macro redefined [-Wmacro-redefined] 18 | #define PAGE_SIZE _PAGE_SIZE | ^ include/vdso/page.h:15:9: note: previous definition is here 15 | #define PAGE_SIZE (_AC(1,UL) << CONFIG_PAGE_SHIFT) | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:19:9: warning: 'PAGE_MASK' macro redefined [-Wmacro-redefined] 19 | #define PAGE_MASK _PAGE_MASK | ^ include/vdso/page.h:27:9: note: previous definition is here 27 | #define PAGE_MASK (~(PAGE_SIZE - 1)) | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: >> arch/s390/include/asm/page.h:253:14: error: use of undeclared identifier '_PAGE_SHIFT' 253 | return __va(pfn_to_phys(pfn)); | ^ arch/s390/include/asm/page.h:244:36: note: expanded from macro 'pfn_to_phys' 244 | #define pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ arch/s390/include/asm/page.h:258:9: error: use of undeclared identifier '_PAGE_SHIFT' 258 | return phys_to_pfn(__pa(kaddr)); | ^ arch/s390/include/asm/page.h:243:38: note: expanded from macro 'phys_to_pfn' 243 | #define phys_to_pfn(phys) ((phys) >> PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: >> include/asm-generic/getorder.h:33:27: error: use of undeclared identifier '_PAGE_SHIFT' 33 | return BITS_PER_LONG - PAGE_SHIFT; | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: include/asm-generic/getorder.h:35:22: error: use of undeclared identifier '_PAGE_SHIFT' 35 | if (size < (1UL << PAGE_SHIFT)) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: include/asm-generic/getorder.h:38:30: error: use of undeclared identifier '_PAGE_SHIFT' 38 | return ilog2((size) - 1) - PAGE_SHIFT + 1; | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:11: In file included from include/linux/preempt.h:79: In file included from arch/s390/include/asm/preempt.h:6: In file included from include/linux/thread_info.h:60: In file included from arch/s390/include/asm/thread_info.h:31: In file included from arch/s390/include/asm/page.h:273: include/asm-generic/getorder.h:42:11: error: use of undeclared identifier '_PAGE_SHIFT' 42 | size >>= PAGE_SHIFT; | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:5: In file included from include/linux/alloc_tag.h:14: In file included from include/linux/smp.h:119: In file included from arch/s390/include/asm/smp.h:12: >> arch/s390/include/asm/processor.h:287:45: error: use of undeclared identifier '_PAGE_SIZE' 287 | return !((ksp ^ current_stack_pointer) & ~(THREAD_SIZE - 1)); | ^ arch/s390/include/asm/thread_info.h:25:22: note: expanded from macro 'THREAD_SIZE' 25 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:12: >> include/linux/sched.h:1890:22: error: use of undeclared identifier '_PAGE_SIZE' 1890 | unsigned long stack[THREAD_SIZE/sizeof(long)]; | ^ arch/s390/include/asm/thread_info.h:25:22: note: expanded from macro 'THREAD_SIZE' 25 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:7: In file included from include/linux/hardirq.h:5: In file included from include/linux/context_tracking_state.h:5: In file included from include/linux/percpu.h:12: include/linux/sched.h:1897:33: error: use of undeclared identifier '_PAGE_SIZE' 1897 | extern unsigned long init_stack[THREAD_SIZE / sizeof(unsigned long)]; | ^ arch/s390/include/asm/thread_info.h:25:22: note: expanded from macro 'THREAD_SIZE' 25 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 99 | set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 101 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:116:5: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 116 | (set1->sig[1] == set2->sig[1]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:116:21: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 116 | (set1->sig[1] == set2->sig[1]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here -- 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:174:10: note: expanded from macro '_SIG_SET_OP' 174 | case 4: set->sig[3] = op(set->sig[3]); \ | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:20: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:3: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:177:27: note: expanded from macro '_SIG_SET_OP' 177 | case 2: set->sig[1] = op(set->sig[1]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:187:1: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:177:10: note: expanded from macro '_SIG_SET_OP' 177 | case 2: set->sig[1] = op(set->sig[1]); \ | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:198:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 198 | case 2: set->sig[1] = 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:211:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 211 | case 2: set->sig[1] = -1; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:242:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 242 | case 2: set->sig[1] = 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:11: include/linux/signal.h:255:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 255 | case 2: set->sig[1] = -1; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:22: >> include/linux/mm_types.h:547:6: warning: '_PAGE_SIZE' is not defined, evaluates to 0 [-Wundef] 547 | #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:22: >> include/linux/mm_types.h:547:18: warning: '_PAGE_MASK' is not defined, evaluates to 0 [-Wundef] 547 | #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) | ^ include/linux/mm_types.h:524:55: note: expanded from macro 'PAGE_FRAG_CACHE_MAX_SIZE' 524 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^ arch/s390/include/asm/page.h:19:19: note: expanded from macro 'PAGE_MASK' 19 | #define PAGE_MASK _PAGE_MASK | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:22: >> include/linux/mm_types.h:547:18: warning: '_PAGE_MASK' is not defined, evaluates to 0 [-Wundef] include/linux/mm_types.h:524:55: note: expanded from macro 'PAGE_FRAG_CACHE_MAX_SIZE' 524 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^ arch/s390/include/asm/page.h:19:19: note: expanded from macro 'PAGE_MASK' 19 | #define PAGE_MASK _PAGE_MASK | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: In file included from include/linux/mmzone.h:23: >> include/linux/page-flags.h:214:38: error: use of undeclared identifier '_PAGE_SIZE' 214 | if (IS_ALIGNED((unsigned long)page, PAGE_SIZE) && | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: >> include/linux/mmzone.h:1777:23: warning: '_PAGE_SHIFT' is not defined, evaluates to 0 [-Wundef] 1777 | #if (MAX_PAGE_ORDER + PAGE_SHIFT) > SECTION_SIZE_BITS | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: >> include/linux/mmzone.h:1783:16: error: use of undeclared identifier '_PAGE_SHIFT' 1783 | return pfn >> PFN_SECTION_SHIFT; | ^ include/linux/mmzone.h:1767:48: note: expanded from macro 'PFN_SECTION_SHIFT' 1767 | #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1787:16: error: use of undeclared identifier '_PAGE_SHIFT' 1787 | return sec << PFN_SECTION_SHIFT; | ^ include/linux/mmzone.h:1767:48: note: expanded from macro 'PFN_SECTION_SHIFT' 1767 | #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: >> include/linux/mmzone.h:1875:23: error: use of undeclared identifier '_PAGE_SIZE' 1875 | unsigned long root = SECTION_NR_TO_ROOT(nr); | ^ include/linux/mmzone.h:1858:42: note: expanded from macro 'SECTION_NR_TO_ROOT' 1858 | #define SECTION_NR_TO_ROOT(sec) ((sec) / SECTIONS_PER_ROOT) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1877:23: error: use of undeclared identifier '_PAGE_SIZE' 1877 | if (unlikely(root >= NR_SECTION_ROOTS)) | ^ include/linux/mmzone.h:1859:56: note: expanded from macro 'NR_SECTION_ROOTS' 1859 | #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1877:23: error: use of undeclared identifier '_PAGE_SIZE' include/linux/mmzone.h:1859:56: note: expanded from macro 'NR_SECTION_ROOTS' 1859 | #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1884:33: error: use of undeclared identifier '_PAGE_SIZE' 1884 | return &mem_section[root][nr & SECTION_ROOT_MASK]; | ^ include/linux/mmzone.h:1860:28: note: expanded from macro 'SECTION_ROOT_MASK' 1860 | #define SECTION_ROOT_MASK (SECTIONS_PER_ROOT - 1) | ^ include/linux/mmzone.h:1853:34: note: expanded from macro 'SECTIONS_PER_ROOT' 1853 | #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) | ^ arch/s390/include/asm/page.h:18:19: note: expanded from macro 'PAGE_SIZE' 18 | #define PAGE_SIZE _PAGE_SIZE | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1996:18: error: use of undeclared identifier '_PAGE_SHIFT' 1996 | return (pfn & ~(PAGE_SECTION_MASK)) / PAGES_PER_SUBSECTION; | ^ include/linux/mmzone.h:1772:30: note: expanded from macro 'PAGE_SECTION_MASK' 1772 | #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1)) | ^ include/linux/mmzone.h:1771:41: note: expanded from macro 'PAGES_PER_SECTION' 1771 | #define PAGES_PER_SECTION (1UL << PFN_SECTION_SHIFT) | ^ include/linux/mmzone.h:1767:48: note: expanded from macro 'PFN_SECTION_SHIFT' 1767 | #define PFN_SECTION_SHIFT (SECTION_SIZE_BITS - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:1996:40: error: use of undeclared identifier '_PAGE_SHIFT' 1996 | return (pfn & ~(PAGE_SECTION_MASK)) / PAGES_PER_SUBSECTION; | ^ include/linux/mmzone.h:1797:38: note: expanded from macro 'PAGES_PER_SUBSECTION' 1797 | #define PAGES_PER_SUBSECTION (1UL << PFN_SUBSECTION_SHIFT) | ^ include/linux/mmzone.h:1796:50: note: expanded from macro 'PFN_SUBSECTION_SHIFT' 1796 | #define PFN_SUBSECTION_SHIFT (SUBSECTION_SHIFT - PAGE_SHIFT) | ^ arch/s390/include/asm/page.h:17:20: note: expanded from macro 'PAGE_SHIFT' 17 | #define PAGE_SHIFT _PAGE_SHIFT | ^ In file included from arch/s390/kernel/asm-offsets.c:11: In file included from include/linux/kvm_host.h:16: In file included from include/linux/mm.h:7: In file included from include/linux/gfp.h:7: include/linux/mmzone.h:2037:15: error: use of undeclared identifier '_PAGE_SHIFT' 2037 | if (PHYS_PFN(PFN_PHYS(pfn)) != pfn) | ^ include/linux/pfn.h:21:42: note: expanded from macro 'PFN_PHYS' vim +/_PAGE_SHIFT +253 arch/s390/include/asm/page.h 014b020475d4b9 Alexander Gordeev 2020-02-25 250 2d1494fb31405d Linus Walleij 2023-08-12 251 static inline void *pfn_to_virt(unsigned long pfn) 2d1494fb31405d Linus Walleij 2023-08-12 252 { 2d1494fb31405d Linus Walleij 2023-08-12 @253 return __va(pfn_to_phys(pfn)); 2d1494fb31405d Linus Walleij 2023-08-12 254 } 2d1494fb31405d Linus Walleij 2023-08-12 255 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki