* sound/soc/codecs/wm8994.c:1450:28: warning: Value stored to 'component' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
@ 2021-12-12 7:38 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-12 7:38 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 18761 bytes --]
CC: llvm(a)lists.linux.dev
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Shengjiu Wang <shengjiu.wang@nxp.com>
CC: Mark Brown <broonie@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a763d5a5abd65797aec3dd1bf01fe2ccbec32967
commit: efd0b1660829a987354cea6a446179c7ac7cd0e6 ASoC: fsl-asoc-card: Add support for WM8958 codec
date: 9 months ago
:::::: branch date: 7 hours ago
:::::: commit date: 9 months ago
config: arm-randconfig-c002-20211209 (https://download.01.org/0day-ci/archive/20211212/202112121549.X8ecd25k-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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=efd0b1660829a987354cea6a446179c7ac7cd0e6
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout efd0b1660829a987354cea6a446179c7ac7cd0e6
# save the config file 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 >>)
^~~
sound/soc/generic/audio-graph-card.c:634:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = simple_priv_to_dev(priv);
^~~
sound/soc/generic/audio-graph-card.c:634:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = simple_priv_to_dev(priv);
^~~
sound/soc/generic/audio-graph-card.c:653:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = simple_priv_to_dev(priv);
^~~
sound/soc/generic/audio-graph-card.c:653:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = simple_priv_to_dev(priv);
^~~
Suppressed 9 warnings (9 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.
14 warnings generated.
drivers/usb/gadget/udc/pxa27x_udc.c:480:17: warning: Value stored to 'ep' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct pxa_ep *ep = &udc->pxa_ep[0];
^~ ~~~~~~~~~~~~~~~
drivers/usb/gadget/udc/pxa27x_udc.c:480:17: note: Value stored to 'ep' during its initialization is never read
struct pxa_ep *ep = &udc->pxa_ep[0];
^~ ~~~~~~~~~~~~~~~
drivers/usb/gadget/udc/pxa27x_udc.c:481:8: warning: Value stored to 'old_stname' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
char *old_stname = EP0_STNAME(udc);
^~~~~~~~~~
drivers/usb/gadget/udc/pxa27x_udc.c:481:8: note: Value stored to 'old_stname' during its initialization is never read
char *old_stname = EP0_STNAME(udc);
^~~~~~~~~~
drivers/usb/gadget/udc/pxa27x_udc.c:1087:2: warning: Value stored to 'is_first_req' is never read [clang-analyzer-deadcode.DeadStores]
is_first_req = list_empty(&ep->queue);
^ ~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/udc/pxa27x_udc.c:1087:2: note: Value stored to 'is_first_req' is never read
is_first_req = list_empty(&ep->queue);
^ ~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/udc/pxa27x_udc.c:2271:6: warning: Value stored to 'udccr' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
u32 udccr = udc_readl(udc, UDCCR);
^~~~~
drivers/usb/gadget/udc/pxa27x_udc.c:2271:6: note: Value stored to 'udccr' during its initialization is never read
u32 udccr = udc_readl(udc, UDCCR);
^~~~~
Suppressed 10 warnings (10 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
sound/soc/codecs/cs42l52.c:1165:2: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = regmap_read(cs42l52->regmap, CS42L52_CHIP, ®);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/cs42l52.c:1165:2: note: Value stored to 'ret' is never read
ret = regmap_read(cs42l52->regmap, CS42L52_CHIP, ®);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 8 warnings (8 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
11 warnings generated.
Suppressed 11 warnings (11 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
Suppressed 10 warnings (10 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
Suppressed 10 warnings (10 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
Suppressed 10 warnings (10 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.
13 warnings generated.
>> sound/soc/codecs/wm8994.c:1450:28: warning: Value stored to 'component' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:1450:28: note: Value stored to 'component' during its initialization is never read
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:3345:28: warning: Value stored to 'component' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct snd_soc_component *component = wm8994->hubs.component;
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:3345:28: note: Value stored to 'component' during its initialization is never read
struct snd_soc_component *component = wm8994->hubs.component;
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/codecs/wm8994.c:3703:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = wm8994->wm8994->dev;
^~~ ~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:3703:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = wm8994->wm8994->dev;
^~~ ~~~~~~~~~~~~~~~~~~~
Suppressed 10 warnings (10 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
Suppressed 10 warnings (10 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.
Suppressed 8 warnings (8 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.
Suppressed 8 warnings (8 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.
Suppressed 8 warnings (8 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.
Suppressed 9 warnings (9 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.
Suppressed 8 warnings (8 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 8 warnings (8 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.
Suppressed 8 warnings (8 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.
Suppressed 8 warnings (8 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
drivers/media/v4l2-core/v4l2-async.c:448:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev =
^~~
drivers/media/v4l2-core/v4l2-async.c:448:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev =
^~~
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
drivers/media/v4l2-core/v4l2-mc.c:176:4: warning: Value stored to 'if_aud' is never read [clang-analyzer-deadcode.DeadStores]
if_aud = tuner;
^ ~~~~~
drivers/media/v4l2-core/v4l2-mc.c:176:4: note: Value stored to 'if_aud' is never read
if_aud = tuner;
^ ~~~~~
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
14 warnings generated.
sound/usb/caiaq/audio.c:123:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = caiaqdev_to_dev(cdev);
^~~
sound/usb/caiaq/audio.c:123:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = caiaqdev_to_dev(cdev);
^~~
sound/usb/caiaq/audio.c:144:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = caiaqdev_to_dev(cdev);
^~~
sound/usb/caiaq/audio.c:144:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = caiaqdev_to_dev(cdev);
^~~
sound/usb/caiaq/audio.c:156:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = caiaqdev_to_dev(cdev);
^~~
sound/usb/caiaq/audio.c:156:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = caiaqdev_to_dev(cdev);
^~~
sound/usb/caiaq/audio.c:191:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = caiaqdev_to_dev(cdev);
vim +/component +1450 sound/soc/codecs/wm8994.c
9e6e96a197a037 Mark Brown 2010-01-29 1445
9e6e96a197a037 Mark Brown 2010-01-29 1446 /* Debugging; dump chip status after DAPM transitions */
9e6e96a197a037 Mark Brown 2010-01-29 1447 static int post_ev(struct snd_soc_dapm_widget *w,
9e6e96a197a037 Mark Brown 2010-01-29 1448 struct snd_kcontrol *kcontrol, int event)
9e6e96a197a037 Mark Brown 2010-01-29 1449 {
00a6941c841205 Kuninori Morimoto 2018-01-29 @1450 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
00a6941c841205 Kuninori Morimoto 2018-01-29 1451 dev_dbg(component->dev, "SRC status: %x\n",
6d75dfc3e86500 Kuninori Morimoto 2020-06-16 1452 snd_soc_component_read(component,
9e6e96a197a037 Mark Brown 2010-01-29 1453 WM8994_RATE_STATUS));
9e6e96a197a037 Mark Brown 2010-01-29 1454 return 0;
9e6e96a197a037 Mark Brown 2010-01-29 1455 }
9e6e96a197a037 Mark Brown 2010-01-29 1456
:::::: The code at line 1450 was first introduced by commit
:::::: 00a6941c841205fbdade825219a828c81008149b ASoC: wm8993/wm8994/wm8958: replace codec to component
:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
:::::: CC: Mark Brown <broonie@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* sound/soc/codecs/wm8994.c:1450:28: warning: Value stored to 'component' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
@ 2021-12-15 22:47 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-12-15 22:47 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 16715 bytes --]
CC: llvm(a)lists.linux.dev
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Shengjiu Wang <shengjiu.wang@nxp.com>
CC: Mark Brown <broonie@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5472f14a37421d1bca3dddf33cabd3bd6dbefbbc
commit: efd0b1660829a987354cea6a446179c7ac7cd0e6 ASoC: fsl-asoc-card: Add support for WM8958 codec
date: 9 months ago
:::::: branch date: 2 days ago
:::::: commit date: 9 months ago
config: arm-randconfig-c002-20211209 (https://download.01.org/0day-ci/archive/20211216/202112160624.aSphPuVU-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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=efd0b1660829a987354cea6a446179c7ac7cd0e6
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout efd0b1660829a987354cea6a446179c7ac7cd0e6
# save the config file 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 >>)
__rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
^
note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:320:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:308:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:298:2: note: expanded from macro '__compiletime_assert'
do { \
^
fs/ext4/resize.c:1227:13: note: Left side of '&&' is false
gdb_bh = sbi_array_rcu_deref(sbi, s_group_desc,
^
fs/ext4/ext4.h:1710:21: note: expanded from macro 'sbi_array_rcu_deref'
_v = ((typeof(_v)*)rcu_dereference((sbi)->field))[index]; \
^
include/linux/rcupdate.h:571:28: note: expanded from macro 'rcu_dereference'
#define rcu_dereference(p) rcu_dereference_check(p, 0)
^
include/linux/rcupdate.h:513:2: note: expanded from macro 'rcu_dereference_check'
__rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
^
include/linux/rcupdate.h:375:2: note: expanded from macro '__rcu_dereference_check'
RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
^
include/linux/rcupdate.h:345:48: note: expanded from macro 'RCU_LOCKDEP_WARN'
#define RCU_LOCKDEP_WARN(c, s) do { } while (0 && (c))
^
fs/ext4/resize.c:1227:13: note: Loop condition is false. Exiting loop
gdb_bh = sbi_array_rcu_deref(sbi, s_group_desc,
^
fs/ext4/ext4.h:1710:21: note: expanded from macro 'sbi_array_rcu_deref'
_v = ((typeof(_v)*)rcu_dereference((sbi)->field))[index]; \
^
include/linux/rcupdate.h:571:28: note: expanded from macro 'rcu_dereference'
#define rcu_dereference(p) rcu_dereference_check(p, 0)
^
include/linux/rcupdate.h:513:2: note: expanded from macro 'rcu_dereference_check'
__rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
^
include/linux/rcupdate.h:375:2: note: expanded from macro '__rcu_dereference_check'
RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
^
include/linux/rcupdate.h:345:32: note: expanded from macro 'RCU_LOCKDEP_WARN'
#define RCU_LOCKDEP_WARN(c, s) do { } while (0 && (c))
^
fs/ext4/resize.c:1229:4: note: Loop condition is false. Exiting loop
BUFFER_TRACE(gdb_bh, "get_write_access");
^
include/linux/jbd2.h:1787:32: note: expanded from macro 'BUFFER_TRACE'
#define BUFFER_TRACE(bh, info) do {} while (0)
^
fs/ext4/resize.c:1232:8: note: Assuming 'err' is 0
if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group))
^~~~
fs/ext4/resize.c:1232:8: note: Left side of '&&' is true
fs/ext4/resize.c:1232:16: note: Assuming 'reserved_gdb' is not equal to 0
if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group))
^~~~~~~~~~~~
fs/ext4/resize.c:1232:8: note: Left side of '&&' is true
if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group))
^
fs/ext4/resize.c:1232:32: note: Assuming the condition is true
if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group))
^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/ext4/resize.c:1232:4: note: Taking true branch
if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group))
^
fs/ext4/resize.c:1233:38: note: Passing null pointer value via 2nd parameter 'inode'
err = reserve_backup_gdb(handle, resize_inode, group);
^~~~~~~~~~~~
fs/ext4/resize.c:1233:11: note: Calling 'reserve_backup_gdb'
err = reserve_backup_gdb(handle, resize_inode, group);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/ext4/resize.c:983:27: note: Access to field 'i_sb' results in a dereference of a null pointer (loaded from variable 'inode')
struct super_block *sb = inode->i_sb;
^~~~~
fs/ext4/resize.c:1916:3: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores]
err = ret;
^ ~~~
fs/ext4/resize.c:1916:3: note: Value stored to 'err' is never read
err = ret;
^ ~~~
Suppressed 10 warnings (10 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
Suppressed 10 warnings (10 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.
13 warnings generated.
>> sound/soc/codecs/wm8994.c:1450:28: warning: Value stored to 'component' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:1450:28: note: Value stored to 'component' during its initialization is never read
struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:3345:28: warning: Value stored to 'component' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct snd_soc_component *component = wm8994->hubs.component;
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:3345:28: note: Value stored to 'component' during its initialization is never read
struct snd_soc_component *component = wm8994->hubs.component;
^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/codecs/wm8994.c:3703:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = wm8994->wm8994->dev;
^~~ ~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8994.c:3703:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = wm8994->wm8994->dev;
^~~ ~~~~~~~~~~~~~~~~~~~
Suppressed 10 warnings (10 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
Suppressed 9 warnings (9 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.
10 warnings generated.
drivers/hwmon/lm75.h:30:29: warning: The result of the left shift is undefined because the left operand is negative [clang-analyzer-core.UndefinedBinaryOperatorResult]
return (u16)((ntemp / 500) << 7);
^
drivers/hwmon/w83781d.c:391:1: note: Left side of '&&' is false
store_temp_reg(HYST, max_hyst);
^
drivers/hwmon/w83781d.c:368:41: note: expanded from macro 'store_temp_reg'
struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \
^
include/linux/hwmon-sysfs.h:17:2: note: expanded from macro 'to_sensor_dev_attr'
container_of(_dev_attr, struct sensor_device_attribute, dev_attr)
^
include/linux/kernel.h:709:61: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
drivers/hwmon/w83781d.c:391:1: note: Taking false branch
store_temp_reg(HYST, max_hyst);
^
drivers/hwmon/w83781d.c:368:41: note: expanded from macro 'store_temp_reg'
struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \
^
include/linux/hwmon-sysfs.h:17:2: note: expanded from macro 'to_sensor_dev_attr'
container_of(_dev_attr, struct sensor_device_attribute, dev_attr)
^
include/linux/kernel.h:709:2: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:320:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:308:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:300:3: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
drivers/hwmon/w83781d.c:391:1: note: Loop condition is false. Exiting loop
store_temp_reg(HYST, max_hyst);
^
drivers/hwmon/w83781d.c:368:41: note: expanded from macro 'store_temp_reg'
struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \
^
include/linux/hwmon-sysfs.h:17:2: note: expanded from macro 'to_sensor_dev_attr'
container_of(_dev_attr, struct sensor_device_attribute, dev_attr)
^
include/linux/kernel.h:709:2: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:320:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:308:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:298:2: note: expanded from macro '__compiletime_assert'
do { \
^
drivers/hwmon/w83781d.c:391:1: note: Assuming 'err' is 0
store_temp_reg(HYST, max_hyst);
^
drivers/hwmon/w83781d.c:373:6: note: expanded from macro 'store_temp_reg'
if (err) \
^~~
drivers/hwmon/w83781d.c:391:1: note: Taking false branch
store_temp_reg(HYST, max_hyst);
^
drivers/hwmon/w83781d.c:373:2: note: expanded from macro 'store_temp_reg'
if (err) \
^
drivers/hwmon/w83781d.c:391:1: note: Assuming 'nr' is >= 2
store_temp_reg(HYST, max_hyst);
^
drivers/hwmon/w83781d.c:377:6: note: expanded from macro 'store_temp_reg'
if (nr >= 2) { /* TEMP2 and TEMP3 */ \
^~~~~~~
vim +/component +1450 sound/soc/codecs/wm8994.c
9e6e96a197a0375 Mark Brown 2010-01-29 1445
9e6e96a197a0375 Mark Brown 2010-01-29 1446 /* Debugging; dump chip status after DAPM transitions */
9e6e96a197a0375 Mark Brown 2010-01-29 1447 static int post_ev(struct snd_soc_dapm_widget *w,
9e6e96a197a0375 Mark Brown 2010-01-29 1448 struct snd_kcontrol *kcontrol, int event)
9e6e96a197a0375 Mark Brown 2010-01-29 1449 {
00a6941c841205f Kuninori Morimoto 2018-01-29 @1450 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
00a6941c841205f Kuninori Morimoto 2018-01-29 1451 dev_dbg(component->dev, "SRC status: %x\n",
6d75dfc3e86500e Kuninori Morimoto 2020-06-16 1452 snd_soc_component_read(component,
9e6e96a197a0375 Mark Brown 2010-01-29 1453 WM8994_RATE_STATUS));
9e6e96a197a0375 Mark Brown 2010-01-29 1454 return 0;
9e6e96a197a0375 Mark Brown 2010-01-29 1455 }
9e6e96a197a0375 Mark Brown 2010-01-29 1456
:::::: The code at line 1450 was first introduced by commit
:::::: 00a6941c841205fbdade825219a828c81008149b ASoC: wm8993/wm8994/wm8958: replace codec to component
:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
:::::: CC: Mark Brown <broonie@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-15 22:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-12 7:38 sound/soc/codecs/wm8994.c:1450:28: warning: Value stored to 'component' during its initialization is never read [clang-analyzer-deadcode.DeadStores] kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-12-15 22:47 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.