* [morse:mpam/snapshot/v5.16 88/137] include/linux/cacheinfo.h:114:24: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295'
@ 2022-01-25 19:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-25 19:28 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3017 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.16
head: 364c1c42b229912132e1615c2ce15be7154e2156
commit: 626a68b7eb02b0a0bb7faaa4b91371c2f3d550d0 [88/137] cacheinfo: Allow for >32-bit cache 'id'
config: arc-randconfig-r043-20220124 (https://download.01.org/0day-ci/archive/20220126/202201260308.f359R4GZ-lkp(a)intel.com/config)
compiler: arc-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=626a68b7eb02b0a0bb7faaa4b91371c2f3d550d0
git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
git fetch --no-tags morse mpam/snapshot/v5.16
git checkout 626a68b7eb02b0a0bb7faaa4b91371c2f3d550d0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/base/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/base/cacheinfo.c:12:
include/linux/cacheinfo.h: In function 'get_cpu_cacheinfo_id':
>> include/linux/cacheinfo.h:114:24: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
114 | return ~0ULL;
| ^
include/linux/cacheinfo.h:120:32: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
120 | return ~0ULL;
| ^
include/linux/cacheinfo.h:124:16: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Woverflow]
124 | return ~0ULL;
| ^
vim +114 include/linux/cacheinfo.h
103
104 /*
105 * Get the id of the cache associated with @cpu at level @level.
106 * cpuhp lock must be held.
107 */
108 static inline unsigned long get_cpu_cacheinfo_id(int cpu, int level)
109 {
110 struct cpu_cacheinfo *ci = get_cpu_cacheinfo(cpu);
111 int i;
112
113 if (!ci->info_list)
> 114 return ~0ULL;
115
116 for (i = 0; i < ci->num_leaves; i++) {
117 if (ci->info_list[i].level == level) {
118 if (ci->info_list[i].attributes & CACHE_ID)
119 return ci->info_list[i].id;
120 return ~0ULL;
121 }
122 }
123
124 return ~0ULL;
125 }
126
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-25 19:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-25 19:28 [morse:mpam/snapshot/v5.16 88/137] include/linux/cacheinfo.h:114:24: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' 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.