::
:: Manual check reason: "low confidence static check warning:
arch/riscv/kernel/cpufeature.c:288:27: warning: Parameter 'end' can be declared
with const [constParameter]"
::
BCC: l...@intel.com
CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: Heiko Stuebner
CC: Palmer Dabbelt
CC: Wei Fu
CC: Liu Shaohua
CC: Guo Ren
CC: Philipp Tomsich
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
master
head: c40e8341e3b3bb27e3a65b06b5b454626234c4f0
commit: ff689fd21cb13098305bae3f8d0c0065df2e2fc1 riscv: add RISC-V Svpbmt
extension support
date: 4 months ago
:: branch date: 27 hours ago
:: commit date: 4 months ago
compiler: riscv64-linux-gcc (GCC) 12.1.0
reproduce (cppcheck warning):
# apt-get install cppcheck
git checkout ff689fd21cb13098305bae3f8d0c0065df2e2fc1
cppcheck --quiet --enable=style,performance,portability --template=gcc
FILE
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> arch/riscv/kernel/cpufeature.c:288:27: warning: Parameter 'end' can be
>> declared with const [constParameter]
struct alt_entry *end,
^
--
>> block/blk-throttle.c:1484:3: warning: %llu in format string (no. 1) requires
>> 'unsigned long long' but the argument type is 'unsigned long'.
>> [invalidPrintfArgType_uint]
snprintf(bufs[0], sizeof(bufs[0]), "%llu",
^
block/blk-throttle.c:1487:3: warning: %llu in format string (no. 1) requires
'unsigned long long' but the argument type is 'unsigned long'.
[invalidPrintfArgType_uint]
snprintf(bufs[1], sizeof(bufs[1]), "%llu",
^
>> block/blk-throttle.c:1814:21: warning: Parameter 'this_tg' can be declared
>> with const [constParameter]
struct throtl_grp *this_tg)
^
vim +/end +288 arch/riscv/kernel/cpufeature.c
ff689fd21cb130 Heiko Stuebner 2022-05-11 286
ff689fd21cb130 Heiko Stuebner 2022-05-11 287 void __init_or_module
riscv_cpufeature_patch_func(struct alt_entry *begin,
ff689fd21cb130 Heiko Stuebner 2022-05-11 @288
struct alt_entry *end,
--
0-DAY CI Kernel Test Service
https://01.org/lkp
___
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org