[intel-linux-intel-lts:5.4/preempt-rt 7040/16573] arch/arm/mach-tegra/cpuidle-tegra20.c:206:29: error: 'struct cpuidle_state' has no member named 'disabled'
by kernel test robot
Hi Rafael,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: 00c7e2e1841e0ed3c1249c0e4bcacbd70435d62e
commit: 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611 [7040/16573] cpuidle: Drop disabled field from struct cpuidle_state
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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
# https://github.com/intel/linux-intel-lts/commit/8bfaf7ab474ef5a95f5bd6a87...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 8bfaf7ab474ef5a95f5bd6a8724c4a9f8d0b9611
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm
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 >>):
arch/arm/mach-tegra/cpuidle-tegra20.c: In function 'tegra20_cpuidle_pcie_irqs_in_use':
>> arch/arm/mach-tegra/cpuidle-tegra20.c:206:29: error: 'struct cpuidle_state' has no member named 'disabled'
206 | tegra_idle_driver.states[1].disabled = true;
| ^
vim +206 arch/arm/mach-tegra/cpuidle-tegra20.c
5c1350bdfcebf4 Joseph Lo 2013-01-15 196
b4f173752a5618 Stephen Warren 2013-05-06 197 /*
b4f173752a5618 Stephen Warren 2013-05-06 198 * Tegra20 HW appears to have a bug such that PCIe device interrupts, whether
b4f173752a5618 Stephen Warren 2013-05-06 199 * they are legacy IRQs or MSI, are lost when LP2 is enabled. To work around
b4f173752a5618 Stephen Warren 2013-05-06 200 * this, simply disable LP2 if the PCI driver and DT node are both enabled.
b4f173752a5618 Stephen Warren 2013-05-06 201 */
b4f173752a5618 Stephen Warren 2013-05-06 202 void tegra20_cpuidle_pcie_irqs_in_use(void)
b4f173752a5618 Stephen Warren 2013-05-06 203 {
b4f173752a5618 Stephen Warren 2013-05-06 204 pr_info_once(
b4f173752a5618 Stephen Warren 2013-05-06 205 "Disabling cpuidle LP2 state, since PCIe IRQs are in use\n");
b4f173752a5618 Stephen Warren 2013-05-06 @206 tegra_idle_driver.states[1].disabled = true;
b4f173752a5618 Stephen Warren 2013-05-06 207 }
b4f173752a5618 Stephen Warren 2013-05-06 208
:::::: The code at line 206 was first introduced by commit
:::::: b4f173752a56187bd55752b0474429202f2ab1d3 ARM: tegra: disable LP2 cpuidle state if PCIe is enabled
:::::: TO: Stephen Warren <swarren(a)nvidia.com>
:::::: CC: Stephen Warren <swarren(a)nvidia.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[intel-linux-intel-lts:5.4/yocto 1129/1142] drivers/dma/dmaengine.c:603:18: warning: no previous prototype for 'dma_get_slave_channel'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: de9c6920ba5aa70a57dfe39b7f99a9e287ac4c50 [1129/1142] dmaengine: Move dma_get_{,any_}slave_channel() to private dmaengine.h
config: microblaze-randconfig-r005-20210517 (attached as .config)
compiler: microblaze-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
# https://github.com/intel/linux-intel-lts/commit/de9c6920ba5aa70a57dfe39b7...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout de9c6920ba5aa70a57dfe39b7f99a9e287ac4c50
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=microblaze
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/dma/dmaengine.c:603:18: warning: no previous prototype for 'dma_get_slave_channel' [-Wmissing-prototypes]
603 | struct dma_chan *dma_get_slave_channel(struct dma_chan *chan)
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/dma/dmaengine.c:634:18: warning: no previous prototype for 'dma_get_any_slave_channel' [-Wmissing-prototypes]
634 | struct dma_chan *dma_get_any_slave_channel(struct dma_device *device)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/dma_get_slave_channel +603 drivers/dma/dmaengine.c
7bd903c5ca47fd Peter Ujfalusi 2015-12-14 598
59b5ec21446b92 Dan Williams 2009-01-06 599 /**
19d643d68bd678 Stefan Agner 2015-06-01 600 * dma_get_slave_channel - try to get specific channel exclusively
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 601 * @chan: target channel
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 602 */
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 @603 struct dma_chan *dma_get_slave_channel(struct dma_chan *chan)
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 604 {
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 605 int err = -EBUSY;
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 606
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 607 /* lock against __dma_request_channel */
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 608 mutex_lock(&dma_list_mutex);
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 609
d9a6c8f52d1039 Vinod Koul 2013-08-19 610 if (chan->client_count == 0) {
214fc4e423ff38 Peter Ujfalusi 2015-09-24 611 struct dma_device *device = chan->device;
214fc4e423ff38 Peter Ujfalusi 2015-09-24 612
214fc4e423ff38 Peter Ujfalusi 2015-09-24 613 dma_cap_set(DMA_PRIVATE, device->cap_mask);
214fc4e423ff38 Peter Ujfalusi 2015-09-24 614 device->privatecnt++;
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 615 err = dma_chan_get(chan);
214fc4e423ff38 Peter Ujfalusi 2015-09-24 616 if (err) {
ef859312c3a16b Jarkko Nikula 2016-03-14 617 dev_dbg(chan->device->dev,
ef859312c3a16b Jarkko Nikula 2016-03-14 618 "%s: failed to get %s: (%d)\n",
d9a6c8f52d1039 Vinod Koul 2013-08-19 619 __func__, dma_chan_name(chan), err);
214fc4e423ff38 Peter Ujfalusi 2015-09-24 620 chan = NULL;
214fc4e423ff38 Peter Ujfalusi 2015-09-24 621 if (--device->privatecnt == 0)
214fc4e423ff38 Peter Ujfalusi 2015-09-24 622 dma_cap_clear(DMA_PRIVATE, device->cap_mask);
214fc4e423ff38 Peter Ujfalusi 2015-09-24 623 }
d9a6c8f52d1039 Vinod Koul 2013-08-19 624 } else
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 625 chan = NULL;
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 626
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 627 mutex_unlock(&dma_list_mutex);
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 628
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 629
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 630 return chan;
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 631 }
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 632 EXPORT_SYMBOL_GPL(dma_get_slave_channel);
7bb587f4eef8f7 Zhangfei Gao 2013-06-28 633
8010dad55a0ab0 Stephen Warren 2013-11-26 @634 struct dma_chan *dma_get_any_slave_channel(struct dma_device *device)
8010dad55a0ab0 Stephen Warren 2013-11-26 635 {
8010dad55a0ab0 Stephen Warren 2013-11-26 636 dma_cap_mask_t mask;
8010dad55a0ab0 Stephen Warren 2013-11-26 637 struct dma_chan *chan;
8010dad55a0ab0 Stephen Warren 2013-11-26 638
8010dad55a0ab0 Stephen Warren 2013-11-26 639 dma_cap_zero(mask);
8010dad55a0ab0 Stephen Warren 2013-11-26 640 dma_cap_set(DMA_SLAVE, mask);
8010dad55a0ab0 Stephen Warren 2013-11-26 641
8010dad55a0ab0 Stephen Warren 2013-11-26 642 /* lock against __dma_request_channel */
8010dad55a0ab0 Stephen Warren 2013-11-26 643 mutex_lock(&dma_list_mutex);
8010dad55a0ab0 Stephen Warren 2013-11-26 644
7bd903c5ca47fd Peter Ujfalusi 2015-12-14 645 chan = find_candidate(device, &mask, NULL, NULL);
8010dad55a0ab0 Stephen Warren 2013-11-26 646
8010dad55a0ab0 Stephen Warren 2013-11-26 647 mutex_unlock(&dma_list_mutex);
8010dad55a0ab0 Stephen Warren 2013-11-26 648
7bd903c5ca47fd Peter Ujfalusi 2015-12-14 649 return IS_ERR(chan) ? NULL : chan;
8010dad55a0ab0 Stephen Warren 2013-11-26 650 }
8010dad55a0ab0 Stephen Warren 2013-11-26 651 EXPORT_SYMBOL_GPL(dma_get_any_slave_channel);
8010dad55a0ab0 Stephen Warren 2013-11-26 652
:::::: The code at line 603 was first introduced by commit
:::::: 7bb587f4eef8f71ce589f360ab99bb54ab0fc85d dmaengine: add interface of dma_get_slave_channel
:::::: TO: Zhangfei Gao <zhangfei.gao(a)linaro.org>
:::::: CC: Vinod Koul <vinod.koul(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[intel-linux-intel-lts:5.4/preempt-rt 15/16] arch/powerpc/platforms/pseries/iommu.c:181:30: error: unused variable 'tcp_page_lock'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: 2046457bf9f4a420f69e915453d59db5b38edbaa
commit: 3c3f9863f8b96ccbf6fd420c93f1685f6085651a [15/16] Merge tag 'lts-v5.4.58-yocto-200825T002733Z' into lts2019/yocto-rt
config: powerpc-randconfig-r033-20210517 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0a34ff8bcb1df16fe7d643ccbe4567b2162c5024)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/intel/linux-intel-lts/commit/3c3f9863f8b96ccbf6fd420c9...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 3c3f9863f8b96ccbf6fd420c93f1685f6085651a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
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 >>):
>> arch/powerpc/platforms/pseries/iommu.c:181:30: error: unused variable 'tcp_page_lock' [-Werror,-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(tcp_page_lock);
^
1 error generated.
vim +/tcp_page_lock +181 arch/powerpc/platforms/pseries/iommu.c
^1da177e4c3f41 arch/ppc64/kernel/pSeries_iommu.c Linus Torvalds 2005-04-16 179
df015604cf5bb0 arch/powerpc/platforms/pseries/iommu.c Anton Blanchard 2013-10-17 180 static DEFINE_PER_CPU(__be64 *, tce_page);
3ab3ff1d185c02 arch/powerpc/platforms/pseries/iommu.c Sebastian Andrzej Siewior 2019-03-26 @181 static DEFINE_LOCAL_IRQ_LOCK(tcp_page_lock);
^1da177e4c3f41 arch/ppc64/kernel/pSeries_iommu.c Linus Torvalds 2005-04-16 182
:::::: The code at line 181 was first introduced by commit
:::::: 3ab3ff1d185c02c51cfb22a22476d8c3791c8810 powerpc/pseries/iommu: Use a locallock instead local_irq_save()
:::::: TO: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
:::::: CC: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[intel-linux-intel-lts:5.4/preempt-rt 3/13] kernel/printk/printk.c:1982:5: warning: no previous prototype for 'vprintk_default'
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: bb4ae19664a898236b2af46b45a6a0fea23ab20d
commit: 7bc82c4f1b47c643468c3be1d9e0309d7c3e9b3f [3/13] Merge remote-tracking branch 'origin/5.4/yocto' into lts2019/yocto-rt
config: microblaze-randconfig-r005-20210517 (attached as .config)
compiler: microblaze-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
# https://github.com/intel/linux-intel-lts/commit/7bc82c4f1b47c643468c3be1d...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 7bc82c4f1b47c643468c3be1d9e0309d7c3e9b3f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=microblaze
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 >>):
>> kernel/printk/printk.c:1982:5: warning: no previous prototype for 'vprintk_default' [-Wmissing-prototypes]
1982 | int vprintk_default(const char *fmt, va_list args)
| ^~~~~~~~~~~~~~~
kernel/printk/printk.c: In function 'vprintk_default':
>> kernel/printk/printk.c:1993:2: warning: function 'vprintk_default' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1993 | r = vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args);
| ^
kernel/printk/printk.c: In function 'vprintk_deferred':
>> kernel/printk/printk.c:2751:2: warning: function 'vprintk_deferred' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
2751 | return vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args);
| ^~~~~~
vim +/vprintk_default +1982 kernel/printk/printk.c
^1da177e4c3f41 kernel/printk.c Linus Torvalds 2005-04-16 1981
a0cba2179ea4c1 kernel/printk/printk.c Linus Torvalds 2016-08-09 @1982 int vprintk_default(const char *fmt, va_list args)
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1983) {
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1984) int r;
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1985)
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1986) #ifdef CONFIG_KGDB_KDB
34aaff40b42148 kernel/printk/printk.c Petr Mladek 2016-12-14 1987 /* Allow to pass printk() to kdb but avoid a recursion. */
34aaff40b42148 kernel/printk/printk.c Petr Mladek 2016-12-14 1988 if (unlikely(kdb_trap_printk && kdb_printf_cpu < 0)) {
f7d4ca8bbfda23 kernel/printk/printk.c Daniel Thompson 2014-11-07 1989 r = vkdb_printf(KDB_MSGSRC_PRINTK, fmt, args);
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1990) return r;
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1991) }
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1992) #endif
a0cba2179ea4c1 kernel/printk/printk.c Linus Torvalds 2016-08-09 @1993 r = vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args);
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1994)
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1995) return r;
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1996) }
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1997) EXPORT_SYMBOL_GPL(vprintk_default);
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 1998)
:::::: The code at line 1982 was first introduced by commit
:::::: a0cba2179ea4c1820fce2ee046b6ed90ecc56196 Revert "printk: create pr_<level> functions"
:::::: TO: Linus Torvalds <torvalds(a)linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-stable-rc:linux-4.4.y 8475/9999] drivers/net/can/mscan/mscan.c:426:14: error: invalid use of void expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head: 95a3867e897abd7811196123f81a119a75aba863
commit: 177aa4d14d912a33a4490644987ac499e8bb9e11 [8475/9999] can: mscan: mscan_rx_poll(): fix rx path lockup when returning from polling to irq mode
config: powerpc64-randconfig-r031-20210517 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 7.5.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
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.4.y
git checkout 177aa4d14d912a33a4490644987ac499e8bb9e11
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 ARCH=powerpc64
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 >>):
include/linux/netdevice.h:3027:2: note: in expansion of macro 'BUG_ON'
BUG_ON(index >= dev->num_rx_queues);
^~~~~~
include/linux/netdevice.h:3027:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(index >= dev->num_rx_queues);
^
include/linux/compiler.h:174:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
arch/powerpc/include/asm/bug.h:75:2: note: in expansion of macro 'if'
if (__builtin_constant_p(x)) { \
^~
include/linux/netdevice.h:3027:2: note: in expansion of macro 'BUG_ON'
BUG_ON(index >= dev->num_rx_queues);
^~~~~~
include/linux/netdevice.h:3027:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(index >= dev->num_rx_queues);
^
include/linux/compiler.h:163:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
arch/powerpc/include/asm/bug.h:76:3: note: in expansion of macro 'if'
if (x) \
^~
include/linux/netdevice.h:3027:2: note: in expansion of macro 'BUG_ON'
BUG_ON(index >= dev->num_rx_queues);
^~~~~~
include/linux/netdevice.h:3027:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(index >= dev->num_rx_queues);
^
include/linux/compiler.h:163:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
arch/powerpc/include/asm/bug.h:76:3: note: in expansion of macro 'if'
if (x) \
^~
include/linux/netdevice.h:3027:2: note: in expansion of macro 'BUG_ON'
BUG_ON(index >= dev->num_rx_queues);
^~~~~~
include/linux/netdevice.h:3027:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(index >= dev->num_rx_queues);
^
include/linux/compiler.h:174:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
arch/powerpc/include/asm/bug.h:76:3: note: in expansion of macro 'if'
if (x) \
^~
include/linux/netdevice.h:3027:2: note: in expansion of macro 'BUG_ON'
BUG_ON(index >= dev->num_rx_queues);
^~~~~~
In file included from include/linux/bug.h:4:0,
from include/linux/thread_info.h:11,
from include/asm-generic/preempt.h:4,
from arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from drivers/net/can/mscan/mscan.c:23:
include/linux/netdevice.h:3027:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUG_ON(index >= dev->num_rx_queues);
^
arch/powerpc/include/asm/bug.h:84:25: note: in definition of macro 'BUG_ON'
"r" ((__force long)(x))); \
^
In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from drivers/net/can/mscan/mscan.c:22:
include/linux/netdevice.h: In function 'netif_msg_init':
include/linux/netdevice.h:3301:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
^
include/linux/compiler.h:163:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
include/linux/netdevice.h:3301:2: note: in expansion of macro 'if'
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
^~
include/linux/netdevice.h:3301:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
^
include/linux/compiler.h:163:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
include/linux/netdevice.h:3301:2: note: in expansion of macro 'if'
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
^~
include/linux/netdevice.h:3301:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
^
include/linux/compiler.h:174:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
include/linux/netdevice.h:3301:2: note: in expansion of macro 'if'
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
^~
drivers/net/can/mscan/mscan.c: In function 'mscan_rx_poll':
>> drivers/net/can/mscan/mscan.c:426:14: error: invalid use of void expression
if (likely(napi_complete_done(&priv->napi, work_done))) {
^
include/linux/compiler.h:163:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
>> include/linux/compiler.h:150:49: error: invalid use of void expression
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:163:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
include/linux/compiler.h:126:45: error: invalid use of void expression
#define likely_notrace(x) __builtin_expect(!!(x), 1)
^
include/linux/compiler.h:163:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
include/linux/compiler.h:139:14: note: in expansion of macro 'likely_notrace'
______r = likely_notrace(x); \
^~~~~~~~~~~~~~
include/linux/compiler.h:150:56: note: in expansion of macro '__branch_check__'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^~~~~~~~~~~~~~~~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
>> drivers/net/can/mscan/mscan.c:426:14: error: invalid use of void expression
if (likely(napi_complete_done(&priv->napi, work_done))) {
^
include/linux/compiler.h:163:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
>> include/linux/compiler.h:150:49: error: invalid use of void expression
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:163:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
include/linux/compiler.h:126:45: error: invalid use of void expression
#define likely_notrace(x) __builtin_expect(!!(x), 1)
^
include/linux/compiler.h:163:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
include/linux/compiler.h:139:14: note: in expansion of macro 'likely_notrace'
______r = likely_notrace(x); \
^~~~~~~~~~~~~~
include/linux/compiler.h:150:56: note: in expansion of macro '__branch_check__'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^~~~~~~~~~~~~~~~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
>> drivers/net/can/mscan/mscan.c:426:14: error: invalid use of void expression
if (likely(napi_complete_done(&priv->napi, work_done))) {
^
include/linux/compiler.h:174:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
>> include/linux/compiler.h:150:49: error: invalid use of void expression
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:174:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
include/linux/compiler.h:126:45: error: invalid use of void expression
#define likely_notrace(x) __builtin_expect(!!(x), 1)
^
include/linux/compiler.h:174:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
drivers/net/can/mscan/mscan.c:426:3: note: in expansion of macro 'if'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~
include/linux/compiler.h:139:14: note: in expansion of macro 'likely_notrace'
______r = likely_notrace(x); \
^~~~~~~~~~~~~~
include/linux/compiler.h:150:56: note: in expansion of macro '__branch_check__'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^~~~~~~~~~~~~~~~
drivers/net/can/mscan/mscan.c:426:7: note: in expansion of macro 'likely'
if (likely(napi_complete_done(&priv->napi, work_done))) {
^~~~~~
drivers/net/can/mscan/mscan.c: In function 'mscan_start_xmit':
drivers/net/can/mscan/mscan.c:222:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
netif_stop_queue(dev);
^~~~~~~~~~~~~~~~~~~~~
drivers/net/can/mscan/mscan.c:223:2: note: here
case 2:
^~~~
vim +426 drivers/net/can/mscan/mscan.c
388
389 static int mscan_rx_poll(struct napi_struct *napi, int quota)
390 {
391 struct mscan_priv *priv = container_of(napi, struct mscan_priv, napi);
392 struct net_device *dev = napi->dev;
393 struct mscan_regs __iomem *regs = priv->reg_base;
394 struct net_device_stats *stats = &dev->stats;
395 int work_done = 0;
396 struct sk_buff *skb;
397 struct can_frame *frame;
398 u8 canrflg;
399
400 while (work_done < quota) {
401 canrflg = in_8(®s->canrflg);
402 if (!(canrflg & (MSCAN_RXF | MSCAN_ERR_IF)))
403 break;
404
405 skb = alloc_can_skb(dev, &frame);
406 if (!skb) {
407 if (printk_ratelimit())
408 netdev_notice(dev, "packet dropped\n");
409 stats->rx_dropped++;
410 out_8(®s->canrflg, canrflg);
411 continue;
412 }
413
414 if (canrflg & MSCAN_RXF)
415 mscan_get_rx_frame(dev, frame);
416 else if (canrflg & MSCAN_ERR_IF)
417 mscan_get_err_frame(dev, frame, canrflg);
418
419 stats->rx_packets++;
420 stats->rx_bytes += frame->can_dlc;
421 work_done++;
422 netif_receive_skb(skb);
423 }
424
425 if (work_done < quota) {
> 426 if (likely(napi_complete_done(&priv->napi, work_done))) {
427 clear_bit(F_RX_PROGRESS, &priv->flags);
428 if (priv->can.state < CAN_STATE_BUS_OFF)
429 out_8(®s->canrier, priv->shadow_canrier);
430 }
431 }
432 return work_done;
433 }
434
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
collect2: error: ld returned 1 exit status
by kernel test robot
Hi Alexei,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 28183dbf54edba614a90ceb6a1e9464b27845309
commit: d71fa5c9763c24dd997a2fa4feb7a13a95bab42c bpf: Add kernel module with user mode driver that populates bpffs.
date: 9 months ago
config: i386-randconfig-r002-20210517 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# 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 d71fa5c9763c24dd997a2fa4feb7a13a95bab42c
# save the attached .config to linux build tree
make W=1 W=1 ARCH=i386
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 >>):
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libelf.a when searching for -lelf
/usr/bin/ld: cannot find -lelf
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libelf.so when searching for -lelf
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when searching for -lz
>> collect2: error: ld returned 1 exit status
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h:588:21: sparse: sparse: cast removes address space '__iomem' of expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 28183dbf54edba614a90ceb6a1e9464b27845309
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 2 weeks ago
config: s390-randconfig-s032-20210517 (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.3-341-g8af24329-dirty
# 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 d991bb1c8da842a2a0b9dc83b1005e655783f861
# 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__' W=1 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 >>)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:26:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:29:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:39:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:42:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:720:16: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c: note: in included file (through arch/s390/include/asm/io.h, include/linux/io.h, include/linux/pci.h):
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c: note: in included file:
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h:588:21: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h:588:21: sparse: sparse: cast removes address space '__iomem' of expression
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c: note: in included file (through arch/s390/include/asm/io.h, include/linux/io.h, include/linux/pci.h):
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
vim +/__iomem +588 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
4c236d5dc8b862 Geetha sowjanya 2021-02-11 584
caa2da34fd25a3 Sunil Goutham 2020-01-27 585 /* Alloc pointer from pool/aura */
caa2da34fd25a3 Sunil Goutham 2020-01-27 586 static inline u64 otx2_aura_allocptr(struct otx2_nic *pfvf, int aura)
caa2da34fd25a3 Sunil Goutham 2020-01-27 587 {
caa2da34fd25a3 Sunil Goutham 2020-01-27 @588 u64 *ptr = (u64 *)otx2_get_regaddr(pfvf,
caa2da34fd25a3 Sunil Goutham 2020-01-27 589 NPA_LF_AURA_OP_ALLOCX(0));
caa2da34fd25a3 Sunil Goutham 2020-01-27 590 u64 incr = (u64)aura | BIT_ULL(63);
caa2da34fd25a3 Sunil Goutham 2020-01-27 591
caa2da34fd25a3 Sunil Goutham 2020-01-27 592 return otx2_atomic64_add(incr, ptr);
caa2da34fd25a3 Sunil Goutham 2020-01-27 593 }
caa2da34fd25a3 Sunil Goutham 2020-01-27 594
:::::: The code at line 588 was first introduced by commit
:::::: caa2da34fd25a37e9fd43343b6966fb9d730a6d5 octeontx2-pf: Initialize and config queues
:::::: TO: Sunil Goutham <sgoutham(a)marvell.com>
:::::: 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
1 year, 4 months