* [xlnx:xlnx_rebase_v5.10 680/1760] drivers/watchdog/of_xilinx_wdt.c:53:26: warning: Value stored to 'xilinx_wdt_wdd' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
@ 2021-08-12 7:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-12 7:16 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 18226 bytes --]
CC: clang-built-linux(a)googlegroups.com
CC: kbuild-all(a)lists.01.org
CC: linux-arm-kernel(a)lists.infradead.org
TO: Srinivas Goud <srinivas.goud@xilinx.com>
CC: Michal Simek <monstr@monstr.eu>
CC: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head: bf98c1493fb23bfd7e2678498b7e337ce2cd1d53
commit: 835c2bfc5cb5aa4c1c585f3d564ea297ed774e1b [680/1760] watchdog: of_xilinx_wdt: Used dev_dbg()
:::::: branch date: 24 hours ago
:::::: commit date: 3 months ago
config: x86_64-randconfig-c001-20210810 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d39ebdae674c8efc84ebe8dc32716ec353220530)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/Xilinx/linux-xlnx/commit/835c2bfc5cb5aa4c1c585f3d564ea297ed774e1b
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.10
git checkout 835c2bfc5cb5aa4c1c585f3d564ea297ed774e1b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 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 >>)
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
net/netlink/genetlink.c:1421:2: note: Taking false branch
for_each_net_rcu(net) {
^
include/net/net_namespace.h:342:2: note: expanded from macro 'for_each_net_rcu'
list_for_each_entry_rcu(VAR, &net_namespace_list, list)
^
include/linux/rculist.h:392:13: note: expanded from macro 'list_for_each_entry_rcu'
pos = list_entry_rcu((head)->next, typeof(*pos), member); \
^
include/linux/rculist.h:316:2: note: expanded from macro 'list_entry_rcu'
container_of(READ_ONCE(ptr), type, member)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:315:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:303:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:295:3: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
net/netlink/genetlink.c:1421:2: note: Loop condition is false. Exiting loop
for_each_net_rcu(net) {
^
include/net/net_namespace.h:342:2: note: expanded from macro 'for_each_net_rcu'
list_for_each_entry_rcu(VAR, &net_namespace_list, list)
^
include/linux/rculist.h:392:13: note: expanded from macro 'list_for_each_entry_rcu'
pos = list_entry_rcu((head)->next, typeof(*pos), member); \
^
include/linux/rculist.h:316:2: note: expanded from macro 'list_entry_rcu'
container_of(READ_ONCE(ptr), type, member)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:315:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:303:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:293:2: note: expanded from macro '__compiletime_assert'
do { \
^
net/netlink/genetlink.c:1421:2: note: Loop condition is false. Execution continues on line 1439
for_each_net_rcu(net) {
^
include/net/net_namespace.h:342:2: note: expanded from macro 'for_each_net_rcu'
list_for_each_entry_rcu(VAR, &net_namespace_list, list)
^
include/linux/rculist.h:391:2: note: expanded from macro 'list_for_each_entry_rcu'
for (__list_check_rcu(dummy, ## cond, 0), \
^
net/netlink/genetlink.c:1439:24: note: Access to field 'genl_sock' results in a dereference of a null pointer (loaded from variable 'prev')
err = nlmsg_multicast(prev->genl_sock, skb, portid, group, flags);
^~~~
Suppressed 12 warnings (12 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.
9 warnings generated.
drivers/base/dd.c:665:2: warning: Value stored to 'calltime' is never read [clang-analyzer-deadcode.DeadStores]
calltime = ktime_get();
^ ~~~~~~~~~~~
drivers/base/dd.c:665:2: note: Value stored to 'calltime' is never read
calltime = ktime_get();
^ ~~~~~~~~~~~
drivers/base/dd.c:667:2: warning: Value stored to 'rettime' is never read [clang-analyzer-deadcode.DeadStores]
rettime = ktime_get();
^ ~~~~~~~~~~~
drivers/base/dd.c:667:2: note: Value stored to 'rettime' is never read
rettime = ktime_get();
^ ~~~~~~~~~~~
drivers/base/dd.c:1035:3: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = driver_probe_device(drv, dev);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/base/dd.c:1035:3: note: Value stored to 'ret' is never read
ret = driver_probe_device(drv, dev);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 6 warnings (6 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
8 warnings generated.
>> drivers/watchdog/of_xilinx_wdt.c:53:26: warning: Value stored to 'xilinx_wdt_wdd' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct watchdog_device *xilinx_wdt_wdd = &xdev->xilinx_wdt_wdd;
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
drivers/watchdog/of_xilinx_wdt.c:53:26: note: Value stored to 'xilinx_wdt_wdd' during its initialization is never read
struct watchdog_device *xilinx_wdt_wdd = &xdev->xilinx_wdt_wdd;
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
drivers/watchdog/of_xilinx_wdt.c:83:26: warning: Value stored to 'xilinx_wdt_wdd' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct watchdog_device *xilinx_wdt_wdd = &xdev->xilinx_wdt_wdd;
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
drivers/watchdog/of_xilinx_wdt.c:83:26: note: Value stored to 'xilinx_wdt_wdd' during its initialization is never read
struct watchdog_device *xilinx_wdt_wdd = &xdev->xilinx_wdt_wdd;
^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
Suppressed 6 warnings (6 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.
7 warnings generated.
drivers/video/backlight/adp8860_bl.c:230:2: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = adp8860_write(client, ADP8860_ISCFR, pdata->led_fade_law);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/video/backlight/adp8860_bl.c:230:2: note: Value stored to 'ret' is never read
ret = adp8860_write(client, ADP8860_ISCFR, pdata->led_fade_law);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
7 warnings generated.
drivers/video/fbdev/vermilion/cr_pll.c:122:2: warning: Value stored to 'clock_val' is never read [clang-analyzer-deadcode.DeadStores]
clock_val = ioread32(clock_reg) & ~CRVML_CLOCK_MASK;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/video/fbdev/vermilion/cr_pll.c:122:2: note: Value stored to 'clock_val' is never read
clock_val = ioread32(clock_reg) & ~CRVML_CLOCK_MASK;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
12 warnings generated.
Suppressed 12 warnings (12 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.
12 warnings generated.
Suppressed 12 warnings (12 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.
12 warnings generated.
Suppressed 12 warnings (12 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
16 warnings generated.
drivers/scsi/aic7xxx/aic79xx_core.c:2294:5: warning: Value stored to 'error' is never read [clang-analyzer-deadcode.DeadStores]
error = CAM_BDR_SENT;
^ ~~~~~~~~~~~~
drivers/scsi/aic7xxx/aic79xx_core.c:2294:5: note: Value stored to 'error' is never read
error = CAM_BDR_SENT;
^ ~~~~~~~~~~~~
drivers/scsi/aic7xxx/aic79xx_core.c:2393:2: warning: Value stored to 'busfreetime' is never read [clang-analyzer-deadcode.DeadStores]
busfreetime = ahd_inb(ahd, SSTAT2) & BUSFREETIME;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/aic7xxx/aic79xx_core.c:2393:2: note: Value stored to 'busfreetime' is never read
busfreetime = ahd_inb(ahd, SSTAT2) & BUSFREETIME;
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/aic7xxx/aic79xx_core.c:5712:4: warning: Value stored to 'data_addr' is never read [clang-analyzer-deadcode.DeadStores]
data_addr -= 1;
vim +/xilinx_wdt_wdd +53 drivers/watchdog/of_xilinx_wdt.c
e9659e69b0094e Alejandro Cabrera 2011-06-02 47
d14fd964550144 Michal Simek 2014-02-12 48 static int xilinx_wdt_start(struct watchdog_device *wdd)
e9659e69b0094e Alejandro Cabrera 2011-06-02 49 {
b6bc41645547f4 Maulik Jodhani 2017-08-07 50 int ret;
5cf4e69d39f6a3 Michal Simek 2014-02-12 51 u32 control_status_reg;
9066317178ca87 Michal Simek 2014-02-12 52 struct xwdt_device *xdev = watchdog_get_drvdata(wdd);
835c2bfc5cb5aa Srinivas Goud 2020-01-13 @53 struct watchdog_device *xilinx_wdt_wdd = &xdev->xilinx_wdt_wdd;
5cf4e69d39f6a3 Michal Simek 2014-02-12 54
b6bc41645547f4 Maulik Jodhani 2017-08-07 55 ret = clk_enable(xdev->clk);
b6bc41645547f4 Maulik Jodhani 2017-08-07 56 if (ret) {
b6bc41645547f4 Maulik Jodhani 2017-08-07 57 dev_err(wdd->parent, "Failed to enable clock\n");
b6bc41645547f4 Maulik Jodhani 2017-08-07 58 return ret;
b6bc41645547f4 Maulik Jodhani 2017-08-07 59 }
b6bc41645547f4 Maulik Jodhani 2017-08-07 60
9066317178ca87 Michal Simek 2014-02-12 61 spin_lock(&xdev->spinlock);
e9659e69b0094e Alejandro Cabrera 2011-06-02 62
e9659e69b0094e Alejandro Cabrera 2011-06-02 63 /* Clean previous status and enable the watchdog timer */
9066317178ca87 Michal Simek 2014-02-12 64 control_status_reg = ioread32(xdev->base + XWT_TWCSR0_OFFSET);
e9659e69b0094e Alejandro Cabrera 2011-06-02 65 control_status_reg |= (XWT_CSR0_WRS_MASK | XWT_CSR0_WDS_MASK);
e9659e69b0094e Alejandro Cabrera 2011-06-02 66
e9659e69b0094e Alejandro Cabrera 2011-06-02 67 iowrite32((control_status_reg | XWT_CSR0_EWDT1_MASK),
9066317178ca87 Michal Simek 2014-02-12 68 xdev->base + XWT_TWCSR0_OFFSET);
e9659e69b0094e Alejandro Cabrera 2011-06-02 69
9066317178ca87 Michal Simek 2014-02-12 70 iowrite32(XWT_CSRX_EWDT2_MASK, xdev->base + XWT_TWCSR1_OFFSET);
e9659e69b0094e Alejandro Cabrera 2011-06-02 71
9066317178ca87 Michal Simek 2014-02-12 72 spin_unlock(&xdev->spinlock);
d14fd964550144 Michal Simek 2014-02-12 73
835c2bfc5cb5aa Srinivas Goud 2020-01-13 74 dev_dbg(xilinx_wdt_wdd->parent, "Watchdog Started!\n");
835c2bfc5cb5aa Srinivas Goud 2020-01-13 75
d14fd964550144 Michal Simek 2014-02-12 76 return 0;
e9659e69b0094e Alejandro Cabrera 2011-06-02 77 }
e9659e69b0094e Alejandro Cabrera 2011-06-02 78
---
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: 35294 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-12 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-12 7:16 [xlnx:xlnx_rebase_v5.10 680/1760] drivers/watchdog/of_xilinx_wdt.c:53:26: warning: Value stored to 'xilinx_wdt_wdd' during its initialization is never read [clang-analyzer-deadcode.DeadStores] 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.