drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match'
by kernel test robot
Hi Vladimir,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 45e885c439e825c19f3a51e46ef8210984bc0a9c
commit: d60bc62de4ae068ed4b215c24cdfdd5035aa986e net: dsa: seville: build as separate module
date: 2 months ago
config: x86_64-randconfig-r006-20201129 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e9e45b3887ca343e90fe91fe77b98d47e66ca312)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://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 d60bc62de4ae068ed4b215c24cdfdd5035aa986e
# 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 >>):
>> drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match' [-Wunused-const-variable]
static const struct of_device_id seville_of_match[] = {
^
1 warning generated.
vim +/seville_of_match +1107 drivers/net/dsa/ocelot/seville_vsc9953.c
84705fc165526e8 Maxim Kochetkov 2020-07-13 1106
84705fc165526e8 Maxim Kochetkov 2020-07-13 @1107 static const struct of_device_id seville_of_match[] = {
84705fc165526e8 Maxim Kochetkov 2020-07-13 1108 { .compatible = "mscc,vsc9953-switch" },
84705fc165526e8 Maxim Kochetkov 2020-07-13 1109 { },
84705fc165526e8 Maxim Kochetkov 2020-07-13 1110 };
84705fc165526e8 Maxim Kochetkov 2020-07-13 1111 MODULE_DEVICE_TABLE(of, seville_of_match);
84705fc165526e8 Maxim Kochetkov 2020-07-13 1112
:::::: The code at line 1107 was first introduced by commit
:::::: 84705fc165526e8e55d208b2b10a48cc720a106a net: dsa: felix: introduce support for Seville VSC9953 switch
:::::: TO: Maxim Kochetkov <fido_max(a)inbox.ru>
:::::: 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, 7 months
mapping.c:undefined reference to `dma_to_phys'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 45e885c439e825c19f3a51e46ef8210984bc0a9c
commit: 7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029 dma-direct: remove __dma_to_phys
date: 3 months ago
config: mips-randconfig-r031-20201129 (attached as .config)
compiler: mips64-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://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 7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
mips64-linux-ld: kernel/dma/mapping.o: in function `dma_map_page_attrs':
mapping.c:(.text+0x10c): undefined reference to `__phys_to_dma'
mips64-linux-ld: kernel/dma/mapping.o: in function `dma_unmap_page_attrs':
>> mapping.c:(.text+0x23c): undefined reference to `dma_to_phys'
>> mips64-linux-ld: mapping.c:(.text+0x274): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/mapping.o: in function `dma_sync_single_for_cpu':
mapping.c:(.text+0x3d4): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_get_required_mask':
direct.c:(.text+0xe4): undefined reference to `__phys_to_dma'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_alloc':
>> direct.c:(.text+0x210): undefined reference to `dma_to_phys'
mips64-linux-ld: direct.c:(.text+0x2d8): undefined reference to `__phys_to_dma'
mips64-linux-ld: direct.c:(.text+0x354): undefined reference to `__phys_to_dma'
mips64-linux-ld: direct.c:(.text+0x42c): undefined reference to `__phys_to_dma'
>> mips64-linux-ld: direct.c:(.text+0x4d8): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_free':
direct.c:(.text+0x5d8): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_map_sg':
direct.c:(.text+0x764): undefined reference to `__phys_to_dma'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_get_sgtable':
direct.c:(.text+0xa00): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_mmap':
direct.c:(.text+0xb10): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_supported':
direct.c:(.text+0xbf8): undefined reference to `__phys_to_dma'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_need_sync':
direct.c:(.text+0xc28): undefined reference to `dma_to_phys'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 1/2] iio: adc: Add driver for Texas Instruments ADS131E0x ADC family
by kernel test robot
Hi,
I love your patch! Yet something to improve:
[auto build test ERROR on iio/togreg]
[also build test ERROR on linus/master v5.10-rc5 next-20201127]
[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/tomislav-denis-avl-com/iio-adc-A...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/0day-ci/linux/commit/9a70466cfd655dcd40e9b57ff7deb4a7b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review tomislav-denis-avl-com/iio-adc-Add-driver-for-Texas-Instruments-ADS131E0x-ADC-family/20201129-062610
git checkout 9a70466cfd655dcd40e9b57ff7deb4a7bf2b0110
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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 >>):
In file included from drivers/iio/adc/ti-ads131e08.c:11:
>> drivers/iio/adc/ti-ads131e08.c:804:25: error: 'ads131e08_matches' undeclared here (not in a function); did you mean 'ads131e08_of_match'?
804 | MODULE_DEVICE_TABLE(of, ads131e08_matches);
| ^~~~~~~~~~~~~~~~~
include/linux/module.h:240:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
240 | extern typeof(name) __mod_##type##__##name##_device_table \
| ^~~~
>> include/linux/module.h:240:21: error: '__mod_of__ads131e08_matches_device_table' aliased to undefined symbol 'ads131e08_matches'
240 | extern typeof(name) __mod_##type##__##name##_device_table \
| ^~~~~~
drivers/iio/adc/ti-ads131e08.c:804:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
804 | MODULE_DEVICE_TABLE(of, ads131e08_matches);
| ^~~~~~~~~~~~~~~~~~~
vim +804 drivers/iio/adc/ti-ads131e08.c
798
799 static const struct of_device_id ads131e08_of_match[] = {
800 { .compatible = "ti,ads131e04", },
801 { .compatible = "ti,ads131e08", },
802 {}
803 };
> 804 MODULE_DEVICE_TABLE(of, ads131e08_matches);
805
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH] Staging: android: ashmem: Fixed a coding style issue.
by kernel test robot
Hi Vishawanath,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Vishawanath-Jadhav/Staging-andro...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 1de16e38f1fdbfd9d842a06919098813ed93abf7
config: powerpc64-randconfig-r001-20201129 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project f502b14d40e751fe00afc493ef0d08f196524886)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/b135b8b40f7a0f0a8ac6a6d5e083af1e2...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vishawanath-Jadhav/Staging-android-ashmem-Fixed-a-coding-style-issue/20201129-060817
git checkout b135b8b40f7a0f0a8ac6a6d5e083af1e2535ff10
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
>> drivers/staging/android/ashmem.c:430:16: error: cannot assign to variable 'vmfile_fops' with const-qualified type 'const struct file_operations'
vmfile_fops = *vmfile->f_op;
~~~~~~~~~~~ ^
drivers/staging/android/ashmem.c:379:38: note: variable 'vmfile_fops' declared const here
static const struct file_operations vmfile_fops;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
drivers/staging/android/ashmem.c:431:21: error: cannot assign to variable 'vmfile_fops' with const-qualified type 'const struct file_operations'
vmfile_fops.mmap = ashmem_vmfile_mmap;
~~~~~~~~~~~~~~~~ ^
drivers/staging/android/ashmem.c:379:38: note: variable 'vmfile_fops' declared const here
static const struct file_operations vmfile_fops;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
drivers/staging/android/ashmem.c:432:34: error: cannot assign to variable 'vmfile_fops' with const-qualified type 'const struct file_operations'
vmfile_fops.get_unmapped_area =
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
drivers/staging/android/ashmem.c:379:38: note: variable 'vmfile_fops' declared const here
static const struct file_operations vmfile_fops;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
3 errors generated.
vim +430 drivers/staging/android/ashmem.c
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 376
11980c2ac4ccfad Robert Love 2011-12-20 377 static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
11980c2ac4ccfad Robert Love 2011-12-20 378 {
b135b8b40f7a0f0 Vishawanath Jadhav 2020-11-28 379 static const struct file_operations vmfile_fops;
11980c2ac4ccfad Robert Love 2011-12-20 380 struct ashmem_area *asma = file->private_data;
11980c2ac4ccfad Robert Love 2011-12-20 381 int ret = 0;
11980c2ac4ccfad Robert Love 2011-12-20 382
11980c2ac4ccfad Robert Love 2011-12-20 383 mutex_lock(&ashmem_mutex);
11980c2ac4ccfad Robert Love 2011-12-20 384
11980c2ac4ccfad Robert Love 2011-12-20 385 /* user needs to SET_SIZE before mapping */
59848d6aded59a6 Alistair Strachan 2018-06-19 386 if (!asma->size) {
11980c2ac4ccfad Robert Love 2011-12-20 387 ret = -EINVAL;
11980c2ac4ccfad Robert Love 2011-12-20 388 goto out;
11980c2ac4ccfad Robert Love 2011-12-20 389 }
11980c2ac4ccfad Robert Love 2011-12-20 390
8632c614565d0c5 Alistair Strachan 2018-06-19 391 /* requested mapping size larger than object size */
8632c614565d0c5 Alistair Strachan 2018-06-19 392 if (vma->vm_end - vma->vm_start > PAGE_ALIGN(asma->size)) {
11980c2ac4ccfad Robert Love 2011-12-20 393 ret = -EINVAL;
11980c2ac4ccfad Robert Love 2011-12-20 394 goto out;
11980c2ac4ccfad Robert Love 2011-12-20 395 }
11980c2ac4ccfad Robert Love 2011-12-20 396
11980c2ac4ccfad Robert Love 2011-12-20 397 /* requested protection bits must match our allowed protection mask */
59848d6aded59a6 Alistair Strachan 2018-06-19 398 if ((vma->vm_flags & ~calc_vm_prot_bits(asma->prot_mask, 0)) &
59848d6aded59a6 Alistair Strachan 2018-06-19 399 calc_vm_prot_bits(PROT_MASK, 0)) {
11980c2ac4ccfad Robert Love 2011-12-20 400 ret = -EPERM;
11980c2ac4ccfad Robert Love 2011-12-20 401 goto out;
11980c2ac4ccfad Robert Love 2011-12-20 402 }
56f76fc68492af7 Arve Hjønnevåg 2011-12-20 403 vma->vm_flags &= ~calc_vm_may_flags(~asma->prot_mask);
11980c2ac4ccfad Robert Love 2011-12-20 404
11980c2ac4ccfad Robert Love 2011-12-20 405 if (!asma->file) {
11980c2ac4ccfad Robert Love 2011-12-20 406 char *name = ASHMEM_NAME_DEF;
11980c2ac4ccfad Robert Love 2011-12-20 407 struct file *vmfile;
3e338d3c95c735d Suren Baghdasaryan 2020-07-30 408 struct inode *inode;
11980c2ac4ccfad Robert Love 2011-12-20 409
11980c2ac4ccfad Robert Love 2011-12-20 410 if (asma->name[ASHMEM_NAME_PREFIX_LEN] != '\0')
11980c2ac4ccfad Robert Love 2011-12-20 411 name = asma->name;
11980c2ac4ccfad Robert Love 2011-12-20 412
11980c2ac4ccfad Robert Love 2011-12-20 413 /* ... and allocate the backing shmem file */
11980c2ac4ccfad Robert Love 2011-12-20 414 vmfile = shmem_file_setup(name, asma->size, vma->vm_flags);
7f44cb0ba88b40c Viresh Kumar 2015-07-31 415 if (IS_ERR(vmfile)) {
11980c2ac4ccfad Robert Love 2011-12-20 416 ret = PTR_ERR(vmfile);
11980c2ac4ccfad Robert Love 2011-12-20 417 goto out;
11980c2ac4ccfad Robert Love 2011-12-20 418 }
97fbfef6bd59788 Shuxiao Zhang 2017-04-06 419 vmfile->f_mode |= FMODE_LSEEK;
3e338d3c95c735d Suren Baghdasaryan 2020-07-30 420 inode = file_inode(vmfile);
3e338d3c95c735d Suren Baghdasaryan 2020-07-30 421 lockdep_set_class(&inode->i_rwsem, &backing_shmem_inode_class);
11980c2ac4ccfad Robert Love 2011-12-20 422 asma->file = vmfile;
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 423 /*
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 424 * override mmap operation of the vmfile so that it can't be
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 425 * remapped which would lead to creation of a new vma with no
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 426 * asma permission checks. Have to override get_unmapped_area
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 427 * as well to prevent VM_BUG_ON check for f_ops modification.
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 428 */
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 429 if (!vmfile_fops.mmap) {
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 @430 vmfile_fops = *vmfile->f_op;
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 431 vmfile_fops.mmap = ashmem_vmfile_mmap;
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 432 vmfile_fops.get_unmapped_area =
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 433 ashmem_vmfile_get_unmapped_area;
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 434 }
6d67b0290b4b84c Suren Baghdasaryan 2020-01-27 435 vmfile->f_op = &vmfile_fops;
11980c2ac4ccfad Robert Love 2011-12-20 436 }
11980c2ac4ccfad Robert Love 2011-12-20 437 get_file(asma->file);
11980c2ac4ccfad Robert Love 2011-12-20 438
11980c2ac4ccfad Robert Love 2011-12-20 439 /*
11980c2ac4ccfad Robert Love 2011-12-20 440 * XXX - Reworked to use shmem_zero_setup() instead of
11980c2ac4ccfad Robert Love 2011-12-20 441 * shmem_set_file while we're in staging. -jstultz
11980c2ac4ccfad Robert Love 2011-12-20 442 */
11980c2ac4ccfad Robert Love 2011-12-20 443 if (vma->vm_flags & VM_SHARED) {
11980c2ac4ccfad Robert Love 2011-12-20 444 ret = shmem_zero_setup(vma);
11980c2ac4ccfad Robert Love 2011-12-20 445 if (ret) {
11980c2ac4ccfad Robert Love 2011-12-20 446 fput(asma->file);
11980c2ac4ccfad Robert Love 2011-12-20 447 goto out;
11980c2ac4ccfad Robert Love 2011-12-20 448 }
44960f2a7b63e22 John Stultz 2018-07-31 449 } else {
44960f2a7b63e22 John Stultz 2018-07-31 450 vma_set_anonymous(vma);
11980c2ac4ccfad Robert Love 2011-12-20 451 }
11980c2ac4ccfad Robert Love 2011-12-20 452
11980c2ac4ccfad Robert Love 2011-12-20 453 if (vma->vm_file)
11980c2ac4ccfad Robert Love 2011-12-20 454 fput(vma->vm_file);
11980c2ac4ccfad Robert Love 2011-12-20 455 vma->vm_file = asma->file;
11980c2ac4ccfad Robert Love 2011-12-20 456
11980c2ac4ccfad Robert Love 2011-12-20 457 out:
11980c2ac4ccfad Robert Love 2011-12-20 458 mutex_unlock(&ashmem_mutex);
11980c2ac4ccfad Robert Love 2011-12-20 459 return ret;
11980c2ac4ccfad Robert Love 2011-12-20 460 }
11980c2ac4ccfad Robert Love 2011-12-20 461
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
kernel/livepatch/../sched/sched.h:1619:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c84e1efae022071a4fcf9f1899bf71777c49943a
commit: 4104a562e0ca62e971089db9d3c47794a0d7d4eb sched/core: Annotate curr pointer in rq with __rcu
date: 10 months ago
config: x86_64-randconfig-s031-20201129 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-151-g540c2c4b-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 4104a562e0ca62e971089db9d3c47794a0d7d4eb
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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 >>)"
kernel/livepatch/transition.c: note: in included file:
>> kernel/livepatch/../sched/sched.h:1619:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/livepatch/../sched/sched.h:1619:25: sparse: struct task_struct [noderef] <asn:4> *
>> kernel/livepatch/../sched/sched.h:1619:25: sparse: struct task_struct *
vim +1619 kernel/livepatch/../sched/sched.h
029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1616
029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1617 static inline int task_current(struct rq *rq, struct task_struct *p)
029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1618 {
029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 @1619 return rq->curr == p;
029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1620 }
029632fbb7b7c9 kernel/sched.h Peter Zijlstra 2011-10-25 1621
:::::: The code at line 1619 was first introduced by commit
:::::: 029632fbb7b7c9d85063cc9eb470de6c54873df3 sched: Make separate sched*.c translation units
:::::: TO: Peter Zijlstra <a.p.zijlstra(a)chello.nl>
:::::: CC: Ingo Molnar <mingo(a)elte.hu>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
drivers/net/wireless/ath/ath11k/ahb.c:938:15: warning: cast to smaller integer type 'enum ath11k_hw_rev' from 'const void
by kernel test robot
Hi Carl,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c84e1efae022071a4fcf9f1899bf71777c49943a
commit: 322b60ceb0f321b4b9c41717f7306c0dbaf0279b ath11k: do not depend on ARCH_QCOM for ath11k
date: 3 months ago
config: x86_64-randconfig-r013-20201128 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 979bcbd3a6f7ea784f2098ad4cf613fbd6b09e38)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://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 322b60ceb0f321b4b9c41717f7306c0dbaf0279b
# 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 >>):
>> drivers/net/wireless/ath/ath11k/ahb.c:938:15: warning: cast to smaller integer type 'enum ath11k_hw_rev' from 'const void *' [-Wvoid-pointer-to-enum-cast]
ab->hw_rev = (enum ath11k_hw_rev)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +938 drivers/net/wireless/ath/ath11k/ahb.c
31858805f91ac79 Govind Singh 2020-05-08 903
d5c65159f289537 Kalle Valo 2019-11-23 904 static int ath11k_ahb_probe(struct platform_device *pdev)
d5c65159f289537 Kalle Valo 2019-11-23 905 {
d5c65159f289537 Kalle Valo 2019-11-23 906 struct ath11k_base *ab;
d5c65159f289537 Kalle Valo 2019-11-23 907 const struct of_device_id *of_id;
d5c65159f289537 Kalle Valo 2019-11-23 908 struct resource *mem_res;
d5c65159f289537 Kalle Valo 2019-11-23 909 void __iomem *mem;
d5c65159f289537 Kalle Valo 2019-11-23 910 int ret;
d5c65159f289537 Kalle Valo 2019-11-23 911
d5c65159f289537 Kalle Valo 2019-11-23 912 of_id = of_match_device(ath11k_ahb_of_match, &pdev->dev);
d5c65159f289537 Kalle Valo 2019-11-23 913 if (!of_id) {
d5c65159f289537 Kalle Valo 2019-11-23 914 dev_err(&pdev->dev, "failed to find matching device tree id\n");
d5c65159f289537 Kalle Valo 2019-11-23 915 return -EINVAL;
d5c65159f289537 Kalle Valo 2019-11-23 916 }
d5c65159f289537 Kalle Valo 2019-11-23 917
c8ffcd122760612 Wei Yongjun 2020-05-08 918 mem = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res);
d5c65159f289537 Kalle Valo 2019-11-23 919 if (IS_ERR(mem)) {
d5c65159f289537 Kalle Valo 2019-11-23 920 dev_err(&pdev->dev, "ioremap error\n");
d5c65159f289537 Kalle Valo 2019-11-23 921 return PTR_ERR(mem);
d5c65159f289537 Kalle Valo 2019-11-23 922 }
d5c65159f289537 Kalle Valo 2019-11-23 923
d5c65159f289537 Kalle Valo 2019-11-23 924 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
d5c65159f289537 Kalle Valo 2019-11-23 925 if (ret) {
d5c65159f289537 Kalle Valo 2019-11-23 926 dev_err(&pdev->dev, "failed to set 32-bit consistent dma\n");
d5c65159f289537 Kalle Valo 2019-11-23 927 return ret;
d5c65159f289537 Kalle Valo 2019-11-23 928 }
d5c65159f289537 Kalle Valo 2019-11-23 929
630ad41c195c706 Govind Singh 2020-05-08 930 ab = ath11k_core_alloc(&pdev->dev, 0, ATH11K_BUS_AHB);
d5c65159f289537 Kalle Valo 2019-11-23 931 if (!ab) {
d5c65159f289537 Kalle Valo 2019-11-23 932 dev_err(&pdev->dev, "failed to allocate ath11k base\n");
d5c65159f289537 Kalle Valo 2019-11-23 933 return -ENOMEM;
d5c65159f289537 Kalle Valo 2019-11-23 934 }
d5c65159f289537 Kalle Valo 2019-11-23 935
31858805f91ac79 Govind Singh 2020-05-08 936 ab->hif.ops = &ath11k_ahb_hif_ops;
d5c65159f289537 Kalle Valo 2019-11-23 937 ab->pdev = pdev;
d5c65159f289537 Kalle Valo 2019-11-23 @938 ab->hw_rev = (enum ath11k_hw_rev)of_id->data;
d5c65159f289537 Kalle Valo 2019-11-23 939 ab->mem = mem;
d5c65159f289537 Kalle Valo 2019-11-23 940 ab->mem_len = resource_size(mem_res);
d5c65159f289537 Kalle Valo 2019-11-23 941 platform_set_drvdata(pdev, ab);
d5c65159f289537 Kalle Valo 2019-11-23 942
d5c65159f289537 Kalle Valo 2019-11-23 943 ret = ath11k_hal_srng_init(ab);
d5c65159f289537 Kalle Valo 2019-11-23 944 if (ret)
d5c65159f289537 Kalle Valo 2019-11-23 945 goto err_core_free;
d5c65159f289537 Kalle Valo 2019-11-23 946
d5c65159f289537 Kalle Valo 2019-11-23 947 ret = ath11k_ce_alloc_pipes(ab);
d5c65159f289537 Kalle Valo 2019-11-23 948 if (ret) {
d5c65159f289537 Kalle Valo 2019-11-23 949 ath11k_err(ab, "failed to allocate ce pipes: %d\n", ret);
d5c65159f289537 Kalle Valo 2019-11-23 950 goto err_hal_srng_deinit;
d5c65159f289537 Kalle Valo 2019-11-23 951 }
d5c65159f289537 Kalle Valo 2019-11-23 952
d5c65159f289537 Kalle Valo 2019-11-23 953 ath11k_ahb_init_qmi_ce_config(ab);
d5c65159f289537 Kalle Valo 2019-11-23 954
166e22b38aa3bcd Anilkumar Kolli 2020-06-16 955 ret = ath11k_core_init(ab);
d5c65159f289537 Kalle Valo 2019-11-23 956 if (ret) {
166e22b38aa3bcd Anilkumar Kolli 2020-06-16 957 ath11k_err(ab, "failed to init core: %d\n", ret);
d5c65159f289537 Kalle Valo 2019-11-23 958 goto err_ce_free;
d5c65159f289537 Kalle Valo 2019-11-23 959 }
d5c65159f289537 Kalle Valo 2019-11-23 960
166e22b38aa3bcd Anilkumar Kolli 2020-06-16 961 ret = ath11k_ahb_config_irq(ab);
d5c65159f289537 Kalle Valo 2019-11-23 962 if (ret) {
166e22b38aa3bcd Anilkumar Kolli 2020-06-16 963 ath11k_err(ab, "failed to configure irq: %d\n", ret);
d5c65159f289537 Kalle Valo 2019-11-23 964 goto err_ce_free;
d5c65159f289537 Kalle Valo 2019-11-23 965 }
d5c65159f289537 Kalle Valo 2019-11-23 966
d5c65159f289537 Kalle Valo 2019-11-23 967 return 0;
d5c65159f289537 Kalle Valo 2019-11-23 968
d5c65159f289537 Kalle Valo 2019-11-23 969 err_ce_free:
d5c65159f289537 Kalle Valo 2019-11-23 970 ath11k_ce_free_pipes(ab);
d5c65159f289537 Kalle Valo 2019-11-23 971
d5c65159f289537 Kalle Valo 2019-11-23 972 err_hal_srng_deinit:
d5c65159f289537 Kalle Valo 2019-11-23 973 ath11k_hal_srng_deinit(ab);
d5c65159f289537 Kalle Valo 2019-11-23 974
d5c65159f289537 Kalle Valo 2019-11-23 975 err_core_free:
d5c65159f289537 Kalle Valo 2019-11-23 976 ath11k_core_free(ab);
d5c65159f289537 Kalle Valo 2019-11-23 977 platform_set_drvdata(pdev, NULL);
d5c65159f289537 Kalle Valo 2019-11-23 978
d5c65159f289537 Kalle Valo 2019-11-23 979 return ret;
d5c65159f289537 Kalle Valo 2019-11-23 980 }
d5c65159f289537 Kalle Valo 2019-11-23 981
:::::: The code at line 938 was first introduced by commit
:::::: d5c65159f2895379e11ca13f62feabe93278985d ath11k: driver for Qualcomm IEEE 802.11ax devices
:::::: TO: Kalle Valo <kvalo(a)codeaurora.org>
:::::: CC: Kalle Valo <kvalo(a)codeaurora.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[chrome-os:chromeos-5.4 20706/20905] include/linux/mman.h:133:9: error: division by zero is undefined
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 298ff1b22053a920877c0401aa380a68106926b5
commit: 466e94fec1f94f621c9e70fc89c05602fff4d32c [20706/20905] CHROMIUM: Merge 'v5.4.79' into chromeos-5.4
config: powerpc-randconfig-r013-20201128 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 979bcbd3a6f7ea784f2098ad4cf613fbd6b09e38)
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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 466e94fec1f94f621c9e70fc89c05602fff4d32c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
In file included from arch/powerpc/include/asm/kup.h:10:
arch/powerpc/include/asm/book3s/64/kup-radix.h:57:1: error: declaration specifier missing, defaulting to 'int' [-Werror]
DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
^
int
arch/powerpc/include/asm/book3s/64/kup-radix.h:57:26: error: a parameter list without types is only allowed in a function definition
DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
^
arch/powerpc/include/asm/book3s/64/kup-radix.h:111:6: error: implicit declaration of function 'static_branch_unlikely' [-Werror,-Wimplicit-function-declaration]
if (static_branch_unlikely(&uaccess_flush_key))
^
arch/powerpc/include/asm/book3s/64/kup-radix.h:111:30: error: use of undeclared identifier 'uaccess_flush_key'
if (static_branch_unlikely(&uaccess_flush_key))
^
In file included from arch/powerpc/kernel/asm-offsets.c:21:
>> include/linux/mman.h:133:9: error: division by zero is undefined [-Werror,-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:111:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
include/linux/mman.h:134:9: error: division by zero is undefined [-Werror,-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_SYNC, VM_SYNC );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:111:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
6 errors generated.
make[2]: *** [scripts/Makefile.build:98: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1147: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +133 include/linux/mman.h
^1da177e4c3f415 Linus Torvalds 2005-04-16 124
^1da177e4c3f415 Linus Torvalds 2005-04-16 125 /*
^1da177e4c3f415 Linus Torvalds 2005-04-16 126 * Combine the mmap "flags" argument into "vm_flags" used internally.
^1da177e4c3f415 Linus Torvalds 2005-04-16 127 */
^1da177e4c3f415 Linus Torvalds 2005-04-16 128 static inline unsigned long
^1da177e4c3f415 Linus Torvalds 2005-04-16 129 calc_vm_flag_bits(unsigned long flags)
^1da177e4c3f415 Linus Torvalds 2005-04-16 130 {
^1da177e4c3f415 Linus Torvalds 2005-04-16 131 return _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) |
^1da177e4c3f415 Linus Torvalds 2005-04-16 132 _calc_vm_trans(flags, MAP_DENYWRITE, VM_DENYWRITE ) |
b6fb293f2497a98 Jan Kara 2017-11-01 @133 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |
b6fb293f2497a98 Jan Kara 2017-11-01 134 _calc_vm_trans(flags, MAP_SYNC, VM_SYNC );
^1da177e4c3f415 Linus Torvalds 2005-04-16 135 }
00619bcc44d6b77 Jerome Marchand 2013-11-12 136
:::::: The code at line 133 was first introduced by commit
:::::: b6fb293f2497a9841d94f6b57bd2bb2cd222da43 mm: Define MAP_SYNC and VM_SYNC flags
:::::: TO: Jan Kara <jack(a)suse.cz>
:::::: CC: Dan Williams <dan.j.williams(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 8312/9080] fs/nfsd/nfs3xdr.c:299:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6174f05255e65622ff3340257879a4c0f858b0df
commit: 5d9a63c9a697c3d5dbf0a63d11da05ecc4c461fa [8312/9080] nfsd: skip some unnecessary stats in the v4 case
config: x86_64-randconfig-a012-20201128 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 979bcbd3a6f7ea784f2098ad4cf613fbd6b09e38)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 5d9a63c9a697c3d5dbf0a63d11da05ecc4c461fa
# 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 >>):
>> fs/nfsd/nfs3xdr.c:299:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (!v4 || !inode->i_sb->s_export_op->fetch_iversion)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/nfsd/nfs3xdr.c:304:6: note: uninitialized use occurs here
if (err) {
^~~
fs/nfsd/nfs3xdr.c:299:2: note: remove the 'if' if its condition is always true
if (!v4 || !inode->i_sb->s_export_op->fetch_iversion)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/nfsd/nfs3xdr.c:293:12: note: initialize the variable 'err' to silence this warning
__be32 err;
^
= 0
1 warning generated.
vim +299 fs/nfsd/nfs3xdr.c
285
286 /*
287 * Fill in the post_op attr for the wcc data
288 */
289 void fill_post_wcc(struct svc_fh *fhp)
290 {
291 bool v4 = (fhp->fh_maxsize == NFS4_FHSIZE);
292 struct inode *inode = d_inode(fhp->fh_dentry);
293 __be32 err;
294
295 if (fhp->fh_post_saved)
296 printk("nfsd: inode locked twice during operation.\n");
297
298
> 299 if (!v4 || !inode->i_sb->s_export_op->fetch_iversion)
300 err = fh_getattr(fhp, &fhp->fh_post_attr);
301 if (v4)
302 fhp->fh_post_change =
303 nfsd4_change_attribute(&fhp->fh_post_attr, inode);
304 if (err) {
305 fhp->fh_post_saved = false;
306 /* Grab the ctime anyway - set_change_info might use it */
307 fhp->fh_post_attr.ctime = inode->i_ctime;
308 } else
309 fhp->fh_post_saved = true;
310 }
311
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months