arch/sparc/include/asm/io_64.h:175:16: warning: 'reg' is used uninitialized in this function
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: 2a6c0b82e65128c73b5102e00e031c5e58bb3504 USB: PHY: JZ4770: Add support for new Ingenic SoCs.
date: 3 weeks ago
config: sparc64-randconfig-r002-20200816 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
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
git checkout 2a6c0b82e65128c73b5102e00e031c5e58bb3504
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/sparc/include/asm/io.h:5,
from include/linux/io.h:13,
from drivers/usb/phy/phy-jz4770.c:10:
drivers/usb/phy/phy-jz4770.c: In function 'ingenic_usb_phy_init':
>> arch/sparc/include/asm/io_64.h:175:16: warning: 'reg' is used uninitialized in this function [-Wuninitialized]
175 | #define writel writel
| ^~~~~~
drivers/usb/phy/phy-jz4770.c:161:6: note: 'reg' was declared here
161 | u32 reg;
| ^~~
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2a6c0b82e65128c73b5102e00e031c5e58bb3504
vim +/reg +175 arch/sparc/include/asm/io_64.h
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 174
79294d7eff89f65 arch/sparc/include/asm/io_64.h Sam Ravnborg 2014-07-20 @175 #define writel writel
7c3969c3a4f3593 arch/sparc/include/asm/io_64.h Arnd Bergmann 2014-11-19 176 #define writel_relaxed writel
79294d7eff89f65 arch/sparc/include/asm/io_64.h Sam Ravnborg 2014-07-20 177 static inline void writel(u32 l, volatile void __iomem *addr)
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 178 {
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 179 __asm__ __volatile__("stwa\t%r0, [%1] %2\t/* pci_writel */"
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 180 : /* no outputs */
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 181 : "Jr" (l), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E_L)
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 182 : "memory");
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 183 }
f5e706ad886b6a5 include/asm-sparc/io_64.h Sam Ravnborg 2008-07-17 184
:::::: The code at line 175 was first introduced by commit
:::::: 79294d7eff89f65d2e58021bca81437e88fa61e3 sparc64: remove macro indirection in io_64.h
:::::: TO: Sam Ravnborg <sam(a)ravnborg.org>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[fdmanana:misc-next 3/4] fs/btrfs/tree-log.c:4501:9: warning: Identical condition 'ret', second condition is always false
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git misc-next
head: e19a1a28c0327556bc78e4c5081dab9d5e557f1a
commit: 6105869e2ac5f5e4eeb3a7e2db001ce72a49df9a [3/4] btrfs: make fast fsyncs wait only for writeback
compiler: or1k-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
>> fs/btrfs/tree-log.c:4501:9: warning: Identical condition 'ret', second condition is always false [identicalConditionAfterEarlyExit]
return ret;
^
fs/btrfs/tree-log.c:4476:6: note: first condition
if (ret)
^
fs/btrfs/tree-log.c:4501:9: note: second condition
return ret;
^
fs/btrfs/tree-log.c:2184:6: warning: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment]
ret = 0;
^
fs/btrfs/tree-log.c:2162:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = 1;
^
fs/btrfs/tree-log.c:2184:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = 0;
^
fs/btrfs/tree-log.c:3547:6: warning: Variable 'log' is reassigned a value before the old one has been used. [redundantAssignment]
log = root->log_root;
^
fs/btrfs/tree-log.c:3537:0: note: Variable 'log' is reassigned a value before the old one has been used.
struct btrfs_root *log = root->log_root;
^
fs/btrfs/tree-log.c:3547:6: note: Variable 'log' is reassigned a value before the old one has been used.
log = root->log_root;
^
fs/btrfs/tree-log.c:5855:8: warning: Variable 'leaf' is reassigned a value before the old one has been used. [redundantAssignment]
leaf = path->nodes[0];
^
fs/btrfs/tree-log.c:5822:0: note: Variable 'leaf' is reassigned a value before the old one has been used.
struct extent_buffer *leaf = path->nodes[0];
^
fs/btrfs/tree-log.c:5855:8: note: Variable 'leaf' is reassigned a value before the old one has been used.
leaf = path->nodes[0];
^
fs/btrfs/tree-log.c:5856:8: warning: Variable 'slot' is reassigned a value before the old one has been used. [redundantAssignment]
slot = path->slots[0];
^
fs/btrfs/tree-log.c:5823:0: note: Variable 'slot' is reassigned a value before the old one has been used.
int slot = path->slots[0];
^
fs/btrfs/tree-log.c:5856:8: note: Variable 'slot' is reassigned a value before the old one has been used.
slot = path->slots[0];
^
# https://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git/commit...
git remote add fdmanana https://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git
git fetch --no-tags fdmanana misc-next
git checkout 6105869e2ac5f5e4eeb3a7e2db001ce72a49df9a
vim +/ret +4501 fs/btrfs/tree-log.c
31d11b83b96faa Filipe Manana 2018-05-09 4396
5dc562c541e102 Josef Bacik 2012-08-17 4397 static int btrfs_log_changed_extents(struct btrfs_trans_handle *trans,
5dc562c541e102 Josef Bacik 2012-08-17 4398 struct btrfs_root *root,
9d122629f1f65a Nikolay Borisov 2017-01-18 4399 struct btrfs_inode *inode,
827463c49f2911 Miao Xie 2014-01-14 4400 struct btrfs_path *path,
6105869e2ac5f5 Filipe Manana 2020-08-11 4401 struct btrfs_log_ctx *ctx)
5dc562c541e102 Josef Bacik 2012-08-17 4402 {
6105869e2ac5f5 Filipe Manana 2020-08-11 4403 struct btrfs_ordered_extent *ordered;
6105869e2ac5f5 Filipe Manana 2020-08-11 4404 struct btrfs_ordered_extent *tmp;
5dc562c541e102 Josef Bacik 2012-08-17 4405 struct extent_map *em, *n;
5dc562c541e102 Josef Bacik 2012-08-17 4406 struct list_head extents;
9d122629f1f65a Nikolay Borisov 2017-01-18 4407 struct extent_map_tree *tree = &inode->extent_tree;
5dc562c541e102 Josef Bacik 2012-08-17 4408 u64 test_gen;
5dc562c541e102 Josef Bacik 2012-08-17 4409 int ret = 0;
2ab28f322f9896 Josef Bacik 2012-10-12 4410 int num = 0;
5dc562c541e102 Josef Bacik 2012-08-17 4411
5dc562c541e102 Josef Bacik 2012-08-17 4412 INIT_LIST_HEAD(&extents);
5dc562c541e102 Josef Bacik 2012-08-17 4413
5dc562c541e102 Josef Bacik 2012-08-17 4414 write_lock(&tree->lock);
5dc562c541e102 Josef Bacik 2012-08-17 4415 test_gen = root->fs_info->last_trans_committed;
5dc562c541e102 Josef Bacik 2012-08-17 4416
5dc562c541e102 Josef Bacik 2012-08-17 4417 list_for_each_entry_safe(em, n, &tree->modified_extents, list) {
5dc562c541e102 Josef Bacik 2012-08-17 4418 list_del_init(&em->list);
2ab28f322f9896 Josef Bacik 2012-10-12 4419 /*
2ab28f322f9896 Josef Bacik 2012-10-12 4420 * Just an arbitrary number, this can be really CPU intensive
2ab28f322f9896 Josef Bacik 2012-10-12 4421 * once we start getting a lot of extents, and really once we
2ab28f322f9896 Josef Bacik 2012-10-12 4422 * have a bunch of extents we just want to commit since it will
2ab28f322f9896 Josef Bacik 2012-10-12 4423 * be faster.
2ab28f322f9896 Josef Bacik 2012-10-12 4424 */
2ab28f322f9896 Josef Bacik 2012-10-12 4425 if (++num > 32768) {
2ab28f322f9896 Josef Bacik 2012-10-12 4426 list_del_init(&tree->modified_extents);
2ab28f322f9896 Josef Bacik 2012-10-12 4427 ret = -EFBIG;
2ab28f322f9896 Josef Bacik 2012-10-12 4428 goto process;
2ab28f322f9896 Josef Bacik 2012-10-12 4429 }
2ab28f322f9896 Josef Bacik 2012-10-12 4430
5dc562c541e102 Josef Bacik 2012-08-17 4431 if (em->generation <= test_gen)
5dc562c541e102 Josef Bacik 2012-08-17 4432 continue;
8c6c592831a09a Josef Bacik 2017-08-29 4433
31d11b83b96faa Filipe Manana 2018-05-09 4434 /* We log prealloc extents beyond eof later. */
31d11b83b96faa Filipe Manana 2018-05-09 4435 if (test_bit(EXTENT_FLAG_PREALLOC, &em->flags) &&
31d11b83b96faa Filipe Manana 2018-05-09 4436 em->start >= i_size_read(&inode->vfs_inode))
31d11b83b96faa Filipe Manana 2018-05-09 4437 continue;
31d11b83b96faa Filipe Manana 2018-05-09 4438
ff44c6e36dc9dc Josef Bacik 2012-09-14 4439 /* Need a ref to keep it from getting evicted from cache */
490b54d6fb75f6 Elena Reshetova 2017-03-03 4440 refcount_inc(&em->refs);
ff44c6e36dc9dc Josef Bacik 2012-09-14 4441 set_bit(EXTENT_FLAG_LOGGING, &em->flags);
5dc562c541e102 Josef Bacik 2012-08-17 4442 list_add_tail(&em->list, &extents);
2ab28f322f9896 Josef Bacik 2012-10-12 4443 num++;
5dc562c541e102 Josef Bacik 2012-08-17 4444 }
5dc562c541e102 Josef Bacik 2012-08-17 4445
5dc562c541e102 Josef Bacik 2012-08-17 4446 list_sort(NULL, &extents, extent_cmp);
2ab28f322f9896 Josef Bacik 2012-10-12 4447 process:
5dc562c541e102 Josef Bacik 2012-08-17 4448 while (!list_empty(&extents)) {
5dc562c541e102 Josef Bacik 2012-08-17 4449 em = list_entry(extents.next, struct extent_map, list);
5dc562c541e102 Josef Bacik 2012-08-17 4450
5dc562c541e102 Josef Bacik 2012-08-17 4451 list_del_init(&em->list);
5dc562c541e102 Josef Bacik 2012-08-17 4452
5dc562c541e102 Josef Bacik 2012-08-17 4453 /*
5dc562c541e102 Josef Bacik 2012-08-17 4454 * If we had an error we just need to delete everybody from our
5dc562c541e102 Josef Bacik 2012-08-17 4455 * private list.
5dc562c541e102 Josef Bacik 2012-08-17 4456 */
ff44c6e36dc9dc Josef Bacik 2012-09-14 4457 if (ret) {
201a90389424d6 Josef Bacik 2013-01-24 4458 clear_em_logging(tree, em);
ff44c6e36dc9dc Josef Bacik 2012-09-14 4459 free_extent_map(em);
5dc562c541e102 Josef Bacik 2012-08-17 4460 continue;
ff44c6e36dc9dc Josef Bacik 2012-09-14 4461 }
ff44c6e36dc9dc Josef Bacik 2012-09-14 4462
ff44c6e36dc9dc Josef Bacik 2012-09-14 4463 write_unlock(&tree->lock);
5dc562c541e102 Josef Bacik 2012-08-17 4464
a2120a473a8090 Josef Bacik 2018-05-23 4465 ret = log_one_extent(trans, inode, root, em, path, ctx);
ff44c6e36dc9dc Josef Bacik 2012-09-14 4466 write_lock(&tree->lock);
201a90389424d6 Josef Bacik 2013-01-24 4467 clear_em_logging(tree, em);
201a90389424d6 Josef Bacik 2013-01-24 4468 free_extent_map(em);
5dc562c541e102 Josef Bacik 2012-08-17 4469 }
ff44c6e36dc9dc Josef Bacik 2012-09-14 4470 WARN_ON(!list_empty(&extents));
ff44c6e36dc9dc Josef Bacik 2012-09-14 4471 write_unlock(&tree->lock);
5dc562c541e102 Josef Bacik 2012-08-17 4472
5dc562c541e102 Josef Bacik 2012-08-17 4473 btrfs_release_path(path);
31d11b83b96faa Filipe Manana 2018-05-09 4474 if (!ret)
31d11b83b96faa Filipe Manana 2018-05-09 4475 ret = btrfs_log_prealloc_extents(trans, inode, path);
6105869e2ac5f5 Filipe Manana 2020-08-11 4476 if (ret)
6105869e2ac5f5 Filipe Manana 2020-08-11 4477 return ret;
6105869e2ac5f5 Filipe Manana 2020-08-11 4478
6105869e2ac5f5 Filipe Manana 2020-08-11 4479 /*
6105869e2ac5f5 Filipe Manana 2020-08-11 4480 * We have logged all extents successfully, now make sure the commit of
6105869e2ac5f5 Filipe Manana 2020-08-11 4481 * the current transaction waits for the ordered extents to complete
6105869e2ac5f5 Filipe Manana 2020-08-11 4482 * before it commits and wipes out the log trees, otherwise we would
6105869e2ac5f5 Filipe Manana 2020-08-11 4483 * lose data if an ordered extents completes after the transaction
6105869e2ac5f5 Filipe Manana 2020-08-11 4484 * commits and a power failure happens after the transaction commit.
6105869e2ac5f5 Filipe Manana 2020-08-11 4485 */
6105869e2ac5f5 Filipe Manana 2020-08-11 4486 list_for_each_entry_safe(ordered, tmp, &ctx->ordered_extents, log_list) {
6105869e2ac5f5 Filipe Manana 2020-08-11 4487 list_del_init(&ordered->log_list);
6105869e2ac5f5 Filipe Manana 2020-08-11 4488 set_bit(BTRFS_ORDERED_LOGGED, &ordered->flags);
6105869e2ac5f5 Filipe Manana 2020-08-11 4489
6105869e2ac5f5 Filipe Manana 2020-08-11 4490 if (!test_bit(BTRFS_ORDERED_COMPLETE, &ordered->flags)) {
6105869e2ac5f5 Filipe Manana 2020-08-11 4491 spin_lock_irq(&inode->ordered_tree.lock);
6105869e2ac5f5 Filipe Manana 2020-08-11 4492 if (!test_bit(BTRFS_ORDERED_COMPLETE, &ordered->flags)) {
6105869e2ac5f5 Filipe Manana 2020-08-11 4493 set_bit(BTRFS_ORDERED_PENDING, &ordered->flags);
6105869e2ac5f5 Filipe Manana 2020-08-11 4494 atomic_inc(&trans->transaction->pending_ordered);
6105869e2ac5f5 Filipe Manana 2020-08-11 4495 }
6105869e2ac5f5 Filipe Manana 2020-08-11 4496 spin_unlock_irq(&inode->ordered_tree.lock);
6105869e2ac5f5 Filipe Manana 2020-08-11 4497 }
6105869e2ac5f5 Filipe Manana 2020-08-11 4498 btrfs_put_ordered_extent(ordered);
6105869e2ac5f5 Filipe Manana 2020-08-11 4499 }
31d11b83b96faa Filipe Manana 2018-05-09 4500
5dc562c541e102 Josef Bacik 2012-08-17 @4501 return ret;
5dc562c541e102 Josef Bacik 2012-08-17 4502 }
5dc562c541e102 Josef Bacik 2012-08-17 4503
:::::: The code at line 4501 was first introduced by commit
:::::: 5dc562c541e1026df9d43913c2f6b91156e22d32 Btrfs: turbo charge fsync
:::::: TO: Josef Bacik <jbacik(a)fusionio.com>
:::::: CC: Chris Mason <chris.mason(a)fusionio.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[radeon-alex:amd-staging-drm-next 1403/1408] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h:336:22: warning: variable 'Y_LessThanOne' set but not used
by kernel test robot
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: 2dec4fa1c0a2e25aaef50fba28fb7360b4e7dc43
commit: 82e6bcf7c9a0c82f3d41a5837bb1dadd68037e55 [1403/1408] drm/amd/pm: optimize the power related source code layout
config: alpha-randconfig-r005-20200816 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
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
git checkout 82e6bcf7c9a0c82f3d41a5837bb1dadd68037e55
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c: In function 'arcturus_is_dpm_running':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c:1845:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1845 | int ret = 0;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c:27:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c: In function 'navi10_is_dpm_running':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c:1346:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1346 | int ret = 0;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c:29:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/navi10_ppt.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/sienna_cichlid_ppt.c: In function 'sienna_cichlid_is_dpm_running':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/sienna_cichlid_ppt.c:1150:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1150 | int ret = 0;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/sienna_cichlid_ppt.c:29:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:65,
from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/sienna_cichlid_ppt.c:29:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c: In function 'tonga_thermal_setup_fan_table':
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:2469:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
2469 | int res;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:33,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:30:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:31,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/tonga_smumgr.c:30:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c: In function 'fiji_populate_smc_boot_level':
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1604:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
1604 | int result = 0;
| ^~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:33,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:25:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:31,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:25:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/polaris10_smumgr.c: In function 'polaris10_populate_smc_boot_level':
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/polaris10_smumgr.c:1453:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
1453 | int result = 0;
| ^~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/polaris10_smumgr.c: At top level:
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/polaris10_smumgr.c:2045:5: warning: no previous prototype for 'polaris10_thermal_avfs_enable' [-Wmissing-prototypes]
2045 | int polaris10_thermal_avfs_enable(struct pp_hwmgr *hwmgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:33,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/polaris10_smumgr.c:27:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:31,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/polaris10_smumgr.c:27:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2085:5: warning: no previous prototype for 'iceland_thermal_setup_fan_table' [-Wmissing-prototypes]
2085 | int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c: In function 'iceland_thermal_setup_fan_table':
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2093:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
2093 | int res;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:33,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:32:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:31,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:32:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
--
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c: In function 'ci_thermal_setup_fan_table':
>> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c:2131:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
2131 | int res;
| ^~~
In file included from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:33,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c:30:
At top level:
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:195:19: warning: 'no_system_mem_limit' defined but not used [-Wunused-const-variable=]
195 | static const bool no_system_mem_limit;
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:194:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
194 | static const bool debug_evictions; /* = false */
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../amdgpu/amdgpu.h:193:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
193 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
| ^~~~~~~~~~~~
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:33,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30,
from drivers/gpu/drm/amd/amdgpu/../include/dm_pp_interface.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/amd_powerplay.h:31,
from drivers/gpu/drm/amd/amdgpu/../pm/inc/smumgr.h:26,
from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/ci_smumgr.c:30:
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
| ^~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
| ^~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
| ^~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
| ^~~~~~~~~~~~~
..
vim +/Y_LessThanOne +336 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppevvmath.h
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 331
21039ac388c5325 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Nils Wallménius 2016-04-24 332 static fInt fMultiply (fInt X, fInt Y) /* Uses 64-bit integers (int64_t) */
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 333 {
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 334 fInt Product;
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 335 int64_t tempProduct;
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 @336 bool X_LessThanOne, Y_LessThanOne;
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 337
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 338 X_LessThanOne = (X.partial.real == 0 && X.partial.decimal != 0 && X.full >= 0);
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 339 Y_LessThanOne = (Y.partial.real == 0 && Y.partial.decimal != 0 && Y.full >= 0);
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 340
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 341 /*The following is for a very specific common case: Non-zero number with ONLY fractional portion*/
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 342 /* TEMPORARILY DISABLED - CAN BE USED TO IMPROVE PRECISION
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 343
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 344 if (X_LessThanOne && Y_LessThanOne) {
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 345 Product.full = X.full * Y.full;
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 346 return Product
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 347 }*/
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 348
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 349 tempProduct = ((int64_t)X.full) * ((int64_t)Y.full); /*Q(16,16)*Q(16,16) = Q(32, 32) - Might become a negative number! */
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 350 tempProduct = tempProduct >> 16; /*Remove lagging 16 bits - Will lose some precision from decimal; */
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 351 Product.full = (int)tempProduct; /*The int64_t will lose the leading 16 bits that were part of the integer portion */
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 352
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 353 return Product;
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 354 }
770911a3cfbb43b drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h Eric Huang 2015-11-09 355
:::::: The code at line 336 was first introduced by commit
:::::: 770911a3cfbb43b67b5ea3189b624e4fe2cb27c1 drm/amd/powerplay: add/update headers for Fiji SMU and DPM
:::::: TO: Eric Huang <JinHuiEric.Huang(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[sashal-linux-stable:queue-5.4 146/215] security/integrity/ima/ima_policy.c:1280:3: error: implicit declaration of function 'ima_free_rule'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: dcf7104e8ee83d0a2555bff0701e88b899a07710
commit: 1950f718bed0c32e4404121532351f2f5576e1b7 [146/215] ima: Free the entire rule if it fails to parse
config: x86_64-randconfig-r002-20200816 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ab9fc8bae805c785066779e76e7846aabad5609e)
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
git checkout 1950f718bed0c32e4404121532351f2f5576e1b7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> security/integrity/ima/ima_policy.c:1280:3: error: implicit declaration of function 'ima_free_rule' [-Werror,-Wimplicit-function-declaration]
ima_free_rule(entry);
^
security/integrity/ima/ima_policy.c:1280:3: note: did you mean 'ima_parse_rule'?
security/integrity/ima/ima_policy.c:894:12: note: 'ima_parse_rule' declared here
static int ima_parse_rule(char *rule, struct ima_rule_entry *entry)
^
1 error generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 1950f718bed0c32e4404121532351f2f5576e1b7
vim +/ima_free_rule +1280 security/integrity/ima/ima_policy.c
1246
1247 /**
1248 * ima_parse_add_rule - add a rule to ima_policy_rules
1249 * @rule - ima measurement policy rule
1250 *
1251 * Avoid locking by allowing just one writer at a time in ima_write_policy()
1252 * Returns the length of the rule parsed, an error code on failure
1253 */
1254 ssize_t ima_parse_add_rule(char *rule)
1255 {
1256 static const char op[] = "update_policy";
1257 char *p;
1258 struct ima_rule_entry *entry;
1259 ssize_t result, len;
1260 int audit_info = 0;
1261
1262 p = strsep(&rule, "\n");
1263 len = strlen(p) + 1;
1264 p += strspn(p, " \t");
1265
1266 if (*p == '#' || *p == '\0')
1267 return len;
1268
1269 entry = kzalloc(sizeof(*entry), GFP_KERNEL);
1270 if (!entry) {
1271 integrity_audit_msg(AUDIT_INTEGRITY_STATUS, NULL,
1272 NULL, op, "-ENOMEM", -ENOMEM, audit_info);
1273 return -ENOMEM;
1274 }
1275
1276 INIT_LIST_HEAD(&entry->list);
1277
1278 result = ima_parse_rule(p, entry);
1279 if (result) {
> 1280 ima_free_rule(entry);
1281 integrity_audit_msg(AUDIT_INTEGRITY_STATUS, NULL,
1282 NULL, op, "invalid-policy", result,
1283 audit_info);
1284 return result;
1285 }
1286
1287 list_add_tail(&entry->list, &ima_temp_rules);
1288
1289 return len;
1290 }
1291
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
net/ipv4/tcp_cong.c:228:24: sparse: sparse: incorrect type in argument 3 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 8 weeks ago
config: s390-randconfig-s032-20200811 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-168-g9554805c-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> net/ipv4/tcp_cong.c:228:24: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected struct tcp_congestion_ops const [noderef] __rcu * @@ got struct tcp_congestion_ops *[assigned] ca @@
>> net/ipv4/tcp_cong.c:228:24: sparse: expected struct tcp_congestion_ops const [noderef] __rcu *
net/ipv4/tcp_cong.c:228:24: sparse: got struct tcp_congestion_ops *[assigned] ca
net/ipv4/tcp_cong.c:228:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tcp_congestion_ops const *prev @@ got struct tcp_congestion_ops const [noderef] __rcu *[assigned] __old @@
net/ipv4/tcp_cong.c:228:22: sparse: expected struct tcp_congestion_ops const *prev
net/ipv4/tcp_cong.c:228:22: sparse: got struct tcp_congestion_ops const [noderef] __rcu *[assigned] __old
vim +228 net/ipv4/tcp_cong.c
317a76f9a44b437 Stephen Hemminger 2005-06-23 213
317a76f9a44b437 Stephen Hemminger 2005-06-23 214 /* Used by sysctl to change default congestion control */
6670e152447732b Stephen Hemminger 2017-11-14 215 int tcp_set_default_congestion_control(struct net *net, const char *name)
317a76f9a44b437 Stephen Hemminger 2005-06-23 216 {
317a76f9a44b437 Stephen Hemminger 2005-06-23 217 struct tcp_congestion_ops *ca;
6670e152447732b Stephen Hemminger 2017-11-14 218 const struct tcp_congestion_ops *prev;
6670e152447732b Stephen Hemminger 2017-11-14 219 int ret;
317a76f9a44b437 Stephen Hemminger 2005-06-23 220
6670e152447732b Stephen Hemminger 2017-11-14 221 rcu_read_lock();
6670e152447732b Stephen Hemminger 2017-11-14 222 ca = tcp_ca_find_autoload(net, name);
6670e152447732b Stephen Hemminger 2017-11-14 223 if (!ca) {
6670e152447732b Stephen Hemminger 2017-11-14 224 ret = -ENOENT;
0baf26b0fcd74bb Martin KaFai Lau 2020-01-08 225 } else if (!bpf_try_module_get(ca, ca->owner)) {
6670e152447732b Stephen Hemminger 2017-11-14 226 ret = -EBUSY;
6670e152447732b Stephen Hemminger 2017-11-14 227 } else {
6670e152447732b Stephen Hemminger 2017-11-14 @228 prev = xchg(&net->ipv4.tcp_congestion_control, ca);
6670e152447732b Stephen Hemminger 2017-11-14 229 if (prev)
0baf26b0fcd74bb Martin KaFai Lau 2020-01-08 230 bpf_module_put(prev, prev->owner);
317a76f9a44b437 Stephen Hemminger 2005-06-23 231
6670e152447732b Stephen Hemminger 2017-11-14 232 ca->flags |= TCP_CONG_NON_RESTRICTED;
317a76f9a44b437 Stephen Hemminger 2005-06-23 233 ret = 0;
317a76f9a44b437 Stephen Hemminger 2005-06-23 234 }
6670e152447732b Stephen Hemminger 2017-11-14 235 rcu_read_unlock();
317a76f9a44b437 Stephen Hemminger 2005-06-23 236
317a76f9a44b437 Stephen Hemminger 2005-06-23 237 return ret;
317a76f9a44b437 Stephen Hemminger 2005-06-23 238 }
317a76f9a44b437 Stephen Hemminger 2005-06-23 239
:::::: The code at line 228 was first introduced by commit
:::::: 6670e152447732ba90626f36dfc015a13fbf150e tcp: Namespace-ify sysctl_tcp_default_congestion_control
:::::: TO: Stephen Hemminger <stephen(a)networkplumber.org>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH V4] hwmon: add fan/pwm driver for corsair h100i platinum
by kernel test robot
Hi jaap,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on hwmon/hwmon-next]
[also build test WARNING on v5.8 next-20200814]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/jaap-aarts/hwmon-add-fan-pwm-dri...
base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: nios2-randconfig-c003-20200816 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/hwmon/corsair_hydro_i_pro.c: In function 'hwmon_init':
>> drivers/hwmon/corsair_hydro_i_pro.c:529:17: warning: variable 'hwmon_dev' set but not used [-Wunused-but-set-variable]
529 | struct device *hwmon_dev;
| ^~~~~~~~~
drivers/hwmon/corsair_hydro_i_pro.c: In function 'init_device':
>> drivers/hwmon/corsair_hydro_i_pro.c:584:3: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
584 | ;
| ^
vim +/hwmon_dev +529 drivers/hwmon/corsair_hydro_i_pro.c
525
526 static void hwmon_init(struct hydro_i_pro_device *hdev)
527 {
528 u8 fan_id;
> 529 struct device *hwmon_dev;
530 struct hwmon_fan_data *fan;
531 struct hwmon_data *data = devm_kzalloc(
532 &hdev->udev->dev, sizeof(struct hwmon_data), GFP_KERNEL);
533 struct hwmon_chip_info *hwmon_info = devm_kzalloc(
534 &hdev->udev->dev, sizeof(struct hwmon_chip_info), GFP_KERNEL);
535
536 /* You did something bad!! Either adjust max_fan_count or the fancount for the config!*/
537 WARN_ON(hdev->config->fancount >= max_pwm_channel_count);
538 data->channel_count = hdev->config->fancount;
539
540 /* For each fan create a data channel a fan config entry and a pwm config entry */
541 for (fan_id = 0; fan_id < data->channel_count; fan_id++) {
542 fan = devm_kzalloc(&hdev->udev->dev,
543 sizeof(struct hwmon_fan_data), GFP_KERNEL);
544 fan->fan_channel = fan_id;
545 fan->mode = 0;
546 data->channel_data[fan_id] = fan;
547 }
548
549 hwmon_info->ops = &i_pro_ops;
550 hwmon_info->info = hdev->config->hwmon_info;
551
552 data->hdev = hdev;
553 hwmon_dev = devm_hwmon_device_register_with_info(
554 &hdev->udev->dev, hdev->config->name, data, hwmon_info, NULL);
555 dev_info(&hdev->udev->dev, "setup hwmon for %s\n", hdev->config->name);
556 }
557
558 const int USB_VENDOR_ID_CORSAIR = 0x1b1c;
559 const int USB_PRODUCT_ID_H100I_PRO = 0x0c15;
560 /*
561 * Devices that work with this driver.
562 * More devices should work, however none have been tested.
563 */
564 static const struct usb_device_id astk_table[] = {
565 { USB_DEVICE(USB_VENDOR_ID_CORSAIR, USB_PRODUCT_ID_H100I_PRO),
566 .driver_info = (kernel_ulong_t)&config_table[0] },
567 {},
568 };
569
570 MODULE_DEVICE_TABLE(usb, astk_table);
571
572 static int init_device(struct usb_device *udev)
573 {
574 int retval;
575
576 /*
577 * This is needed because when running windows in a vm with proprietary driver
578 * and you switch to this driver, the device will not respond unless you run this.
579 */
580 retval = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x00, 0x40,
581 0xffff, 0x0000, 0, 0, 0);
582 /*this always returns error*/
583 if (retval)
> 584 ;
585
586 retval = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), 0x02, 0x40,
587 0x0002, 0x0000, 0, 0, 0);
588 return retval;
589 }
590
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH 2/2] net: socket: implement SO_DESCRIPTION
by kernel test robot
Hi Pascal,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/perf/core]
[also build test WARNING on linux/master v5.8]
[cannot apply to security/next-testing linus/master next-20200814]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Pascal-Bouchareine/proc-socket-a...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git d903b6d029d66e6478562d75ea18d89098f7b7e8
config: x86_64-randconfig-r006-20200816 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ab9fc8bae805c785066779e76e7846aabad5609e)
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> net/core/sock.c:831:5: warning: no previous prototype for function 'sock_set_description' [-Wmissing-prototypes]
int sock_set_description(struct sock *sk, char __user *user_desc)
^
net/core/sock.c:831:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sock_set_description(struct sock *sk, char __user *user_desc)
^
static
1 warning generated.
vim +/sock_set_description +831 net/core/sock.c
830
> 831 int sock_set_description(struct sock *sk, char __user *user_desc)
832 {
833 char *old, *desc;
834
835 desc = strndup_user(user_desc, SK_MAX_DESC_SIZE, GFP_KERNEL_ACCOUNT);
836 if (IS_ERR(desc))
837 return PTR_ERR(desc);
838
839 lock_sock(sk);
840 old = sk->sk_description;
841 sk->sk_description = desc;
842 release_sock(sk);
843
844 kfree(old);
845
846 return 0;
847 }
848
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH 1/2] Create uapi power_supply from enums and power_supply_is_* funcs
by kernel test robot
Hi "Frédéric,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on power-supply/for-next]
[also build test ERROR on linus/master next-20200814]
[cannot apply to sparc-next/master v5.8]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Fr-d-ric-Pierret-fepitre/Create-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> error: include/uapi/linux/power_supply.h: missing "WITH Linux-syscall-note" for SPDX-License-Identifier
make[2]: *** [scripts/Makefile.headersinst:63: usr/include/linux/power_supply.h] Error 1
make[2]: Target '__headers' not remade because of errors.
make[1]: *** [Makefile:1258: headers] Error 2
In file included from arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from arch/m68k/kernel/asm-offsets.c:16:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
arch/mips/lantiq/falcon/prom.c:43:9: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 8 weeks ago
config: mips-randconfig-s032-20200814 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-168-g9554805c-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/mips/lantiq/falcon/prom.c:43:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
>> arch/mips/lantiq/falcon/prom.c:43:9: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/prom.c:43:9: sparse: got void *
arch/mips/lantiq/falcon/prom.c:39:13: sparse: sparse: symbol 'ltq_soc_nmi_setup' was not declared. Should it be static?
arch/mips/lantiq/falcon/prom.c:50:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
arch/mips/lantiq/falcon/prom.c:50:9: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/prom.c:50:9: sparse: got void *
arch/mips/lantiq/falcon/prom.c:46:13: sparse: sparse: symbol 'ltq_soc_ejtag_setup' was not declared. Should it be static?
>> arch/mips/lantiq/falcon/prom.c:56:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
>> arch/mips/lantiq/falcon/prom.c:56:23: sparse: expected void const volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/prom.c:56:23: sparse: got unsigned int [usertype] *
arch/mips/lantiq/falcon/prom.c:57:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
arch/mips/lantiq/falcon/prom.c:57:19: sparse: expected void const volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/prom.c:57:19: sparse: got unsigned int [usertype] *
arch/mips/lantiq/falcon/prom.c:58:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
arch/mips/lantiq/falcon/prom.c:58:21: sparse: expected void const volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/prom.c:58:21: sparse: got unsigned int [usertype] *
arch/mips/lantiq/falcon/prom.c:66:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int [usertype] * @@
arch/mips/lantiq/falcon/prom.c:66:25: sparse: expected void const volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/prom.c:66:25: sparse: got unsigned int [usertype] *
--
>> arch/mips/lantiq/falcon/reset.c:40:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
>> arch/mips/lantiq/falcon/reset.c:40:9: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/reset.c:40:9: sparse: got void *
arch/mips/lantiq/falcon/reset.c:41:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
arch/mips/lantiq/falcon/reset.c:41:9: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/reset.c:41:9: sparse: got void *
arch/mips/lantiq/falcon/reset.c:42:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
arch/mips/lantiq/falcon/reset.c:42:9: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/reset.c:42:9: sparse: got void *
arch/mips/lantiq/falcon/reset.c:45:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
arch/mips/lantiq/falcon/reset.c:45:9: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/reset.c:45:9: sparse: got void *
arch/mips/lantiq/falcon/reset.c:46:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void * @@
arch/mips/lantiq/falcon/reset.c:46:9: sparse: expected void volatile [noderef] __iomem *mem
arch/mips/lantiq/falcon/reset.c:46:9: sparse: got void *
vim +43 arch/mips/lantiq/falcon/prom.c
d41ced01f21ddd2 John Crispin 2012-04-19 38
d41ced01f21ddd2 John Crispin 2012-04-19 39 void __init ltq_soc_nmi_setup(void)
d41ced01f21ddd2 John Crispin 2012-04-19 40 {
d41ced01f21ddd2 John Crispin 2012-04-19 41 extern void (*nmi_handler)(void);
d41ced01f21ddd2 John Crispin 2012-04-19 42
d41ced01f21ddd2 John Crispin 2012-04-19 @43 ltq_w32((unsigned long)&nmi_handler, (void *)BOOT_NVEC);
d41ced01f21ddd2 John Crispin 2012-04-19 44 }
d41ced01f21ddd2 John Crispin 2012-04-19 45
d41ced01f21ddd2 John Crispin 2012-04-19 46 void __init ltq_soc_ejtag_setup(void)
d41ced01f21ddd2 John Crispin 2012-04-19 47 {
d41ced01f21ddd2 John Crispin 2012-04-19 48 extern void (*ejtag_debug_handler)(void);
d41ced01f21ddd2 John Crispin 2012-04-19 49
d41ced01f21ddd2 John Crispin 2012-04-19 50 ltq_w32((unsigned long)&ejtag_debug_handler, (void *)BOOT_EVEC);
d41ced01f21ddd2 John Crispin 2012-04-19 51 }
d41ced01f21ddd2 John Crispin 2012-04-19 52
d41ced01f21ddd2 John Crispin 2012-04-19 53 void __init ltq_soc_detect(struct ltq_soc_info *i)
d41ced01f21ddd2 John Crispin 2012-04-19 54 {
d41ced01f21ddd2 John Crispin 2012-04-19 55 u32 type;
d41ced01f21ddd2 John Crispin 2012-04-19 @56 i->partnum = (ltq_r32(FALCON_CHIPID) & PART_MASK) >> PART_SHIFT;
:::::: The code at line 43 was first introduced by commit
:::::: d41ced01f21ddd2c3a01531bb9edf6c41064e9fc MIPS: lantiq: implement support for FALCON soc
:::::: TO: John Crispin <blogic(a)openwrt.org>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month