From: kernel test robot <lkp@intel.com>
To: Rob Herring <robh@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, James Morse <james.morse@arm.com>
Subject: [morse:mpam/snapshot/v5.16 88/137] include/linux/cacheinfo.h:114:10: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295
Date: Wed, 26 Jan 2022 03:17:56 +0800 [thread overview]
Message-ID: <202201260326.obpo9ntU-lkp@intel.com> (raw)
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: arm-shannon_defconfig (https://download.01.org/0day-ci/archive/20220126/202201260326.obpo9ntU-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 997e128e2a78f5a5434fc75997441ae1ee76f8a4)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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=clang make.cross W=1 O=build_dir ARCH=arm 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:114:10: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
return ~0ULL;
~~~~~~ ^~~~~
include/linux/cacheinfo.h:120:11: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
return ~0ULL;
~~~~~~ ^~~~~
include/linux/cacheinfo.h:124:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
return ~0ULL;
~~~~~~ ^~~~~
3 warnings generated.
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@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [morse:mpam/snapshot/v5.16 88/137] include/linux/cacheinfo.h:114:10: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295
Date: Wed, 26 Jan 2022 03:17:56 +0800 [thread overview]
Message-ID: <202201260326.obpo9ntU-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3145 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: arm-shannon_defconfig (https://download.01.org/0day-ci/archive/20220126/202201260326.obpo9ntU-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 997e128e2a78f5a5434fc75997441ae1ee76f8a4)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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=clang make.cross W=1 O=build_dir ARCH=arm 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:114:10: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
return ~0ULL;
~~~~~~ ^~~~~
include/linux/cacheinfo.h:120:11: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
return ~0ULL;
~~~~~~ ^~~~~
include/linux/cacheinfo.h:124:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
return ~0ULL;
~~~~~~ ^~~~~
3 warnings generated.
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
next reply other threads:[~2022-01-25 19:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-25 19:17 kernel test robot [this message]
2022-01-25 19:17 ` [morse:mpam/snapshot/v5.16 88/137] include/linux/cacheinfo.h:114:10: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201260326.obpo9ntU-lkp@intel.com \
--to=lkp@intel.com \
--cc=james.morse@arm.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.