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 DF114C0015E for ; Sun, 6 Aug 2023 04:11:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3BCED8D0002; Sun, 6 Aug 2023 00:11:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 36D308D0001; Sun, 6 Aug 2023 00:11:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 234B68D0002; Sun, 6 Aug 2023 00:11:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 13F088D0001 for ; Sun, 6 Aug 2023 00:11:07 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id CFAE8160276 for ; Sun, 6 Aug 2023 04:11:06 +0000 (UTC) X-FDA: 81092354532.14.21E128B Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by imf16.hostedemail.com (Postfix) with ESMTP id 5E5A6180005 for ; Sun, 6 Aug 2023 04:11:03 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Y8k5itNI; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 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=1691295065; 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: references:dkim-signature; bh=YENtdNhL0Vmx8kSnLvKt2RTNKZ7rs+hU1GdQjU4Atqw=; b=osEaVxX0gGRkVF0/sjMsZVXqSMPPEf5W3Oong4iRQdis9la4wk//+nyXKywW0TJxha4Z/F SoMtcVYZIAN3ZxYK8i1pFhYXosC3j3WG8oTWnZUq5wHYx3Tc9kMOJ+S+3Zo0Ct3ZVKvUfF 349J4RjXsrTJte/yRjITTAqpPT0p9qU= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Y8k5itNI; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691295065; a=rsa-sha256; cv=none; b=IQecQfJB/ShpoBIgaivNBDFrT6FCxDVpK+5jUil7AGEjkYJaOdGLcSp9dk+1m4lZ9mlWi/ 1I/G0lu2AjqhCnlv7AeJzGcECZUCoII9+JhngEjm6L+jZD1ajMlob1XEkTp+C9c6HNZ3hd 9MLRvIxbTmnfwZrCKQ3Ay3WEcst7AME= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691295064; x=1722831064; h=date:from:to:cc:subject:message-id:mime-version; bh=4/c4ydww9iCzOLPN3vsVdfJri3vZwAi2WiaGOZpuui0=; b=Y8k5itNIPIiXy8WRqzAas4TOx4gYTyiPZ5Ri1RwlL2etOFepTyHI3C08 Z17rZNxf+/JyWuIdYHqg8EGH1T9/VBJc0dkEXmQ1h6hhLdg/OgNDnf0B9 X7RnXeCeoL8jsruVroinacNu0bEu3mUb7r1ehX8LMS3YYpzeetBhi9Rma MKYwoHqapf72S4htG+LP0qX5qomhWqxLVfi1QaHdW24TOFo2yHVugKQG7 rJQr8QgMPEpmhkD0V0hxezkBPUqalPlR+e0ENao8LDe6gcOGjKogKK7Av wI0bOATuB3fn24DAVMF72TBad7VPwnn22Plyvao/HYgvQgCZUgQwA/Ver Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="360423639" X-IronPort-AV: E=Sophos;i="6.01,259,1684825200"; d="scan'208";a="360423639" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2023 21:11:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10793"; a="760055860" X-IronPort-AV: E=Sophos;i="6.01,259,1684825200"; d="scan'208";a="760055860" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 05 Aug 2023 21:11:00 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qSV6Z-000413-2V; Sun, 06 Aug 2023 04:10:59 +0000 Date: Sun, 6 Aug 2023 12:10:22 +0800 From: kernel test robot To: "Vishal Moola (Oracle)" Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton Subject: [linux-next:master 6109/6443] include/linux/pgtable.h:1041:5: warning: "ALLOC_SPLIT_PTLOCKS" is not defined, evaluates to 0 Message-ID: <202308061211.JH3SLigH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 5E5A6180005 X-Stat-Signature: q9yuahycg3iztchxp4sd4zct6e1bukge X-Rspam-User: X-HE-Tag: 1691295063-39050 X-HE-Meta: U2FsdGVkX18ObxTJsGaEjay2/CH4MHSWbtxJItgQsgwQem09XNS0eqS7lN4sOLlMkiRY/Bd7lqfN0bWZBz9Ms6wno/vRnlRzZ6JiwSZ0gUf623FvrzwzF8UW8Omd77ajm5wNMW4H6SQh5k727BbcTYM3u1UdIYjreZFigqpmT0SSE+TaoKmiK2EHme8B2zlhvlIBuRqcsa2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s1eRTQV2NdMK6fBRr/FGGFWdKs7sreVBqDdjYsH8pwd0wRkKdRmxU8/WYV4LyH6JkDmS8101iPjBUGY5ug8Monc/pRTtwHxZy8NKOdGa5yXqJ46khGQ10opGm9NBSf1QZYMo= 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: bdffb18b5dd8071cd25685b966f380a30b1fadaa commit: 4d448d6c17c1bb5041ede2dcf2bf20e4a153fd4d [6109/6443] pgtable: create struct ptdesc config: xtensa-nommu_kc705_defconfig (https://download.01.org/0day-ci/archive/20230806/202308061211.JH3SLigH-lkp@intel.com/config) compiler: xtensa-de212-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230806/202308061211.JH3SLigH-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/202308061211.JH3SLigH-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/xtensa/include/asm/io.h:19, from include/linux/io.h:13, from arch/xtensa/platforms/xtfpga/setup.c:16: >> include/linux/pgtable.h:1041:5: warning: "ALLOC_SPLIT_PTLOCKS" is not defined, evaluates to 0 [-Wundef] 1041 | #if ALLOC_SPLIT_PTLOCKS | ^~~~~~~~~~~~~~~~~~~ include/linux/pgtable.h:1044:17: error: unknown type name 'spinlock_t' 1044 | spinlock_t ptl; | ^~~~~~~~~~ In file included from include/linux/container_of.h:5, from include/linux/kernel.h:21, from arch/xtensa/platforms/xtfpga/setup.c:14: include/linux/stddef.h:16:33: error: invalid use of undefined type 'struct page' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/pgtable.h:1055:9: note: in expansion of macro 'static_assert' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:1055:23: note: in expansion of macro 'offsetof' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~ include/linux/pgtable.h:1056:1: note: in expansion of macro 'TABLE_MATCH' 1056 | TABLE_MATCH(flags, __page_flags); | ^~~~~~~~~~~ include/linux/stddef.h:16:33: error: expression in static assertion is not an integer 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/pgtable.h:1055:9: note: in expansion of macro 'static_assert' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:1055:23: note: in expansion of macro 'offsetof' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~ include/linux/pgtable.h:1056:1: note: in expansion of macro 'TABLE_MATCH' 1056 | TABLE_MATCH(flags, __page_flags); | ^~~~~~~~~~~ include/linux/stddef.h:16:33: error: invalid use of undefined type 'struct page' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/pgtable.h:1055:9: note: in expansion of macro 'static_assert' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:1055:23: note: in expansion of macro 'offsetof' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~ include/linux/pgtable.h:1057:1: note: in expansion of macro 'TABLE_MATCH' 1057 | TABLE_MATCH(compound_head, pt_list); | ^~~~~~~~~~~ include/linux/stddef.h:16:33: error: expression in static assertion is not an integer 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/pgtable.h:1055:9: note: in expansion of macro 'static_assert' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:1055:23: note: in expansion of macro 'offsetof' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~ include/linux/pgtable.h:1057:1: note: in expansion of macro 'TABLE_MATCH' 1057 | TABLE_MATCH(compound_head, pt_list); | ^~~~~~~~~~~ include/linux/stddef.h:16:33: error: invalid use of undefined type 'struct page' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/pgtable.h:1055:9: note: in expansion of macro 'static_assert' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:1055:23: note: in expansion of macro 'offsetof' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~ include/linux/pgtable.h:1058:1: note: in expansion of macro 'TABLE_MATCH' 1058 | TABLE_MATCH(compound_head, _pt_pad_1); | ^~~~~~~~~~~ include/linux/stddef.h:16:33: error: expression in static assertion is not an integer 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/pgtable.h:1055:9: note: in expansion of macro 'static_assert' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~~~~~~ include/linux/pgtable.h:1055:23: note: in expansion of macro 'offsetof' 1055 | static_assert(offsetof(struct page, pg) == offsetof(struct ptdesc, pt)) | ^~~~~~~~ include/linux/pgtable.h:1058:1: note: in expansion of macro 'TABLE_MATCH' 1058 | TABLE_MATCH(compound_head, _pt_pad_1); | ^~~~~~~~~~~ include/linux/stddef.h:16:33: error: invalid use of undefined type 'struct page' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) vim +/ALLOC_SPLIT_PTLOCKS +1041 include/linux/pgtable.h 1000 1001 1002 /** 1003 * struct ptdesc - Memory descriptor for page tables. 1004 * @__page_flags: Same as page flags. Unused for page tables. 1005 * @pt_rcu_head: For freeing page table pages. 1006 * @pt_list: List of used page tables. Used for s390 and x86. 1007 * @_pt_pad_1: Padding that aliases with page's compound head. 1008 * @pmd_huge_pte: Protected by ptdesc->ptl, used for THPs. 1009 * @__page_mapping: Aliases with page->mapping. Unused for page tables. 1010 * @pt_mm: Used for x86 pgds. 1011 * @pt_frag_refcount: For fragmented page table tracking. Powerpc and s390 only. 1012 * @_pt_pad_2: Padding to ensure proper alignment. 1013 * @ptl: Lock for the page table. 1014 * @__page_type: Same as page->page_type. Unused for page tables. 1015 * @_refcount: Same as page refcount. Used for s390 page tables. 1016 * @pt_memcg_data: Memcg data. Tracked for page tables here. 1017 * 1018 * This struct overlays struct page for now. Do not modify without a good 1019 * understanding of the issues. 1020 */ 1021 struct ptdesc { 1022 unsigned long __page_flags; 1023 1024 union { 1025 struct rcu_head pt_rcu_head; 1026 struct list_head pt_list; 1027 struct { 1028 unsigned long _pt_pad_1; 1029 pgtable_t pmd_huge_pte; 1030 }; 1031 }; 1032 unsigned long __page_mapping; 1033 1034 union { 1035 struct mm_struct *pt_mm; 1036 atomic_t pt_frag_refcount; 1037 }; 1038 1039 union { 1040 unsigned long _pt_pad_2; > 1041 #if ALLOC_SPLIT_PTLOCKS 1042 spinlock_t *ptl; 1043 #else 1044 spinlock_t ptl; 1045 #endif 1046 }; 1047 unsigned int __page_type; 1048 atomic_t _refcount; 1049 #ifdef CONFIG_MEMCG 1050 unsigned long pt_memcg_data; 1051 #endif 1052 }; 1053 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki