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 927D7D6409A for ; Sat, 9 Nov 2024 06:16:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 102C86B0099; Sat, 9 Nov 2024 01:16:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 063F56B009A; Sat, 9 Nov 2024 01:16:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DF82A6B009B; Sat, 9 Nov 2024 01:16:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id BE4D96B0099 for ; Sat, 9 Nov 2024 01:16:42 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 55D2B40F68 for ; Sat, 9 Nov 2024 06:16:42 +0000 (UTC) X-FDA: 82765546248.27.D466362 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by imf04.hostedemail.com (Postfix) with ESMTP id 5B14640005 for ; Sat, 9 Nov 2024 06:15:52 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TbkDuKIs; spf=pass (imf04.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 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=1731132830; 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=0O968FK3gY6f7xDfvqKc1FhnhNX6nQb64t3U2yx+itM=; b=ECuS2uzml5aMpdYcwo1kcKy16feDxqCZjNxqjZrI0HUY9GkbKaCph+e+kqJxpLwy4nY6FB /nNW2vr3FQVzB15QvTDNt2Nz8vb6FbfMi/TpfQBXWlFaDhfUgVoThqBcxUP4yUWoSYMrej TuheZ8mwJfvtYfctk8dtcIPQ+Q/ULXY= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TbkDuKIs; spf=pass (imf04.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731132830; a=rsa-sha256; cv=none; b=XpOgomdr9U4O/y/IPZgGCo3YumTpWr2cj951nAAwQrgzqhsrCmBeif21e0vci6mQyGyk0w aULp+JHPHePFyu2BihZX4oHZniOQ1W4Yy6hyFTzEVA+Cvw0jdzpONaIc0viwa4BTV2mcpZ oa241Q7qvTBnk+RA1lo6VDMLCGq3Bbs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1731133000; x=1762669000; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rCuKDejdsh+8s+xtkSEN3tnnY5Jx/GJkZI24D8T2Azw=; b=TbkDuKIsS3c4CiZ9xwd631XusyPs7At0ZQB5hWBZXjYQDFTXyrEE9ER2 ohEI+CkIfvhN74gXoC/vsc2333nRA/4WEUTQXwuk+Tms+VRwMtuN30J9r noBwTRD018RAjg7uSWJymnScg3zAUZajBLjTNhkdbsLsjTSh1Hex0FLtS /96h7hrqOK30ggSNRFWvXmIKR2WK2eRgAPZmaCOH0/VWPVjxOf6xmxEHm ko44y5aIG8QTU7apcPsD+ybwwA8RVXQJCsKTAzbZpxbxapqlwbdKdYi5f 8hYQwRq2bwN/VyNBfPmZtnbOFMcPhXJlC0JQj8ZQJBpuSO/8W9JfTmcP7 g==; X-CSE-ConnectionGUID: mixx12U/QAifBCOmwSXxvQ== X-CSE-MsgGUID: yfn9wprbTwm3UflooaUJqA== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="42118401" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="42118401" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2024 22:16:39 -0800 X-CSE-ConnectionGUID: 3ft4vDXRRYS9q09f2nN3/Q== X-CSE-MsgGUID: Bu6AIph+QXCICCY1dtrNsw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,140,1728975600"; d="scan'208";a="85893822" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 08 Nov 2024 22:16:35 -0800 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1t9elt-000s8G-0I; Sat, 09 Nov 2024 06:16:33 +0000 Date: Sat, 9 Nov 2024 14:16:26 +0800 From: kernel test robot To: Jacob Keller , Vladimir Oltean , Andrew Morton , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Tony Nguyen , Przemek Kitszel , Masahiro Yamada , netdev Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kbuild@vger.kernel.org, Jacob Keller Subject: Re: [PATCH net-next v4 3/9] lib: packing: add pack_fields() and unpack_fields() Message-ID: <202411091400.YHOiIq55-lkp@intel.com> References: <20241108-packing-pack-fields-and-ice-implementation-v4-3-81a9f42c30e5@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241108-packing-pack-fields-and-ice-implementation-v4-3-81a9f42c30e5@intel.com> X-Rspamd-Server: rspam09 X-R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Tb07 AhMjkxLgoCGiGjLsY38VaqY8R9qgb0g4RoPXaRxENy18bH8/v3+uihYM7c8SeNq6EnpWi5dxcxeFGaXBPSyHX4gKBFZRGKdMWM7sxV/eD3PNGekau+KAOshz51FPAZX5QpbZKVqTDtbmyfV+DuWqvoxm40Ols5OXxQZLbPoarULL/1bjmC/wV9yj08Aa/kbgOSdPzGSsNTYNKymoPIgXHDzObJjQxSq9TZdQ7Kxvqd2OsooojJfYISQcfN80eLYZZggcr7e9Fhw655BKfCpNWGaBO3q6Yi2J1fi48pNdVlp/7iNEnfgpKRTXKaYYj6sLvnqE6LeRXCkipflgTRPPUUuJdvdFEYsIx009x5jFA8O0imXaLVM4IufmC/KXQLQvx61pB 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 Jacob, kernel test robot noticed the following build warnings: [auto build test WARNING on a84e8c05f58305dfa808bc5465c5175c29d7c9b6] url: https://github.com/intel-lab-lkp/linux/commits/Jacob-Keller/lib-packing-create-__pack-and-__unpack-variants-without-error-checking/20241109-093307 base: a84e8c05f58305dfa808bc5465c5175c29d7c9b6 patch link: https://lore.kernel.org/r/20241108-packing-pack-fields-and-ice-implementation-v4-3-81a9f42c30e5%40intel.com patch subject: [PATCH net-next v4 3/9] lib: packing: add pack_fields() and unpack_fields() config: um-allnoconfig (https://download.01.org/0day-ci/archive/20241109/202411091400.YHOiIq55-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241109/202411091400.YHOiIq55-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/202411091400.YHOiIq55-lkp@intel.com/ All warnings (new ones prefixed by >>): >> scripts/mod/packed_fields.c:135:29: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'Elf32_Word' (aka 'unsigned int') [-Wformat] 134 | error("[%s.ko] \"%s\" has size %zu which is not a multiple of the field size (%zu)\n", | ~~~ | %u 135 | mod->name, symname, sym->st_size, field_size); | ^~~~~~~~~~~~ scripts/mod/modpost.h:207:54: note: expanded from macro 'error' 207 | #define error(fmt, args...) modpost_log(true, fmt, ##args) | ~~~ ^~~~ 1 warning generated. -- >> scripts/mod/packed_fields.c:135:29: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'Elf32_Word' (aka 'unsigned int') [-Wformat] 134 | error("[%s.ko] \"%s\" has size %zu which is not a multiple of the field size (%zu)\n", | ~~~ | %u 135 | mod->name, symname, sym->st_size, field_size); | ^~~~~~~~~~~~ scripts/mod/modpost.h:207:54: note: expanded from macro 'error' 207 | #define error(fmt, args...) modpost_log(true, fmt, ##args) | ~~~ ^~~~ 1 warning generated. vim +135 scripts/mod/packed_fields.c 99 100 void handle_packed_field_symbol(struct module *mod, struct elf_info *info, 101 Elf_Sym *sym, const char *symname) 102 { 103 unsigned int secindex = get_secindex(info, sym); 104 struct packed_field_elem elem = {}, prev = {}; 105 enum element_order order = FIRST_ELEMENT; 106 enum field_type type = UNKNOWN_SECTION; 107 size_t field_size, count; 108 const void *data, *ptr; 109 const char *section; 110 111 /* Skip symbols without a name */ 112 if (*symname == '\0') 113 return; 114 115 /* Skip symbols with invalid sections */ 116 if (secindex >= info->num_sections) 117 return; 118 119 section = sec_name(info, secindex); 120 121 if (strcmp(section, ".rodata.packed_fields_s") == 0) 122 type = PACKED_FIELD_S; 123 else if (strcmp(section, ".rodata.packed_fields_m") == 0) 124 type = PACKED_FIELD_M; 125 126 /* Other sections don't relate to packed fields */ 127 if (type == UNKNOWN_SECTION) 128 return; 129 130 field_size = field_type_to_size(type); 131 132 /* check that the data is a multiple of the size */ 133 if (sym->st_size % field_size != 0) { 134 error("[%s.ko] \"%s\" has size %zu which is not a multiple of the field size (%zu)\n", > 135 mod->name, symname, sym->st_size, field_size); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki