* include/asm-generic/unaligned.h:32:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn]
@ 2021-08-25 4:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-25 4:05 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 14097 bytes --]
CC: clang-built-linux(a)googlegroups.com
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Arnd Bergmann <arnd@arndb.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6e764bcd1cf72a2846c0e53d3975a09b242c04c9
commit: 803f4e1eab7a8938ba3a3c30dd4eb5e9eeef5e63 asm-generic: simplify asm/unaligned.h
date: 3 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 3 months ago
config: arm-randconfig-c002-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
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/torvalds/linux.git/commit/?id=803f4e1eab7a8938ba3a3c30dd4eb5e9eeef5e63
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 803f4e1eab7a8938ba3a3c30dd4eb5e9eeef5e63
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
9 warnings generated.
drivers/w1/w1.c:589:3: warning: Value stored to 'event_owner' is never read [clang-analyzer-deadcode.DeadStores]
event_owner = "master";
^ ~~~~~~~~
drivers/w1/w1.c:589:3: note: Value stored to 'event_owner' is never read
event_owner = "master";
^ ~~~~~~~~
drivers/w1/w1.c:590:3: warning: Value stored to 'name' is never read [clang-analyzer-deadcode.DeadStores]
name = md->name;
^ ~~~~~~~~
drivers/w1/w1.c:590:3: note: Value stored to 'name' is never read
name = md->name;
^ ~~~~~~~~
drivers/w1/w1.c:593:3: warning: Value stored to 'event_owner' is never read [clang-analyzer-deadcode.DeadStores]
event_owner = "slave";
^ ~~~~~~~
drivers/w1/w1.c:593:3: note: Value stored to 'event_owner' is never read
event_owner = "slave";
^ ~~~~~~~
drivers/w1/w1.c:594:3: warning: Value stored to 'name' is never read [clang-analyzer-deadcode.DeadStores]
name = sl->name;
^ ~~~~~~~~
drivers/w1/w1.c:594:3: note: Value stored to 'name' is never read
name = sl->name;
^ ~~~~~~~~
drivers/w1/w1.c:997:2: warning: Value stored to 'search_bit' is never read [clang-analyzer-deadcode.DeadStores]
search_bit = 0;
^ ~
drivers/w1/w1.c:997:2: note: Value stored to 'search_bit' is never read
search_bit = 0;
^ ~
drivers/w1/w1.c:999:2: warning: Value stored to 'last_rn' is never read [clang-analyzer-deadcode.DeadStores]
last_rn = 0;
^ ~
drivers/w1/w1.c:999:2: note: Value stored to 'last_rn' is never read
last_rn = 0;
^ ~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
drivers/media/i2c/ov772x.c:583:21: warning: Value stored to 'client' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct i2c_client *client = v4l2_get_subdevdata(sd);
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/i2c/ov772x.c:583:21: note: Value stored to 'client' during its initialization is never read
struct i2c_client *client = v4l2_get_subdevdata(sd);
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
4 warnings generated.
drivers/media/i2c/rj54n1cb0c.c:687:3: warning: Value stored to 'input_w' is never read [clang-analyzer-deadcode.DeadStores]
input_w = output_w;
^ ~~~~~~~~
drivers/media/i2c/rj54n1cb0c.c:687:3: note: Value stored to 'input_w' is never read
input_w = output_w;
^ ~~~~~~~~
drivers/media/i2c/rj54n1cb0c.c:688:3: warning: Value stored to 'input_h' is never read [clang-analyzer-deadcode.DeadStores]
input_h = output_h;
^ ~~~~~~~~
drivers/media/i2c/rj54n1cb0c.c:688:3: note: Value stored to 'input_h' is never read
input_h = output_h;
^ ~~~~~~~~
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
>> include/asm-generic/unaligned.h:32:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn]
return le32_to_cpu(__get_unaligned_t(__le32, p));
^
lib/crypto/chacha20poly1305.c:183:2: note: Calling 'chacha_init'
chacha_init(chacha_state, k, (u8 *)iv);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/crypto/chacha.h:78:2: note: Taking false branch
if (IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA))
^
include/crypto/chacha.h:81:3: note: Calling 'chacha_init_generic'
chacha_init_generic(state, key, iv);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/crypto/chacha.h:71:14: note: Calling 'get_unaligned_le32'
state[13] = get_unaligned_le32(iv + 4);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/unaligned.h:32:2: note: Undefined or garbage value returned to caller
return le32_to_cpu(__get_unaligned_t(__le32, p));
^
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
4 warnings generated.
lib/test_lockup.c:231:32: warning: The right operand of '-' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
s64 cur_wait = local_clock() - wait_start;
^
lib/test_lockup.c:455:2: note: Control jumps to 'case 82:' at line 465
switch (state[0]) {
^
lib/test_lockup.c:467:3: note: Execution continues on line 473
break;
^
lib/test_lockup.c:473:6: note: Assuming 'alloc_pages_atomic' is false
if (alloc_pages_atomic)
^~~~~~~~~~~~~~~~~~
lib/test_lockup.c:473:2: note: Taking false branch
if (alloc_pages_atomic)
^
lib/test_lockup.c:476:6: note: Left side of '||' is false
if (test_kernel_ptr(lock_spinlock_ptr, sizeof(spinlock_t)) ||
^
lib/test_lockup.c:476:6: note: Left side of '||' is false
lib/test_lockup.c:476:6: note: Left side of '||' is false
lib/test_lockup.c:476:2: note: Taking false branch
if (test_kernel_ptr(lock_spinlock_ptr, sizeof(spinlock_t)) ||
^
lib/test_lockup.c:498:6: note: Left side of '||' is false
if (test_magic(lock_spinlock_ptr,
^
lib/test_lockup.c:498:6: note: Left side of '||' is false
lib/test_lockup.c:498:6: note: Left side of '||' is false
lib/test_lockup.c:498:2: note: Taking false branch
if (test_magic(lock_spinlock_ptr,
^
lib/test_lockup.c:514:7: note: 'wait_state' is equal to TASK_RUNNING
if ((wait_state != TASK_RUNNING ||
^~~~~~~~~~
lib/test_lockup.c:514:7: note: Left side of '||' is false
lib/test_lockup.c:515:8: note: Assuming 'call_cond_resched' is false
(call_cond_resched && !reacquire_locks) ||
^~~~~~~~~~~~~~~~~
lib/test_lockup.c:515:26: note: Left side of '&&' is false
(call_cond_resched && !reacquire_locks) ||
^
lib/test_lockup.c:516:8: note: Assuming 'alloc_pages_nr' is 0
(alloc_pages_nr && gfpflags_allow_blocking(alloc_pages_gfp))) &&
^~~~~~~~~~~~~~
lib/test_lockup.c:516:23: note: Left side of '&&' is false
(alloc_pages_nr && gfpflags_allow_blocking(alloc_pages_gfp))) &&
^
lib/test_lockup.c:523:6: note: Assuming 'lock_mmap_sem' is false
if (lock_mmap_sem && !main_task->mm) {
^~~~~~~~~~~~~
lib/test_lockup.c:523:20: note: Left side of '&&' is false
if (lock_mmap_sem && !main_task->mm) {
^
lib/test_lockup.c:528:6: note: Assuming the condition is false
if (test_file_path[0]) {
^~~~~~~~~~~~~~~~~
lib/test_lockup.c:528:2: note: Taking false branch
if (test_file_path[0]) {
^
lib/test_lockup.c:535:13: note: Assuming 'test_lock_inode' is false
} else if (test_lock_inode ||
^~~~~~~~~~~~~~~
lib/test_lockup.c:535:13: note: Left side of '||' is false
lib/test_lockup.c:536:6: note: Assuming 'test_lock_mapping' is false
test_lock_mapping ||
^~~~~~~~~~~~~~~~~
lib/test_lockup.c:535:13: note: Left side of '||' is false
} else if (test_lock_inode ||
^
lib/test_lockup.c:537:6: note: Assuming 'test_lock_sb_umount' is false
test_lock_sb_umount) {
vim +32 include/asm-generic/unaligned.h
803f4e1eab7a89 Arnd Bergmann 2021-05-08 29
803f4e1eab7a89 Arnd Bergmann 2021-05-08 30 static inline u32 get_unaligned_le32(const void *p)
803f4e1eab7a89 Arnd Bergmann 2021-05-08 31 {
803f4e1eab7a89 Arnd Bergmann 2021-05-08 @32 return le32_to_cpu(__get_unaligned_t(__le32, p));
803f4e1eab7a89 Arnd Bergmann 2021-05-08 33 }
803f4e1eab7a89 Arnd Bergmann 2021-05-08 34
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27449 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-25 4:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 4:05 include/asm-generic/unaligned.h:32:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn] 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.