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 361EEC30658 for ; Fri, 5 Jul 2024 13:41:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9267F6B009A; Fri, 5 Jul 2024 09:41:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D5566B009D; Fri, 5 Jul 2024 09:41:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 79C656B009E; Fri, 5 Jul 2024 09:41:53 -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 5B46B6B009A for ; Fri, 5 Jul 2024 09:41:53 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 00E511C334A for ; Fri, 5 Jul 2024 13:41:52 +0000 (UTC) X-FDA: 82305812106.05.36DE1E6 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by imf12.hostedemail.com (Postfix) with ESMTP id 94FF54000C for ; Fri, 5 Jul 2024 13:41:49 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Fwpbm8zV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 198.175.65.15 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720186889; a=rsa-sha256; cv=none; b=Df6HCRtAgtsAg6b9CCJK0XuHQk+FICzmUlU34hQTcFC9uk1sWH1E08HxYZrjFzedntVKch 9W50G6rt/dsxueeSDlWKViTC2K2y9t/DKepSGzEcbjF96flLZL4l/djJAb83lGc2Ou0POu gj4rI1NbeGvxWfKbPTCp8gORF2pE+bw= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Fwpbm8zV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 198.175.65.15 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=1720186889; 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=n2fWYGi8Mq42htI5Fq3EGZxc7Rrx62smeqdfumuXCj4=; b=gdgrFThuptcHJyH4mvg6aoE3BFrIofLlUwsOfoptz6a1VWx0ayi0YjZ7BCFMUKEgZT8OsQ iCVmC/F85TpoE0TxKx8YP0jb3JNGY0vs3W8BhHfqHLt5HYwDAy4QrqbV16aDefFwyfHOeA bZPF6KJJo2w4uQjpjEXz91b2JeqqHdo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720186910; x=1751722910; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=thZNfYC8uPof+gGtq8OfZdddZaeF5427/D5+IHIKChc=; b=Fwpbm8zVQUzwTeO/NQjWYsYezymly0uYcLYDcc00oJyNs7UJX0IHz1z2 wrvAQN+PXKyqnYewWUeg1LaF1MWoY94Kvpr2dWFNFnbKeiHL+cR7EXXEo 5t1G4oPnRa7pDSXZSaNOnhiRxqTvwMgZmjE9NKAKvHTHs5DmWI8hYDXVa wqo4oDHSmyimOfxeD/cnF83pIeTcHT3D13F6Mt31KKbg2c+lVISAiYfy1 DncKg9MmpaTe1wmgS2yLEFamEN/Wa+OTBsnreC+65bzrG/p0Jq/Wu+rEX uyPgVpuFwRELaL/FYdN+iV3Nsmu5w13mHGmF8mFQlVvac9x0qGK3YgfdA w==; X-CSE-ConnectionGUID: BJiqqBcXRrmshKknJkbZvA== X-CSE-MsgGUID: 82sCeQ8mRz26Ycef9b/FOA== X-IronPort-AV: E=McAfee;i="6700,10204,11123"; a="21249294" X-IronPort-AV: E=Sophos;i="6.09,184,1716274800"; d="scan'208";a="21249294" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 06:41:48 -0700 X-CSE-ConnectionGUID: UevxvWyYTG2PP6AGyswH4Q== X-CSE-MsgGUID: 2hTyJIfTRpO7KhNrmdxPFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,184,1716274800"; d="scan'208";a="52068164" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 05 Jul 2024 06:41:44 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sPjC2-000SQq-0h; Fri, 05 Jul 2024 13:41:42 +0000 Date: Fri, 5 Jul 2024 21:41:36 +0800 From: kernel test robot To: alexs@kernel.org, Vitaly Wool , Miaohe Lin , Andrew Morton , linux-kernel@vger.kernel.org, minchan@kernel.org, willy@infradead.org, senozhatsky@chromium.org, david@redhat.com, 42.hyeyoo@gmail.com, Yosry Ahmed , nphamcs@gmail.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alex Shi Subject: Re: [PATCH v2 01/20] mm/zsmalloc: add zpdesc memory descriptor for zswap.zpool Message-ID: <202407052121.e5LTYhXc-lkp@intel.com> References: <20240703040613.681396-2-alexs@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240703040613.681396-2-alexs@kernel.org> X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 94FF54000C X-Stat-Signature: wofmpxkcfhpga5ic8xotxg77yub78tsy X-Rspam-User: X-HE-Tag: 1720186909-627659 X-HE-Meta: U2FsdGVkX1/h1Wo53mQqA0u3Kjkd2ZgA965Vk15+1pa7GC43K9JpwDtHrWsE6Uq18vEbk4N7e9rTBBXncU8ucUZVfFqWfqafYmLd1YMyut6rUg/LKF8qE4CwHXE07CXuDg77FEl5ZmiEPeXJGGttYHpmusgnX/97xb32M5nZ4rYHjrffsIQWFIN6NVTzZ7qk/WAzINd0Y0ZrxxUV70sbr80sA3PDfBePK5AxpGSuouKRsWX748cF30+pjSNlUZ2WdlgrimhYVEgCJyQKbo0Nmpl460ZP+dT/UqdxzsD0vll1EAtH5LKO08kaSFXaVSDttWYI+ArPs00mKmbyhdlxMWcF9U+KqIiXsBOxARbKbar/kH/bfa6tVMc3HuZF30Hk5I7UmSC9rBHwvGXM8bHCei0babvQW/inTre10CMRbZpo3Ju/gNsqWKboyhuqu/I1CtrPZDaodPIVZGa4syE6zQIxG0u69QKvfGrenhf8cqLYeUtIBfExzgNRgNwZHnR3drXwRlldb03W/uT0eRvLnpgydNa1OOYaPrJPXNT+L0gQsko17F+xDV06dD1S5XUliDtrs2b4xf5fYb0Vm++diwxa/jWEvM2n+L7L0UNnhMQlrroYaqG1G54Qjl/s8f2C/bPOwN+NN58NJXyRbgdlJoDoflsdQj85ermGT+bCAilOAQ1qkXtn/04Z8tinmfY0pfbb5DtgFynMw/5sNca5uHPx7auvLIxshrCW3eY2JVYO+U1ujwDylw+vJNa38ssi4881GltxgLHgPUGulUUyCykBHcJGPxcwnJN8qEQMoKUummww8N2FT4v4+wL3RHfgeLwIOJdRuyPsRnJ13xtrkZTZ1rtF+jFLhNLw3k1j0LD7EQoDlFc78XOOEk63/yitOeh94Gn8hpy98t4Zsj8Dlbeg1fQeKsEGMqc29UVHCTCcpajGhFNCKZn/R57CgtcX103B4pEUu0z6xxdDGUZ K15pB5e7 vzJ5e3gSlIiJAph6ywGWhW7e1ePb6lxbpUFDN7/ByrFXMkqhhGMD3+X0t63IHJFpb57JiB4L5Y3IMASM/CGDlB+8ihEfhgRuqpt/0Hy7ctZy+uP+sv+cEdAAMAHfwcg8pmwM4R9pvonibMQsRdjIzQZ66Zmnp2ilJZARFo9SHC/3trzAi2vux0KkV2R9XIhECoA8dSahAtZysI6BDh3JgFaGR5ufrYimChb8PvR7e9bKwCdD2FV15zsj4mrlKZGEMnQ44sj1kOmy4X52PyViVISwXaJTkcthBuLEGnNC7TmSiTUL5o/dBfDY2YkfnHFZyl8jTjJvvh63xpKc8V5XlA0gdLciQgWkaFNFTdNZLK8B0yddVjAuFCPMUx//RaEluHRnkqe9smQUNm7x82f+E2N/PrTzosce2vCg93aHX4ZGlB4U= 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, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/alexs-kernel-org/mm-zsmalloc-add-zpdesc-memory-descriptor-for-zswap-zpool/20240703-182314 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20240703040613.681396-2-alexs%40kernel.org patch subject: [PATCH v2 01/20] mm/zsmalloc: add zpdesc memory descriptor for zswap.zpool config: i386-buildonly-randconfig-004-20240705 (https://download.01.org/0day-ci/archive/20240705/202407052121.e5LTYhXc-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240705/202407052121.e5LTYhXc-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/202407052121.e5LTYhXc-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/zsmalloc.c:65: >> mm/zpdesc.h:48:1: error: no member named 'memcg_data' in 'page' 48 | ZPDESC_MATCH(memcg_data, memcg_data); | ^ ~~~~~~~~~~ mm/zpdesc.h:40:16: note: expanded from macro 'ZPDESC_MATCH' 40 | static_assert(offsetof(struct page, pg) == offsetof(struct zpdesc, zp)) | ^ ~~ include/linux/stddef.h:16:32: note: expanded from macro 'offsetof' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^ ~~~~~~ include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' 77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) | ^~~~ include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ In file included from mm/zsmalloc.c:65: >> mm/zpdesc.h:48:1: error: no member named 'memcg_data' in 'zpdesc' 48 | ZPDESC_MATCH(memcg_data, memcg_data); | ^ ~~~~~~~~~~ mm/zpdesc.h:40:45: note: expanded from macro 'ZPDESC_MATCH' 40 | static_assert(offsetof(struct page, pg) == offsetof(struct zpdesc, zp)) | ^ ~~ include/linux/stddef.h:16:32: note: expanded from macro 'offsetof' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^ ~~~~~~ include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert' 77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) | ^~~~ include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ 2 errors generated. vim +48 mm/zpdesc.h 9 10 /* 11 * struct zpdesc - Memory descriptor for zpool memory, now is for zsmalloc 12 * @flags: Page flags, PG_private: identifies the first component page 13 * @lru: Indirectly used by page migration 14 * @mops: Used by page migration 15 * @next: Next zpdesc in a zspage in zsmalloc zpool 16 * @handle: For huge zspage in zsmalloc zpool 17 * @zspage: Pointer to zspage in zsmalloc 18 * @memcg_data: Memory Control Group data. 19 * 20 * This struct overlays struct page for now. Do not modify without a good 21 * understanding of the issues. 22 */ 23 struct zpdesc { 24 unsigned long flags; 25 struct list_head lru; 26 struct movable_operations *mops; 27 union { 28 /* Next zpdescs in a zspage in zsmalloc zpool */ 29 struct zpdesc *next; 30 /* For huge zspage in zsmalloc zpool */ 31 unsigned long handle; 32 }; 33 struct zspage *zspage; 34 unsigned long _zp_pad_1; 35 #ifdef CONFIG_SLAB_OBJ_EXT 36 unsigned long memcg_data; 37 #endif 38 }; 39 #define ZPDESC_MATCH(pg, zp) \ 40 static_assert(offsetof(struct page, pg) == offsetof(struct zpdesc, zp)) 41 42 ZPDESC_MATCH(flags, flags); 43 ZPDESC_MATCH(lru, lru); 44 ZPDESC_MATCH(mapping, mops); 45 ZPDESC_MATCH(index, next); 46 ZPDESC_MATCH(index, handle); 47 ZPDESC_MATCH(private, zspage); > 48 ZPDESC_MATCH(memcg_data, memcg_data); 49 #undef ZPDESC_MATCH 50 static_assert(sizeof(struct zpdesc) <= sizeof(struct page)); 51 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki