[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202412071926.MHYBbSb1-lkp@intel.com>
Date: Mon, 9 Dec 2024 12:18:05 +0800
From: kernel test robot <lkp@...el.com>
To: Sohil Mehta <sohil.mehta@...el.com>, x86@...nel.org,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>
Cc: oe-kbuild-all@...ts.linux.dev, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, "H . Peter Anvin" <hpa@...or.com>,
Uros Bizjak <ubizjak@...il.com>,
Sohil Mehta <sohil.mehta@...el.com>,
Sandipan Das <sandipan.das@....com>,
Sean Christopherson <seanjc@...gle.com>,
Peter Zijlstra <peterz@...radead.org>,
Vegard Nossum <vegard.nossum@...cle.com>,
Tony Luck <tony.luck@...el.com>,
Pawan Gupta <pawan.kumar.gupta@...ux.intel.com>,
Nikolay Borisov <nik.borisov@...e.com>,
Eric Biggers <ebiggers@...gle.com>, Xin Li <xin3.li@...el.com>,
Alexander Shishkin <alexander.shishkin@...el.com>,
Kirill Shutemov <kirill.shutemov@...ux.intel.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 2/2] x86/cpufeature: Add a debug print for unmet
dependencies
Hi Sohil,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tip/master]
[also build test WARNING on tip/x86/core tip/auto-latest bp/for-next linus/master v6.13-rc1 next-20241206]
[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/Sohil-Mehta/x86-cpufeature-Add-a-debug-print-for-unmet-dependencies/20241207-084543
base: tip/master
patch link: https://lore.kernel.org/r/20241207004126.2054658-2-sohil.mehta%40intel.com
patch subject: [PATCH v3 2/2] x86/cpufeature: Add a debug print for unmet dependencies
config: x86_64-randconfig-103-20241207 (https://download.01.org/0day-ci/archive/20241207/202412071926.MHYBbSb1-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241207/202412071926.MHYBbSb1-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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412071926.MHYBbSb1-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/cpu/cpuid-deps.c: In function 'filter_feature_dependencies':
>> arch/x86/kernel/cpu/cpuid-deps.c:160:30: warning: '*32+' directive output may be truncated writing 4 bytes into a region of size between 3 and 11 [-Wformat-truncation=]
160 | snprintf(buf, 12, "%d*32+%2d", feature / 32, feature % 32);
| ^~~~
In function 'x86_feature_name',
inlined from 'x86_feature_name' at arch/x86/kernel/cpu/cpuid-deps.c:155:20,
inlined from 'filter_feature_dependencies' at arch/x86/kernel/cpu/cpuid-deps.c:172:4:
arch/x86/kernel/cpu/cpuid-deps.c:160:27: note: directive argument in the range [0, 31]
160 | snprintf(buf, 12, "%d*32+%2d", feature / 32, feature % 32);
| ^~~~~~~~~~~
arch/x86/kernel/cpu/cpuid-deps.c:160:9: note: 'snprintf' output between 8 and 16 bytes into a destination of size 12
160 | snprintf(buf, 12, "%d*32+%2d", feature / 32, feature % 32);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/cpuid-deps.c: In function 'filter_feature_dependencies':
>> arch/x86/kernel/cpu/cpuid-deps.c:160:30: warning: '*32+' directive output may be truncated writing 4 bytes into a region of size between 3 and 11 [-Wformat-truncation=]
160 | snprintf(buf, 12, "%d*32+%2d", feature / 32, feature % 32);
| ^~~~
In function 'x86_feature_name',
inlined from 'x86_feature_name' at arch/x86/kernel/cpu/cpuid-deps.c:155:20,
inlined from 'filter_feature_dependencies' at arch/x86/kernel/cpu/cpuid-deps.c:172:4:
arch/x86/kernel/cpu/cpuid-deps.c:160:27: note: directive argument in the range [0, 31]
160 | snprintf(buf, 12, "%d*32+%2d", feature / 32, feature % 32);
| ^~~~~~~~~~~
arch/x86/kernel/cpu/cpuid-deps.c:160:9: note: 'snprintf' output between 8 and 16 bytes into a destination of size 12
160 | snprintf(buf, 12, "%d*32+%2d", feature / 32, feature % 32);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +160 arch/x86/kernel/cpu/cpuid-deps.c
149
150 /*
151 * Return the feature "name" if available otherwise return
152 * the X86_FEATURE_* numerals to make it easier to identify
153 * the feature.
154 */
155 static const char *x86_feature_name(unsigned int feature, char *buf)
156 {
157 if (x86_cap_flags[feature])
158 return x86_cap_flags[feature];
159
> 160 snprintf(buf, 12, "%d*32+%2d", feature / 32, feature % 32);
161
162 return buf;
163 }
164
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists