* [morse:mpam/snapshot/v6.12-rc1 76/132] drivers/platform/arm64/mpam/mpam_devices.c:356:17: warning: result of comparison of constant 18446744073709551615 with expression of type 'u32' (aka 'unsigned int') is always false
@ 2024-10-08 2:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-08 2:22 UTC (permalink / raw)
To: James Morse; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v6.12-rc1
head: 4d17b37b670795954fd7a70c8ec83fb705a5e2ad
commit: cef6f9417b171fcf4f80d9283c16686b5bd5ffea [76/132] arm_mpam: Add the class and component structures for ris firmware described
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20241008/202410081031.8bueUllP-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project fef3566a25ff0e34fb87339ba5e13eca17cec00f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241008/202410081031.8bueUllP-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410081031.8bueUllP-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/platform/arm64/mpam/mpam_devices.c:6:
In file included from include/linux/acpi.h:39:
In file included from include/acpi/acpi_io.h:7:
In file included from arch/arm64/include/asm/acpi.h:14:
In file included from include/linux/memblock.h:12:
In file included from include/linux/mm.h:2213:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/platform/arm64/mpam/mpam_devices.c:356:17: warning: result of comparison of constant 18446744073709551615 with expression of type 'u32' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
356 | if (cache_id == ~0UL) {
| ~~~~~~~~ ^ ~~~~
5 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MODVERSIONS
Depends on [n]: MODULES [=y] && !COMPILE_TEST [=y]
Selected by [y]:
- RANDSTRUCT_FULL [=y] && (CC_HAS_RANDSTRUCT [=y] || GCC_PLUGINS [=n]) && MODULES [=y]
vim +356 drivers/platform/arm64/mpam/mpam_devices.c
320
321 /*
322 * The cacheinfo structures are only populated when CPUs are online.
323 * This helper walks the device tree to include offline CPUs too.
324 */
325 static int get_cpumask_from_cache_id(u32 cache_id, u32 cache_level,
326 cpumask_t *affinity)
327 {
328 int cpu, err;
329 u32 iter_level;
330 int iter_cache_id;
331 struct device_node *iter;
332
333 if (!acpi_disabled)
334 return acpi_pptt_get_cpumask_from_cache_id(cache_id, affinity);
335
336 for_each_possible_cpu(cpu) {
337 iter = of_get_cpu_node(cpu, NULL);
338 if (!iter) {
339 pr_err("Failed to find cpu%d device node\n", cpu);
340 return -ENOENT;
341 }
342
343 while ((iter = of_find_next_cache_node(iter))) {
344 err = of_property_read_u32(iter, "cache-level",
345 &iter_level);
346 if (err || (iter_level != cache_level)) {
347 of_node_put(iter);
348 continue;
349 }
350
351 /*
352 * get_cpu_cacheinfo_id() isn't ready until sometime
353 * during device_initcall(). Use cache_of_get_id().
354 */
355 iter_cache_id = cache_of_get_id(iter);
> 356 if (cache_id == ~0UL) {
357 of_node_put(iter);
358 continue;
359 }
360
361 if (iter_cache_id == cache_id)
362 cpumask_set_cpu(cpu, affinity);
363
364 of_node_put(iter);
365 }
366 }
367
368 return 0;
369 }
370
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-08 2:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08 2:22 [morse:mpam/snapshot/v6.12-rc1 76/132] drivers/platform/arm64/mpam/mpam_devices.c:356:17: warning: result of comparison of constant 18446744073709551615 with expression of type 'u32' (aka 'unsigned int') is always false kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.