lkml.org 
[lkml]   [2021]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[morse:mpam/snapshot/v5.15 90/139] include/linux/cacheinfo.h:115:24: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head: ce3629841262f725a5f3a327403fcaf0e604a85e
commit: 7cfc8ff4c2167d8b7da45a3a5f7f7f98de31bcde [90/139] cacheinfo: Allow for >32-bit cache 'id'
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-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=7cfc8ff4c2167d8b7da45a3a5f7f7f98de31bcde
git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
git fetch --no-tags morse mpam/snapshot/v5.15
git checkout 7cfc8ff4c2167d8b7da45a3a5f7f7f98de31bcde
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (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:115:24: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
115 | return ~0ULL;
| ^
include/linux/cacheinfo.h:121:32: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
121 | return ~0ULL;
| ^
include/linux/cacheinfo.h:125:16: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
125 | return ~0ULL;
| ^
cc1: all warnings being treated as errors


vim +115 include/linux/cacheinfo.h

104
105 /*
106 * Get the id of the cache associated with @cpu at level @level.
107 * cpuhp lock must be held.
108 */
109 static inline unsigned long get_cpu_cacheinfo_id(int cpu, int level)
110 {
111 struct cpu_cacheinfo *ci = get_cpu_cacheinfo(cpu);
112 int i;
113
114 if (!ci->info_list)
> 115 return ~0ULL;
116
117 for (i = 0; i < ci->num_leaves; i++) {
118 if (ci->info_list[i].level == level) {
119 if (ci->info_list[i].attributes & CACHE_ID)
120 return ci->info_list[i].id;
121 return ~0ULL;
122 }
123 }
124
125 return ~0ULL;
126 }
127

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-13 01:32    [W:0.029 / U:2.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site