* drivers/gpu/drm/nouveau/nouveau_bo.c:1327:2: warning: Value stored to 'dev' is never read [clang-analyzer-deadcode.DeadStores]
@ 2021-09-28 11:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-28 11:27 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 61597 bytes --]
CC: llvm(a)lists.linux.dev
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
CC: Daniel Vetter <daniel.vetter@ffwll.ch>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0513e464f9007b70b96740271a948ca5ab6e7dd7
commit: 512bce50a41c528fa15c4c014293e7bebf018658 Merge v5.10-rc3 into drm-next
date: 11 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 11 months ago
config: riscv-randconfig-c006-20210927 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=512bce50a41c528fa15c4c014293e7bebf018658
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 512bce50a41c528fa15c4c014293e7bebf018658
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 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 >>)
Suppressed 5 warnings (5 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
drivers/leds/leds-pwm.c:111:15: warning: Access to field 'name' results in a dereference of a null pointer [clang-analyzer-core.NullDereference]
led.name = to_of_node(fwnode)->name;
^
include/linux/of.h:161:2: note: expanded from macro 'to_of_node'
({ \
^
drivers/leds/leds-pwm.c:141:6: note: Assuming 'count' is not equal to 0
if (!count)
^~~~~~
drivers/leds/leds-pwm.c:141:2: note: Taking false branch
if (!count)
^
drivers/leds/leds-pwm.c:146:6: note: Assuming 'priv' is non-null
if (!priv)
^~~~~
drivers/leds/leds-pwm.c:146:2: note: Taking false branch
if (!priv)
^
drivers/leds/leds-pwm.c:149:8: note: Calling 'led_pwm_create_fwnode'
ret = led_pwm_create_fwnode(&pdev->dev, priv);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-pwm.c:108:2: note: Loop condition is true. Entering loop body
device_for_each_child_node(dev, fwnode) {
^
include/linux/property.h:108:2: note: expanded from macro 'device_for_each_child_node'
for (child = device_get_next_child_node(dev, NULL); child; \
^
drivers/leds/leds-pwm.c:110:7: note: Assuming 'ret' is not equal to 0
if (ret && is_of_node(fwnode))
^~~
drivers/leds/leds-pwm.c:110:7: note: Left side of '&&' is true
drivers/leds/leds-pwm.c:110:14: note: Assuming the condition is true
if (ret && is_of_node(fwnode))
^~~~~~~~~~~~~~~~~~
drivers/leds/leds-pwm.c:110:3: note: Taking true branch
if (ret && is_of_node(fwnode))
^
drivers/leds/leds-pwm.c:111:15: note: Assuming the condition is false
led.name = to_of_node(fwnode)->name;
^
include/linux/of.h:164:3: note: expanded from macro 'to_of_node'
is_of_node(__to_of_node_fwnode) ? \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-pwm.c:111:15: note: '?' condition is false
led.name = to_of_node(fwnode)->name;
^
include/linux/of.h:164:3: note: expanded from macro 'to_of_node'
is_of_node(__to_of_node_fwnode) ? \
^
drivers/leds/leds-pwm.c:111:15: note: Access to field 'name' results in a dereference of a null pointer
led.name = to_of_node(fwnode)->name;
^
include/linux/of.h:161:2: note: expanded from macro 'to_of_node'
({ \
^
Suppressed 5 warnings (5 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.
13 warnings generated.
drivers/gpu/drm/nouveau/nouveau_bo.c:1228:10: warning: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
if (ret == -ENOSPC) {
~~~ ^
drivers/gpu/drm/nouveau/nouveau_bo.c:1146:2: note: 'ret' declared without an initial value
int ret;
^~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1150:2: note: Control jumps to 'case 2:' at line 1171
switch (reg->mem_type) {
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1177:7: note: Assuming field 'family' is < NV_DEVICE_INFO_V0_TESLA
if (drm->client.device.info.family >= NV_DEVICE_INFO_V0_TESLA &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1177:65: note: Left side of '&&' is false
if (drm->client.device.info.family >= NV_DEVICE_INFO_V0_TESLA &&
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1183:7: note: Assuming field 'oclass' is < NVIF_CLASS_MEM_NV50
if (drm->client.mem->oclass >= NVIF_CLASS_MEM_NV50) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1183:3: note: Taking false branch
if (drm->client.mem->oclass >= NVIF_CLASS_MEM_NV50) {
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1222:3: note: Execution continues on line 1228
break;
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1228:10: note: The left operand of '==' is a garbage value
if (ret == -ENOSPC) {
~~~ ^
>> drivers/gpu/drm/nouveau/nouveau_bo.c:1327:2: warning: Value stored to 'dev' is never read [clang-analyzer-deadcode.DeadStores]
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1327:2: note: Value stored to 'dev' is never read
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1344:2: warning: Value stored to 'dev' is never read [clang-analyzer-deadcode.DeadStores]
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1344:2: note: Value stored to 'dev' is never read
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
Suppressed 10 warnings (8 in non-user code, 2 with check filters).
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/gpu/drm/nouveau/nouveau_bo0039.c:55:6: warning: Value stored to 'page_count' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
u32 page_count = new_reg->num_pages;
^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo0039.c:55:6: note: Value stored to 'page_count' during its initialization is never read
u32 page_count = new_reg->num_pages;
^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
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.
include/linux/list.h:135:13: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
__list_del(entry->prev, entry->next);
^
drivers/media/cec/core/cec-api.c:637:29: note: Left side of '&&' is false
struct cec_adapter *adap = to_cec_adapter(devnode);
^
drivers/media/cec/core/cec-priv.h:21:30: note: expanded from macro 'to_cec_adapter'
#define to_cec_adapter(node) container_of(node, struct cec_adapter, devnode)
^
include/linux/kernel.h:853:61: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
drivers/media/cec/core/cec-api.c:637:29: note: Taking false branch
struct cec_adapter *adap = to_cec_adapter(devnode);
^
drivers/media/cec/core/cec-priv.h:21:30: note: expanded from macro 'to_cec_adapter'
#define to_cec_adapter(node) container_of(node, struct cec_adapter, devnode)
^
include/linux/kernel.h:853:2: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:319:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:307:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:299:3: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
drivers/media/cec/core/cec-api.c:637:29: note: Loop condition is false. Exiting loop
struct cec_adapter *adap = to_cec_adapter(devnode);
^
drivers/media/cec/core/cec-priv.h:21:30: note: expanded from macro 'to_cec_adapter'
#define to_cec_adapter(node) container_of(node, struct cec_adapter, devnode)
^
include/linux/kernel.h:853:2: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:319:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:307:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:297:2: note: expanded from macro '__compiletime_assert'
do { \
^
drivers/media/cec/core/cec-api.c:642:6: note: Assuming 'fh' is equal to field 'cec_initiator'
if (adap->cec_initiator == fh)
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/cec/core/cec-api.c:642:2: note: Taking true branch
if (adap->cec_initiator == fh)
^
drivers/media/cec/core/cec-api.c:644:6: note: Assuming 'fh' is equal to field 'cec_follower'
if (adap->cec_follower == fh) {
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/cec/core/cec-api.c:644:2: note: Taking true branch
if (adap->cec_follower == fh) {
^
drivers/media/cec/core/cec-api.c:648:6: note: Assuming the condition is false
if (fh->mode_follower == CEC_MODE_FOLLOWER)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/cec/core/cec-api.c:648:2: note: Taking false branch
if (fh->mode_follower == CEC_MODE_FOLLOWER)
--
include/linux/compiler_types.h:297:2: note: expanded from macro '__compiletime_assert'
do { \
^
fs/ubifs/super.c:1176:3: note: Calling 'list_del'
list_del(&ucleb->list);
^~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:146:2: note: Calling '__list_del_entry'
__list_del_entry(entry);
^~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:132:2: note: Taking false branch
if (!__list_del_entry_valid(entry))
^
include/linux/list.h:135:13: note: Use of memory after it is freed
__list_del(entry->prev, entry->next);
^~~~~~~~~~~
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.
drivers/clocksource/timer-of.c:191:3: warning: Value stored to 'flags' is never read [clang-analyzer-deadcode.DeadStores]
flags |= TIMER_OF_IRQ;
^
drivers/clocksource/timer-of.c:191:3: note: Value stored to 'flags' is never read
Suppressed 5 warnings (5 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.
Suppressed 4 warnings (4 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.
Suppressed 4 warnings (4 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
62 warnings generated.
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:734:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm1));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:734:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm1));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:738:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm2));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:738:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm2));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:742:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm3));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:742:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm3));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:746:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm4));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:746:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm4));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:750:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:750:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:754:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm6));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:754:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm6));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:758:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm7));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:758:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm7));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:763:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:763:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:994:2: warning: Value stored to 'fA_Term' is never read [clang-analyzer-deadcode.DeadStores]
fA_Term = fAdd(fMargin_RO_a, fAdd(fMultiply(fSM_A4, fSclk), fSM_A5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:994:2: note: Value stored to 'fA_Term' is never read
fA_Term = fAdd(fMargin_RO_a, fAdd(fMultiply(fSM_A4, fSclk), fSM_A5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:995:2: warning: Value stored to 'fB_Term' is never read [clang-analyzer-deadcode.DeadStores]
fB_Term = fAdd(fAdd(fMultiply(fSM_A2, fSclk), fSM_A6), fMargin_RO_b);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:995:2: note: Value stored to 'fB_Term' is never read
fB_Term = fAdd(fAdd(fMultiply(fSM_A2, fSclk), fSM_A6), fMargin_RO_b);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:996:2: warning: Value stored to 'fC_Term' is never read [clang-analyzer-deadcode.DeadStores]
fC_Term = fAdd(fMargin_RO_c,
^ ~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:996:2: note: Value stored to 'fC_Term' is never read
fC_Term = fAdd(fMargin_RO_c,
^ ~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1661:2: warning: Value stored to 'table_address' is never read [clang-analyzer-deadcode.DeadStores]
table_address += offset;
^ ~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1661:2: note: Value stored to 'table_address' is never read
table_address += offset;
^ ~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:223:18: warning: The result of the left shift is undefined because the left operand is negative [clang-analyzer-core.UndefinedBinaryOperatorResult]
temp.full = (X << SHIFT_AMOUNT);
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:718:6: note: Assuming 'getASICProfilingInfo' is non-null
if (!getASICProfilingInfo)
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:718:2: note: Taking false branch
if (!getASICProfilingInfo)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:721:6: note: Assuming field 'ucTableFormatRevision' is >= 3
if (getASICProfilingInfo->asHeader.ucTableFormatRevision < 3 ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:721:6: note: Left side of '||' is false
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:722:7: note: Assuming field 'ucTableFormatRevision' is not equal to 3
(getASICProfilingInfo->asHeader.ucTableFormatRevision == 3 &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:722:65: note: Left side of '&&' is false
(getASICProfilingInfo->asHeader.ucTableFormatRevision == 3 &&
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:732:2: note: Control jumps to the 'default' case at line 761
switch (dpm_level) {
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:784:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:784:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:805:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:805:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:825:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:825:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:846:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:846:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:853:19: note: Calling 'fDecodeLogisticFuse'
fKt_Beta_fused = fDecodeLogisticFuse(ul_Kt_Beta_fused,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:192:44: note: Passing the value -13 via 1st parameter 'X'
fInt f_CONSTANT_NEG13 = ConvertToFraction(-13);
^~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:192:26: note: Calling 'ConvertToFraction'
fInt f_CONSTANT_NEG13 = ConvertToFraction(-13);
^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:222:2: note: Taking true branch
if (X <= MAX)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:223:18: note: The result of the left shift is undefined because the left operand is negative
temp.full = (X << SHIFT_AMOUNT);
~ ^
Suppressed 49 warnings (10 in non-user code, 39 with check filters).
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.
5 warnings generated.
Suppressed 5 warnings (5 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
include/asm-generic/bitops/non-atomic.h:21:6: warning: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage [clang-analyzer-core.uninitialized.Assign]
*p |= mask;
^
crypto/lrw.c:82:6: note: Assuming 'err' is 0
if (err)
^~~
crypto/lrw.c:82:2: note: Taking false branch
if (err)
^
crypto/lrw.c:85:6: note: Assuming field 'table' is null
if (ctx->table)
^~~~~~~~~~
crypto/lrw.c:85:2: note: Taking false branch
if (ctx->table)
^
crypto/lrw.c:90:6: note: Assuming field 'table' is non-null
if (!ctx->table)
^~~~~~~~~~~
crypto/lrw.c:90:2: note: Taking false branch
--
tmp = RREG32(BIF_SCRATCH0);
^
drivers/gpu/drm/radeon/r600.c:1862:2: note: Value stored to 'tmp' is never read
drivers/gpu/drm/radeon/r600.c:2572:3: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores]
err = -EINVAL;
^ ~~~~~~~
drivers/gpu/drm/radeon/r600.c:2572:3: note: Value stored to 'err' is never read
err = -EINVAL;
^ ~~~~~~~
drivers/gpu/drm/radeon/r600.c:4396:3: warning: Value stored to 'tmp' is never read [clang-analyzer-deadcode.DeadStores]
tmp = readl((void __iomem *)ptr);
^
drivers/gpu/drm/radeon/r600.c:4396:3: note: Value stored to 'tmp' is never read
Suppressed 12 warnings (7 in non-user code, 5 with check filters).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
5 warnings generated.
Suppressed 5 warnings (5 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.
fs/splice.c:722:2: warning: Undefined or garbage value returned to caller [clang-analyzer-core.uninitialized.UndefReturn]
return ret;
^ ~~~
fs/splice.c:630:2: note: 'ret' declared without an initial value
ssize_t ret;
^~~~~~~~~~~
fs/splice.c:632:15: note: Assuming 'array' is non-null
if (unlikely(!array))
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
fs/splice.c:632:2: note: Taking false branch
if (unlikely(!array))
^
fs/splice.c:638:2: note: Loop condition is false. Execution continues on line 714
while (sd.total_len) {
^
fs/splice.c:719:9: note: Field 'num_spliced' is 0
if (sd.num_spliced)
^
fs/splice.c:719:2: note: Taking false branch
if (sd.num_spliced)
^
fs/splice.c:722:2: note: Undefined or garbage value returned to caller
return ret;
^ ~~~
fs/splice.c:845:2: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = 0;
^ ~
fs/splice.c:845:2: note: Value stored to 'ret' is never read
ret = 0;
^ ~
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.
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.
8 warnings generated.
Suppressed 8 warnings (7 in non-user code, 1 with check filters).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
5 warnings generated.
Suppressed 5 warnings (5 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
13 warnings generated.
drivers/gpu/drm/nouveau/nouveau_bo.c:1228:10: warning: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
if (ret == -ENOSPC) {
~~~ ^
drivers/gpu/drm/nouveau/nouveau_bo.c:1146:2: note: 'ret' declared without an initial value
int ret;
^~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1150:2: note: Control jumps to 'case 2:' at line 1171
switch (reg->mem_type) {
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1177:7: note: Assuming field 'family' is < NV_DEVICE_INFO_V0_TESLA
if (drm->client.device.info.family >= NV_DEVICE_INFO_V0_TESLA &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1177:65: note: Left side of '&&' is false
if (drm->client.device.info.family >= NV_DEVICE_INFO_V0_TESLA &&
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1183:7: note: Assuming field 'oclass' is < NVIF_CLASS_MEM_NV50
if (drm->client.mem->oclass >= NVIF_CLASS_MEM_NV50) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1183:3: note: Taking false branch
if (drm->client.mem->oclass >= NVIF_CLASS_MEM_NV50) {
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1222:3: note: Execution continues on line 1228
break;
^
drivers/gpu/drm/nouveau/nouveau_bo.c:1228:10: note: The left operand of '==' is a garbage value
if (ret == -ENOSPC) {
~~~ ^
>> drivers/gpu/drm/nouveau/nouveau_bo.c:1327:2: warning: Value stored to 'dev' is never read [clang-analyzer-deadcode.DeadStores]
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1327:2: note: Value stored to 'dev' is never read
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1344:2: warning: Value stored to 'dev' is never read [clang-analyzer-deadcode.DeadStores]
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo.c:1344:2: note: Value stored to 'dev' is never read
dev = drm->dev->dev;
^ ~~~~~~~~~~~~~
Suppressed 10 warnings (8 in non-user code, 2 with check filters).
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/gpu/drm/nouveau/nouveau_bo0039.c:55:6: warning: Value stored to 'page_count' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
u32 page_count = new_reg->num_pages;
^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_bo0039.c:55:6: note: Value stored to 'page_count' during its initialization is never read
u32 page_count = new_reg->num_pages;
^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
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.
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.
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.
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.
5 warnings generated.
Suppressed 5 warnings (5 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.
fs/autofs/root.c:560:2: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
strcpy(cp, symname);
^~~~~~
fs/autofs/root.c:560:2: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
strcpy(cp, symname);
^~~~~~
Suppressed 5 warnings (5 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
5 warnings generated.
Suppressed 5 warnings (5 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.
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.
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.
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.
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.
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.
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.
62 warnings generated.
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:734:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm1));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:734:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm1));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:738:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm2));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:738:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm2));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:742:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm3));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:742:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm3));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:746:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm4));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:746:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm4));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:750:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:750:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:754:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm6));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:754:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm6));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:758:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm7));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:758:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(le16_to_cpu(getASICProfilingInfo->usPowerDpm7));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:763:3: warning: Value stored to 'fPowerDPMx' is never read [clang-analyzer-deadcode.DeadStores]
fPowerDPMx = Convert_ULONG_ToFraction(1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:763:3: note: Value stored to 'fPowerDPMx' is never read
fPowerDPMx = Convert_ULONG_ToFraction(1);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:994:2: warning: Value stored to 'fA_Term' is never read [clang-analyzer-deadcode.DeadStores]
fA_Term = fAdd(fMargin_RO_a, fAdd(fMultiply(fSM_A4, fSclk), fSM_A5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:994:2: note: Value stored to 'fA_Term' is never read
fA_Term = fAdd(fMargin_RO_a, fAdd(fMultiply(fSM_A4, fSclk), fSM_A5));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:995:2: warning: Value stored to 'fB_Term' is never read [clang-analyzer-deadcode.DeadStores]
fB_Term = fAdd(fAdd(fMultiply(fSM_A2, fSclk), fSM_A6), fMargin_RO_b);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:995:2: note: Value stored to 'fB_Term' is never read
fB_Term = fAdd(fAdd(fMultiply(fSM_A2, fSclk), fSM_A6), fMargin_RO_b);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:996:2: warning: Value stored to 'fC_Term' is never read [clang-analyzer-deadcode.DeadStores]
fC_Term = fAdd(fMargin_RO_c,
^ ~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:996:2: note: Value stored to 'fC_Term' is never read
fC_Term = fAdd(fMargin_RO_c,
^ ~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1661:2: warning: Value stored to 'table_address' is never read [clang-analyzer-deadcode.DeadStores]
table_address += offset;
^ ~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:1661:2: note: Value stored to 'table_address' is never read
table_address += offset;
^ ~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:223:18: warning: The result of the left shift is undefined because the left operand is negative [clang-analyzer-core.UndefinedBinaryOperatorResult]
temp.full = (X << SHIFT_AMOUNT);
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:718:6: note: Assuming 'getASICProfilingInfo' is non-null
if (!getASICProfilingInfo)
^~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:718:2: note: Taking false branch
if (!getASICProfilingInfo)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:721:6: note: Assuming field 'ucTableFormatRevision' is >= 3
if (getASICProfilingInfo->asHeader.ucTableFormatRevision < 3 ||
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:721:6: note: Left side of '||' is false
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:722:7: note: Assuming field 'ucTableFormatRevision' is not equal to 3
(getASICProfilingInfo->asHeader.ucTableFormatRevision == 3 &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:722:65: note: Left side of '&&' is false
(getASICProfilingInfo->asHeader.ucTableFormatRevision == 3 &&
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:732:2: note: Control jumps to the 'default' case at line 761
switch (dpm_level) {
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:784:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:784:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:805:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:805:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:825:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:825:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:846:6: note: Assuming 'result' is 0
if (result)
^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:846:2: note: Taking false branch
if (result)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:853:19: note: Calling 'fDecodeLogisticFuse'
fKt_Beta_fused = fDecodeLogisticFuse(ul_Kt_Beta_fused,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:192:44: note: Passing the value -13 via 1st parameter 'X'
fInt f_CONSTANT_NEG13 = ConvertToFraction(-13);
^~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:192:26: note: Calling 'ConvertToFraction'
fInt f_CONSTANT_NEG13 = ConvertToFraction(-13);
^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:222:2: note: Taking true branch
if (X <= MAX)
^
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:223:18: note: The result of the left shift is undefined because the left operand is negative
temp.full = (X << SHIFT_AMOUNT);
~ ^
Suppressed 49 warnings (10 in non-user code, 39 with check filters).
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.
fs/fscache/object.c:454:25: warning: Value stored to 'cookie' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct fscache_cookie *cookie = object->cookie;
^~~~~~ ~~~~~~~~~~~~~~
fs/fscache/object.c:454:25: note: Value stored to 'cookie' during its initialization is never read
struct fscache_cookie *cookie = object->cookie;
^~~~~~ ~~~~~~~~~~~~~~
Suppressed 7 warnings (6 in non-user code, 1 with check filters).
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.
9 warnings generated.
fs/fscache/page.c:409:32: warning: Value stored to 'state' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
enum fscache_operation_state state = op->state;
^~~~~ ~~~~~~~~~
fs/fscache/page.c:409:32: note: Value stored to 'state' during its initialization is never read
enum fscache_operation_state state = op->state;
^~~~~ ~~~~~~~~~
fs/fscache/page.c:998:2: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = -ENOBUFS;
^ ~~~~~~~~
fs/fscache/page.c:998:2: note: Value stored to 'ret' is never read
ret = -ENOBUFS;
^ ~~~~~~~~
fs/fscache/page.c:1080:2: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = -ENOBUFS;
^ ~~~~~~~~
fs/fscache/page.c:1080:2: note: Value stored to 'ret' is never read
ret = -ENOBUFS;
^ ~~~~~~~~
Suppressed 6 warnings (6 in non-user code).
vim +/dev +1327 drivers/gpu/drm/nouveau/nouveau_bo.c
e1429b4c3c7951 Ben Skeggs 2010-09-10 1306
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1307 static int
0a667b500703db Dave Airlie 2020-08-25 1308 nouveau_ttm_tt_populate(struct ttm_bo_device *bdev,
0a667b500703db Dave Airlie 2020-08-25 1309 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx)
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1310 {
e34b8feeaa4b65 Christian König 2020-10-21 1311 struct ttm_tt *ttm_dma = (void *)ttm;
ebb945a94bba2c Ben Skeggs 2012-07-20 1312 struct nouveau_drm *drm;
359088d5b8ec06 Ben Skeggs 2017-11-01 1313 struct device *dev;
22b33e8ed0e38b Dave Airlie 2012-04-02 1314 bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG);
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1315
7eec915138279d Dave Airlie 2020-09-15 1316 if (ttm_tt_is_populated(ttm))
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1317 return 0;
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1318
22b33e8ed0e38b Dave Airlie 2012-04-02 1319 if (slave && ttm->sg) {
22b33e8ed0e38b Dave Airlie 2012-04-02 1320 /* make userspace faulting work */
22b33e8ed0e38b Dave Airlie 2012-04-02 1321 drm_prime_sg_to_page_addr_arrays(ttm->sg, ttm->pages,
22b33e8ed0e38b Dave Airlie 2012-04-02 1322 ttm_dma->dma_address, ttm->num_pages);
22b33e8ed0e38b Dave Airlie 2012-04-02 1323 return 0;
22b33e8ed0e38b Dave Airlie 2012-04-02 1324 }
22b33e8ed0e38b Dave Airlie 2012-04-02 1325
0a667b500703db Dave Airlie 2020-08-25 1326 drm = nouveau_bdev(bdev);
359088d5b8ec06 Ben Skeggs 2017-11-01 @1327 dev = drm->dev->dev;
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1328
461619f5c3242a Christian König 2020-10-24 1329 return ttm_pool_alloc(&drm->ttm.bdev.pool, ttm, ctx);
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1330 }
3230cfc34fca9d Konrad Rzeszutek Wilk 2011-10-17 1331
:::::: The code at line 1327 was first introduced by commit
:::::: 359088d5b8ec06196a9ea53e7e59167514220465 drm/nouveau: remove trivial cases of nvxx_device() usage
:::::: TO: Ben Skeggs <bskeggs@redhat.com>
:::::: CC: Ben Skeggs <bskeggs@redhat.com>
---
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: 32449 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-28 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 11:27 drivers/gpu/drm/nouveau/nouveau_bo.c:1327:2: warning: Value stored to 'dev' 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.