[jirislaby:devel 67/107] drivers/tty/mxser.c:1401:5: warning: no previous prototype for function 'mxser_ioctl_op_mode'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: ab00d8ca266aab3b71f64266a2351dfce6baadfb
commit: 998695ea4c020601bfa37c3cb6559e48c420b286 [67/107] extract mxser_ioctl_op_mode
config: x86_64-randconfig-a006-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project fcc1ce00931751ac02498986feb37744e9ace8de)
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/jirislaby/linux.git/commi...
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout 998695ea4c020601bfa37c3cb6559e48c420b286
# 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/tty/mxser.c:1401:5: warning: no previous prototype for function 'mxser_ioctl_op_mode' [-Wmissing-prototypes]
int mxser_ioctl_op_mode(struct mxser_port *port, int index, bool set,
^
drivers/tty/mxser.c:1401:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int mxser_ioctl_op_mode(struct mxser_port *port, int index, bool set,
^
static
1 warning generated.
vim +/mxser_ioctl_op_mode +1401 drivers/tty/mxser.c
1399
1400 /* We should likely switch to TIOCGRS485/TIOCSRS485. */
> 1401 int mxser_ioctl_op_mode(struct mxser_port *port, int index, bool set,
1402 int __user *u_opmode)
1403 {
1404 static const unsigned char ModeMask[] = { 0xfc, 0xf3, 0xcf, 0x3f };
1405 int opmode, p = index % 4;
1406 int shiftbit = p * 2;
1407 unsigned char val, mask;
1408
1409 if (port->board->chip_flag != MOXA_MUST_MU860_HWID)
1410 return -EFAULT;
1411
1412 if (set) {
1413 if (get_user(opmode, u_opmode))
1414 return -EFAULT;
1415
1416 if (opmode != RS232_MODE && opmode != RS485_2WIRE_MODE &&
1417 opmode != RS422_MODE &&
1418 opmode != RS485_4WIRE_MODE)
1419 return -EFAULT;
1420
1421 mask = ModeMask[p];
1422
1423 spin_lock_irq(&port->slock);
1424 val = inb(port->opmode_ioaddr);
1425 val &= mask;
1426 val |= (opmode << shiftbit);
1427 outb(val, port->opmode_ioaddr);
1428 spin_unlock_irq(&port->slock);
1429 } else {
1430 spin_lock_irq(&port->slock);
1431 opmode = inb(port->opmode_ioaddr) >> shiftbit;
1432 spin_unlock_irq(&port->slock);
1433
1434 opmode &= OP_MODE_MASK;
1435 if (put_user(opmode, u_opmode))
1436 return -EFAULT;
1437 }
1438
1439 return 0;
1440 }
1441
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[arnd-playground:randconfig-v5.12 323/597] include/linux/compat.h:619:18: warning: 'struct compat_stat' declared inside parameter list will not be visible outside of this definition or declaration
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: c43a5a05c0cd6cc79fa4cf9400d94faf4f663b6f [323/597] fixup warnings
config: sparc64-randconfig-r023-20210318 (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
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-v5.12
git checkout c43a5a05c0cd6cc79fa4cf9400d94faf4f663b6f
# 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 drivers/hwtracing/stm/core.c:15:
>> include/linux/compat.h:619:18: warning: 'struct compat_stat' declared inside parameter list will not be visible outside of this definition or declaration
619 | struct compat_stat __user *statbuf,
| ^~~~~~~~~~~
include/linux/compat.h:622:16: warning: 'struct compat_stat' declared inside parameter list will not be visible outside of this definition or declaration
622 | struct compat_stat __user *statbuf);
| ^~~~~~~~~~~
include/linux/compat.h:837:15: warning: 'struct compat_stat' declared inside parameter list will not be visible outside of this definition or declaration
837 | struct compat_stat __user *statbuf);
| ^~~~~~~~~~~
include/linux/compat.h:839:16: warning: 'struct compat_stat' declared inside parameter list will not be visible outside of this definition or declaration
839 | struct compat_stat __user *statbuf);
| ^~~~~~~~~~~
vim +619 include/linux/compat.h
c679a08983db7c1 Dominik Brodowski 2018-03-25 582
c679a08983db7c1 Dominik Brodowski 2018-03-25 583 /* fs/sendfile.c */
c679a08983db7c1 Dominik Brodowski 2018-03-25 584 asmlinkage long compat_sys_sendfile(int out_fd, int in_fd,
c679a08983db7c1 Dominik Brodowski 2018-03-25 585 compat_off_t __user *offset, compat_size_t count);
c679a08983db7c1 Dominik Brodowski 2018-03-25 586 asmlinkage long compat_sys_sendfile64(int out_fd, int in_fd,
c679a08983db7c1 Dominik Brodowski 2018-03-25 587 compat_loff_t __user *offset, compat_size_t count);
c679a08983db7c1 Dominik Brodowski 2018-03-25 588
c679a08983db7c1 Dominik Brodowski 2018-03-25 589 /* fs/select.c */
8dabe7245bbc134 Arnd Bergmann 2019-01-07 590 asmlinkage long compat_sys_pselect6_time32(int n, compat_ulong_t __user *inp,
be84cb43833ee40 Chris Metcalf 2011-05-09 591 compat_ulong_t __user *outp,
be84cb43833ee40 Chris Metcalf 2011-05-09 592 compat_ulong_t __user *exp,
9afc5eee65ca7d7 Arnd Bergmann 2018-07-13 593 struct old_timespec32 __user *tsp,
be84cb43833ee40 Chris Metcalf 2011-05-09 594 void __user *sig);
e024707bccae15a Deepa Dinamani 2018-09-19 595 asmlinkage long compat_sys_pselect6_time64(int n, compat_ulong_t __user *inp,
e024707bccae15a Deepa Dinamani 2018-09-19 596 compat_ulong_t __user *outp,
e024707bccae15a Deepa Dinamani 2018-09-19 597 compat_ulong_t __user *exp,
e024707bccae15a Deepa Dinamani 2018-09-19 598 struct __kernel_timespec __user *tsp,
e024707bccae15a Deepa Dinamani 2018-09-19 599 void __user *sig);
8dabe7245bbc134 Arnd Bergmann 2019-01-07 600 asmlinkage long compat_sys_ppoll_time32(struct pollfd __user *ufds,
be84cb43833ee40 Chris Metcalf 2011-05-09 601 unsigned int nfds,
9afc5eee65ca7d7 Arnd Bergmann 2018-07-13 602 struct old_timespec32 __user *tsp,
be84cb43833ee40 Chris Metcalf 2011-05-09 603 const compat_sigset_t __user *sigmask,
be84cb43833ee40 Chris Metcalf 2011-05-09 604 compat_size_t sigsetsize);
8bd27a3004e80d3 Deepa Dinamani 2018-09-19 605 asmlinkage long compat_sys_ppoll_time64(struct pollfd __user *ufds,
8bd27a3004e80d3 Deepa Dinamani 2018-09-19 606 unsigned int nfds,
8bd27a3004e80d3 Deepa Dinamani 2018-09-19 607 struct __kernel_timespec __user *tsp,
8bd27a3004e80d3 Deepa Dinamani 2018-09-19 608 const compat_sigset_t __user *sigmask,
8bd27a3004e80d3 Deepa Dinamani 2018-09-19 609 compat_size_t sigsetsize);
c679a08983db7c1 Dominik Brodowski 2018-03-25 610
c679a08983db7c1 Dominik Brodowski 2018-03-25 611 /* fs/signalfd.c */
be84cb43833ee40 Chris Metcalf 2011-05-09 612 asmlinkage long compat_sys_signalfd4(int ufd,
be84cb43833ee40 Chris Metcalf 2011-05-09 613 const compat_sigset_t __user *sigmask,
be84cb43833ee40 Chris Metcalf 2011-05-09 614 compat_size_t sigsetsize, int flags);
be84cb43833ee40 Chris Metcalf 2011-05-09 615
c679a08983db7c1 Dominik Brodowski 2018-03-25 616 /* fs/stat.c */
c679a08983db7c1 Dominik Brodowski 2018-03-25 617 asmlinkage long compat_sys_newfstatat(unsigned int dfd,
c679a08983db7c1 Dominik Brodowski 2018-03-25 618 const char __user *filename,
c679a08983db7c1 Dominik Brodowski 2018-03-25 @619 struct compat_stat __user *statbuf,
c679a08983db7c1 Dominik Brodowski 2018-03-25 620 int flag);
c679a08983db7c1 Dominik Brodowski 2018-03-25 621 asmlinkage long compat_sys_newfstat(unsigned int fd,
c679a08983db7c1 Dominik Brodowski 2018-03-25 622 struct compat_stat __user *statbuf);
c679a08983db7c1 Dominik Brodowski 2018-03-25 623
:::::: The code at line 619 was first introduced by commit
:::::: c679a08983db7c1eb09930570b92ff7c9fd59c1c syscalls: sort syscall prototypes in include/linux/compat.h
:::::: TO: Dominik Brodowski <linux(a)dominikbrodowski.net>
:::::: CC: Dominik Brodowski <linux(a)dominikbrodowski.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[arnd-playground:randconfig-v5.12 323/597] arch/powerpc/kernel/vdso32/vgettimeofday.c:7:5: error: conflicting types for '__c_kernel_clock_gettime'
by kernel test robot
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: c43a5a05c0cd6cc79fa4cf9400d94faf4f663b6f [323/597] fixup warnings
config: powerpc64-randconfig-r004-20210318 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project fcc1ce00931751ac02498986feb37744e9ace8de)
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://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-v5.12
git checkout c43a5a05c0cd6cc79fa4cf9400d94faf4f663b6f
# 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 error/warnings (new ones prefixed by >>):
>> clang-13: warning: -Wl,-a32: 'linker' input unused [-Wunused-command-line-argument]
clang-13: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
--
>> clang-13: warning: -Wl,-soname=linux-vdso32.so.1: 'linker' input unused [-Wunused-command-line-argument]
>> clang-13: warning: -Wl,--hash-style=both: 'linker' input unused [-Wunused-command-line-argument]
clang-13: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument]
In file included from <built-in>:3:
In file included from lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
>> arch/powerpc/include/asm/vdso/gettimeofday.h:137:55: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
^
arch/powerpc/include/asm/vdso/gettimeofday.h:143:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
^
arch/powerpc/include/asm/vdso/gettimeofday.h:202:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:206:56: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:5: error: conflicting types for '__c_kernel_clock_gettime'
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:202:5: note: previous declaration is here
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: error: implicit declaration of function '__cvdso_clock_gettime32_data' [-Werror,-Wimplicit-function-declaration]
return __cvdso_clock_gettime32_data(vd, clock, ts);
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: note: did you mean '__cvdso_clock_gettime_data'?
lib/vdso/gettimeofday.c:252:1: note: '__cvdso_clock_gettime_data' declared here
__cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock,
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:25:56: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:25:5: error: conflicting types for '__c_kernel_clock_getres'
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:206:5: note: previous declaration is here
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: error: implicit declaration of function '__cvdso_clock_getres_time32_data' [-Werror,-Wimplicit-function-declaration]
return __cvdso_clock_getres_time32_data(vd, clock_id, res);
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: note: did you mean '__cvdso_clock_gettime_data'?
lib/vdso/gettimeofday.c:252:1: note: '__cvdso_clock_gettime_data' declared here
__cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock,
^
6 warnings and 4 errors generated.
--
>> clang-13: warning: -Wl,-soname=linux-vdso32.so.1: 'linker' input unused [-Wunused-command-line-argument]
>> clang-13: warning: -Wl,--hash-style=both: 'linker' input unused [-Wunused-command-line-argument]
clang-13: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument]
In file included from <built-in>:3:
In file included from lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
>> arch/powerpc/include/asm/vdso/gettimeofday.h:137:55: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
^
arch/powerpc/include/asm/vdso/gettimeofday.h:143:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
^
arch/powerpc/include/asm/vdso/gettimeofday.h:202:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:206:56: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:5: error: conflicting types for '__c_kernel_clock_gettime'
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:202:5: note: previous declaration is here
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: error: implicit declaration of function '__cvdso_clock_gettime32_data' [-Werror,-Wimplicit-function-declaration]
return __cvdso_clock_gettime32_data(vd, clock, ts);
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: note: did you mean '__cvdso_clock_gettime_data'?
lib/vdso/gettimeofday.c:252:1: note: '__cvdso_clock_gettime_data' declared here
__cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock,
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:25:56: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:25:5: error: conflicting types for '__c_kernel_clock_getres'
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:206:5: note: previous declaration is here
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: error: implicit declaration of function '__cvdso_clock_getres_time32_data' [-Werror,-Wimplicit-function-declaration]
return __cvdso_clock_getres_time32_data(vd, clock_id, res);
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: note: did you mean '__cvdso_clock_gettime_data'?
lib/vdso/gettimeofday.c:252:1: note: '__cvdso_clock_gettime_data' declared here
__cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock,
^
6 warnings and 4 errors generated.
make[2]: *** [arch/powerpc/kernel/vdso32/Makefile:57: arch/powerpc/kernel/vdso32/vgettimeofday.o] Error 1
make[2]: Target 'include/generated/vdso32-offsets.h' not remade because of errors.
make[1]: *** [arch/powerpc/Makefile:423: vdso_prepare] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:14:
In file included from include/linux/sem.h:5:
In file included from include/uapi/linux/sem.h:5:
In file included from include/linux/ipc.h:5:
In file included from include/linux/spinlock.h:90:
In file included from arch/powerpc/include/asm/spinlock.h:7:
arch/powerpc/include/asm/qspinlock.h:40:49: warning: passing 'u32 *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (likely(atomic_try_cmpxchg_lock(&lock->val, &val, _Q_LOCKED_VAL)))
^~~~
include/linux/compiler.h:77:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
arch/powerpc/include/asm/atomic.h:202:43: note: passing argument to parameter 'old' here
atomic_try_cmpxchg_lock(atomic_t *v, int *old, int new)
^
In file included from arch/powerpc/kernel/asm-offsets.c:39:
In file included from arch/powerpc/include/asm/dbell.h:17:
In file included from arch/powerpc/include/asm/kvm_ppc.h:19:
In file included from include/linux/kvm_host.h:37:
In file included from arch/powerpc/include/asm/kvm_host.h:26:
arch/powerpc/include/asm/hvcall.h:625:41: warning: field 'params' with variable sized type 'struct hv_get_perf_counter_info_params' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct hv_get_perf_counter_info_params params;
^
2 warnings generated.
clang-13clang-13: : warning: warning: -Wl,-a32: 'linker' input unused [-Wunused-command-line-argument]
-Wl,-a32: 'linker' input unused [-Wunused-command-line-argument]
clang-13clang-13: : warning: -Wl,-a32: 'linker' input unused [-Wunused-command-line-argument]
warning: -Wl,-a32: 'linker' input unused [-Wunused-command-line-argument]
clang-13: clang-13warning: : argument unused during compilation: '-s' [-Wunused-command-line-argument]
warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
clang-13: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
clang-13: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
>> clang-13: warning: -Wl,-a32: 'linker' input unused [-Wunused-command-line-argument]
clang-13: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
>> clang-13: warning: -Wl,-soname=linux-vdso32.so.1: 'linker' input unused [-Wunused-command-line-argument]
>> clang-13: warning: -Wl,--hash-style=both: 'linker' input unused [-Wunused-command-line-argument]
clang-13: warning: argument unused during compilation: '-shared' [-Wunused-command-line-argument]
In file included from <built-in>:3:
In file included from lib/vdso/gettimeofday.c:5:
In file included from include/vdso/datapage.h:137:
>> arch/powerpc/include/asm/vdso/gettimeofday.h:137:55: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
^
arch/powerpc/include/asm/vdso/gettimeofday.h:143:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
^
arch/powerpc/include/asm/vdso/gettimeofday.h:202:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:206:56: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:54: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:5: error: conflicting types for '__c_kernel_clock_gettime'
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:202:5: note: previous declaration is here
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: error: implicit declaration of function '__cvdso_clock_gettime32_data' [-Werror,-Wimplicit-function-declaration]
return __cvdso_clock_gettime32_data(vd, clock, ts);
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: note: did you mean '__cvdso_clock_gettime_data'?
lib/vdso/gettimeofday.c:252:1: note: '__cvdso_clock_gettime_data' declared here
__cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock,
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:25:56: warning: declaration of 'struct old_timespec32' will not be visible outside of this function [-Wvisibility]
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:25:5: error: conflicting types for '__c_kernel_clock_getres'
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
arch/powerpc/include/asm/vdso/gettimeofday.h:206:5: note: previous declaration is here
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
^
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: error: implicit declaration of function '__cvdso_clock_getres_time32_data' [-Werror,-Wimplicit-function-declaration]
return __cvdso_clock_getres_time32_data(vd, clock_id, res);
^
arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: note: did you mean '__cvdso_clock_gettime_data'?
lib/vdso/gettimeofday.c:252:1: note: '__cvdso_clock_gettime_data' declared here
__cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock,
^
6 warnings and 4 errors generated.
make[2]: *** [arch/powerpc/kernel/vdso32/Makefile:57: arch/powerpc/kernel/vdso32/vgettimeofday.o] Error 1
make[2]: Target 'include/generated/vdso32-offsets.h' not remade because of errors.
make[1]: *** [arch/powerpc/Makefile:423: vdso_prepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/__c_kernel_clock_gettime +7 arch/powerpc/kernel/vdso32/vgettimeofday.c
ce7d8056e38b77 Christophe Leroy 2020-11-27 6
ce7d8056e38b77 Christophe Leroy 2020-11-27 @7 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
ce7d8056e38b77 Christophe Leroy 2020-11-27 8 const struct vdso_data *vd)
ce7d8056e38b77 Christophe Leroy 2020-11-27 9 {
ce7d8056e38b77 Christophe Leroy 2020-11-27 @10 return __cvdso_clock_gettime32_data(vd, clock, ts);
ce7d8056e38b77 Christophe Leroy 2020-11-27 11 }
ce7d8056e38b77 Christophe Leroy 2020-11-27 12
d0e3fc69d00d1f Christophe Leroy 2020-11-27 13 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
d0e3fc69d00d1f Christophe Leroy 2020-11-27 14 const struct vdso_data *vd)
d0e3fc69d00d1f Christophe Leroy 2020-11-27 15 {
d0e3fc69d00d1f Christophe Leroy 2020-11-27 16 return __cvdso_clock_gettime_data(vd, clock, ts);
d0e3fc69d00d1f Christophe Leroy 2020-11-27 17 }
d0e3fc69d00d1f Christophe Leroy 2020-11-27 18
ce7d8056e38b77 Christophe Leroy 2020-11-27 19 int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz,
ce7d8056e38b77 Christophe Leroy 2020-11-27 20 const struct vdso_data *vd)
ce7d8056e38b77 Christophe Leroy 2020-11-27 21 {
ce7d8056e38b77 Christophe Leroy 2020-11-27 22 return __cvdso_gettimeofday_data(vd, tv, tz);
ce7d8056e38b77 Christophe Leroy 2020-11-27 23 }
ce7d8056e38b77 Christophe Leroy 2020-11-27 24
ce7d8056e38b77 Christophe Leroy 2020-11-27 @25 int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
ce7d8056e38b77 Christophe Leroy 2020-11-27 26 const struct vdso_data *vd)
ce7d8056e38b77 Christophe Leroy 2020-11-27 27 {
ce7d8056e38b77 Christophe Leroy 2020-11-27 @28 return __cvdso_clock_getres_time32_data(vd, clock_id, res);
ce7d8056e38b77 Christophe Leroy 2020-11-27 29 }
ce7d8056e38b77 Christophe Leroy 2020-11-27 30
:::::: The code at line 7 was first introduced by commit
:::::: ce7d8056e38b770f070fc4499c577322b6ccb9c7 powerpc/vdso: Prepare for switching VDSO to generic C implementation.
:::::: TO: Christophe Leroy <christophe.leroy(a)csgroup.eu>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH v3 3/3] iio: adc: add ADC driver for the TI TSC2046 controller
by kernel test robot
Hi Oleksij,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.12-rc3 next-20210319]
[cannot apply to iio/togreg]
[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/Oleksij-Rempel/mainline-ti-tsc20...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a74e6a014c9d4d4161061f770c9b4f98372ac778
config: ia64-allmodconfig (attached as .config)
compiler: ia64-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/63e96b25ae609f5659a28132f77d353cc...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Oleksij-Rempel/mainline-ti-tsc2046-adc-driver/20210319-224746
git checkout 63e96b25ae609f5659a28132f77d353cc7ecbd84
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 include/linux/device.h:15,
from include/linux/spi/spi.h:10,
from drivers/iio/adc/ti-tsc2046.c:11:
drivers/iio/adc/ti-tsc2046.c: In function 'tsc2046_adc_probe':
>> drivers/iio/adc/ti-tsc2046.c:621:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
621 | dev_err(dev, "SPI max_speed_hz is too high: %d Hz. Max supported freq is %d Hz\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/iio/adc/ti-tsc2046.c:621:3: note: in expansion of macro 'dev_err'
621 | dev_err(dev, "SPI max_speed_hz is too high: %d Hz. Max supported freq is %d Hz\n",
| ^~~~~~~
drivers/iio/adc/ti-tsc2046.c:621:77: note: format string is defined here
621 | dev_err(dev, "SPI max_speed_hz is too high: %d Hz. Max supported freq is %d Hz\n",
| ~^
| |
| int
| %ld
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
vim +621 drivers/iio/adc/ti-tsc2046.c
609
610 static int tsc2046_adc_probe(struct spi_device *spi)
611 {
612 const struct tsc2046_adc_dcfg *dcfg;
613 struct device *dev = &spi->dev;
614 struct tsc2046_adc_priv *priv;
615 struct iio_dev *indio_dev;
616 struct iio_trigger *trig;
617 const char *name;
618 int ret;
619
620 if (spi->max_speed_hz > TI_TSC2046_MAX_CLK_FREQ) {
> 621 dev_err(dev, "SPI max_speed_hz is too high: %d Hz. Max supported freq is %d Hz\n",
622 spi->max_speed_hz, TI_TSC2046_MAX_CLK_FREQ);
623 return -EINVAL;
624 }
625
626 dcfg = device_get_match_data(dev);
627 if (!dcfg)
628 return -EINVAL;
629
630 spi->bits_per_word = 8;
631 spi->mode &= ~SPI_MODE_X_MASK;
632 spi->mode |= SPI_MODE_0;
633 ret = spi_setup(spi);
634 if (ret < 0)
635 return dev_err_probe(dev, ret, "Error in spi setup\n");
636
637 indio_dev = devm_iio_device_alloc(dev, sizeof(*priv));
638 if (!indio_dev)
639 return -ENOMEM;
640
641 priv = iio_priv(indio_dev);
642 priv->dcfg = dcfg;
643
644 spi_set_drvdata(spi, indio_dev);
645
646 priv->spi = spi;
647
648 name = devm_kasprintf(dev, GFP_KERNEL, "%s-%s",
649 TI_TSC2046_NAME, dev_name(dev));
650
651 indio_dev->name = name;
652 indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;
653 indio_dev->channels = dcfg->channels;
654 indio_dev->num_channels = dcfg->num_channels;
655 indio_dev->info = &tsc2046_adc_info;
656
657 tsc2046_adc_parse_fwnode(priv);
658
659 ret = tsc2046_adc_setup_spi_msg(priv);
660 if (ret)
661 return ret;
662
663 mutex_init(&priv->slock);
664
665 /* TODO: remove IRQ_NOAUTOEN after needed patches are mainline */
666 irq_set_status_flags(spi->irq, IRQ_NOAUTOEN);
667 ret = devm_request_irq(dev, spi->irq, &tsc2046_adc_irq,
668 0, name, indio_dev);
669 if (ret)
670 return ret;
671
672 trig = devm_iio_trigger_alloc(dev, "touchscreen-%s", indio_dev->name);
673 if (!trig)
674 return -ENOMEM;
675
676 priv->trig = trig;
677 trig->dev.parent = indio_dev->dev.parent;
678 iio_trigger_set_drvdata(trig, indio_dev);
679 trig->ops = &tsc2046_adc_trigger_ops;
680
681 spin_lock_init(&priv->trig_lock);
682 hrtimer_init(&priv->trig_timer, CLOCK_MONOTONIC,
683 HRTIMER_MODE_REL_SOFT);
684 priv->trig_timer.function = tsc2046_adc_trig_more;
685
686 ret = devm_iio_trigger_register(dev, trig);
687 if (ret) {
688 dev_err(dev, "failed to register trigger\n");
689 return ret;
690 }
691
692 ret = devm_iio_triggered_buffer_setup(dev, indio_dev, NULL,
693 &tsc2046_adc_trigger_handler, NULL);
694 if (ret) {
695 dev_err(dev, "Failed to setup triggered buffer\n");
696 return ret;
697 }
698
699 /* set default trigger */
700 indio_dev->trig = iio_trigger_get(priv->trig);
701
702 ret = devm_iio_device_register(dev, indio_dev);
703 if (ret) {
704 dev_err(dev, "Failed to register iio device\n");
705 return ret;
706 }
707
708 return 0;
709 }
710
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[arnd-playground:randconfig-v5.12 323/597] arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: error: implicit declaration of function '__cvdso_clock_gettime32_data'; did you mean
by kernel test robot
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-v5.12
head: fd21c2581b744639b5207c11651ab40abf13701a
commit: c43a5a05c0cd6cc79fa4cf9400d94faf4f663b6f [323/597] fixup warnings
config: powerpc-randconfig-r025-20210318 (attached as .config)
compiler: powerpc-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/arnd/playground.git/commi...
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-v5.12
git checkout c43a5a05c0cd6cc79fa4cf9400d94faf4f663b6f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 error/warnings (new ones prefixed by >>):
In file included from include/vdso/datapage.h:137,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
>> arch/powerpc/include/asm/vdso/gettimeofday.h:137:55: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
137 | int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/vdso/gettimeofday.h:143:54: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
143 | int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/vdso/gettimeofday.h:202:54: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
202 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/vdso/gettimeofday.h:206:56: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
206 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:54: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
7 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c:7:5: error: conflicting types for '__c_kernel_clock_gettime'
7 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/vdso/datapage.h:137,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
arch/powerpc/include/asm/vdso/gettimeofday.h:202:5: note: previous declaration of '__c_kernel_clock_gettime' was here
202 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c: In function '__c_kernel_clock_gettime':
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: error: implicit declaration of function '__cvdso_clock_gettime32_data'; did you mean '__cvdso_clock_gettime_data'? [-Werror=implicit-function-declaration]
10 | return __cvdso_clock_gettime32_data(vd, clock, ts);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| __cvdso_clock_gettime_data
arch/powerpc/kernel/vdso32/vgettimeofday.c: At top level:
arch/powerpc/kernel/vdso32/vgettimeofday.c:25:56: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
25 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c:25:5: error: conflicting types for '__c_kernel_clock_getres'
25 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/vdso/datapage.h:137,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
arch/powerpc/include/asm/vdso/gettimeofday.h:206:5: note: previous declaration of '__c_kernel_clock_getres' was here
206 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c: In function '__c_kernel_clock_getres':
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: error: implicit declaration of function '__cvdso_clock_getres_time32_data'; did you mean '__cvdso_clock_gettime_data'? [-Werror=implicit-function-declaration]
28 | return __cvdso_clock_getres_time32_data(vd, clock_id, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| __cvdso_clock_gettime_data
cc1: some warnings being treated as errors
--
In file included from include/vdso/datapage.h:137,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
>> arch/powerpc/include/asm/vdso/gettimeofday.h:137:55: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
137 | int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/vdso/gettimeofday.h:143:54: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
143 | int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts)
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/vdso/gettimeofday.h:202:54: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
202 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/vdso/gettimeofday.h:206:56: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
206 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:7:54: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
7 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c:7:5: error: conflicting types for '__c_kernel_clock_gettime'
7 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/vdso/datapage.h:137,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
arch/powerpc/include/asm/vdso/gettimeofday.h:202:5: note: previous declaration of '__c_kernel_clock_gettime' was here
202 | int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c: In function '__c_kernel_clock_gettime':
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:10:9: error: implicit declaration of function '__cvdso_clock_gettime32_data'; did you mean '__cvdso_clock_gettime_data'? [-Werror=implicit-function-declaration]
10 | return __cvdso_clock_gettime32_data(vd, clock, ts);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| __cvdso_clock_gettime_data
arch/powerpc/kernel/vdso32/vgettimeofday.c: At top level:
arch/powerpc/kernel/vdso32/vgettimeofday.c:25:56: warning: 'struct old_timespec32' declared inside parameter list will not be visible outside of this definition or declaration
25 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c:25:5: error: conflicting types for '__c_kernel_clock_getres'
25 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/vdso/datapage.h:137,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
arch/powerpc/include/asm/vdso/gettimeofday.h:206:5: note: previous declaration of '__c_kernel_clock_getres' was here
206 | int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/vdso32/vgettimeofday.c: In function '__c_kernel_clock_getres':
>> arch/powerpc/kernel/vdso32/vgettimeofday.c:28:9: error: implicit declaration of function '__cvdso_clock_getres_time32_data'; did you mean '__cvdso_clock_gettime_data'? [-Werror=implicit-function-declaration]
28 | return __cvdso_clock_getres_time32_data(vd, clock_id, res);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| __cvdso_clock_gettime_data
cc1: some warnings being treated as errors
make[2]: *** [arch/powerpc/kernel/vdso32/Makefile:57: arch/powerpc/kernel/vdso32/vgettimeofday.o] Error 1
make[2]: Target 'include/generated/vdso32-offsets.h' not remade because of errors.
make[1]: *** [arch/powerpc/Makefile:423: vdso_prepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +10 arch/powerpc/kernel/vdso32/vgettimeofday.c
ce7d8056e38b77 Christophe Leroy 2020-11-27 6
ce7d8056e38b77 Christophe Leroy 2020-11-27 @7 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
ce7d8056e38b77 Christophe Leroy 2020-11-27 8 const struct vdso_data *vd)
ce7d8056e38b77 Christophe Leroy 2020-11-27 9 {
ce7d8056e38b77 Christophe Leroy 2020-11-27 @10 return __cvdso_clock_gettime32_data(vd, clock, ts);
ce7d8056e38b77 Christophe Leroy 2020-11-27 11 }
ce7d8056e38b77 Christophe Leroy 2020-11-27 12
d0e3fc69d00d1f Christophe Leroy 2020-11-27 13 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
d0e3fc69d00d1f Christophe Leroy 2020-11-27 14 const struct vdso_data *vd)
d0e3fc69d00d1f Christophe Leroy 2020-11-27 15 {
d0e3fc69d00d1f Christophe Leroy 2020-11-27 16 return __cvdso_clock_gettime_data(vd, clock, ts);
d0e3fc69d00d1f Christophe Leroy 2020-11-27 17 }
d0e3fc69d00d1f Christophe Leroy 2020-11-27 18
ce7d8056e38b77 Christophe Leroy 2020-11-27 19 int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz,
ce7d8056e38b77 Christophe Leroy 2020-11-27 20 const struct vdso_data *vd)
ce7d8056e38b77 Christophe Leroy 2020-11-27 21 {
ce7d8056e38b77 Christophe Leroy 2020-11-27 22 return __cvdso_gettimeofday_data(vd, tv, tz);
ce7d8056e38b77 Christophe Leroy 2020-11-27 23 }
ce7d8056e38b77 Christophe Leroy 2020-11-27 24
ce7d8056e38b77 Christophe Leroy 2020-11-27 25 int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
ce7d8056e38b77 Christophe Leroy 2020-11-27 26 const struct vdso_data *vd)
ce7d8056e38b77 Christophe Leroy 2020-11-27 27 {
ce7d8056e38b77 Christophe Leroy 2020-11-27 @28 return __cvdso_clock_getres_time32_data(vd, clock_id, res);
ce7d8056e38b77 Christophe Leroy 2020-11-27 29 }
ce7d8056e38b77 Christophe Leroy 2020-11-27 30
:::::: The code at line 10 was first introduced by commit
:::::: ce7d8056e38b770f070fc4499c577322b6ccb9c7 powerpc/vdso: Prepare for switching VDSO to generic C implementation.
:::::: TO: Christophe Leroy <christophe.leroy(a)csgroup.eu>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH v8 3/3] drm: Add GUD USB Display driver
by kernel test robot
Hi "Noralf,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on tegra-drm/drm/tegra/for-next linus/master drm-exynos/exynos-drm-next v5.12-rc3]
[cannot apply to drm-tip/drm-tip drm/drm-next next-20210319]
[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/Noralf-Tr-nnes/GUD-USB-Display-d...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/744847276b3d24137418fc2f15fc99ad8...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Noralf-Tr-nnes/GUD-USB-Display-driver/20210313-192802
git checkout 744847276b3d24137418fc2f15fc99ad8bd229c6
# save the attached .config to linux build tree
make W=1 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 >>):
>> drivers/gpu/drm/gud/gud_drv.c:22:10: fatal error: drm/drm_gem_atomic_helper.h: No such file or directory
22 | #include <drm/drm_gem_atomic_helper.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
vim +22 drivers/gpu/drm/gud/gud_drv.c
15
16 #include <drm/drm_atomic_helper.h>
17 #include <drm/drm_damage_helper.h>
18 #include <drm/drm_debugfs.h>
19 #include <drm/drm_drv.h>
20 #include <drm/drm_fb_helper.h>
21 #include <drm/drm_fourcc.h>
> 22 #include <drm/drm_gem_atomic_helper.h>
23 #include <drm/drm_gem_framebuffer_helper.h>
24 #include <drm/drm_gem_shmem_helper.h>
25 #include <drm/drm_managed.h>
26 #include <drm/drm_print.h>
27 #include <drm/drm_probe_helper.h>
28 #include <drm/drm_simple_kms_helper.h>
29 #include <drm/gud.h>
30
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH 2/3] drm/connector: Add helper to compare HDR metadata
by kernel test robot
Hi Maxime,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip linus/master v5.12-rc3 next-20210319]
[cannot apply to anholt/for-next]
[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/Maxime-Ripard/drm-connector-Crea...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: sparc64-randconfig-r035-20210318 (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
# https://github.com/0day-ci/linux/commit/e12a697958cd6235d678394450f4cb7db...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Maxime-Ripard/drm-connector-Create-a-helper-to-attach-the-hdr_output_metadata-property/20210319-205157
git checkout e12a697958cd6235d678394450f4cb7dbf958ed5
# 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 errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_commit_cursors':
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7678:44: warning: variable 'new_plane_state' set but not used [-Wunused-but-set-variable]
7678 | struct drm_plane_state *old_plane_state, *new_plane_state;
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'amdgpu_dm_atomic_commit_tail':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8327:4: error: implicit declaration of function 'is_hdr_metadata_different' [-Werror=implicit-function-declaration]
8327 | is_hdr_metadata_different(old_con_state, new_con_state);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS || MCOUNT
Selected by
- LATENCYTOP && DEBUG_KERNEL && STACKTRACE_SUPPORT && PROC_FS && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
- LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86
vim +/is_hdr_metadata_different +8327 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
e7b07ceef2a650 Harry Wentland 2017-08-10 8293
02d6a6fcdf68c4 David Francis 2018-12-18 8294 /* Handle connector state changes */
c2cea7063b85fc Leo (Sunpeng Li 2017-10-12 8295) for_each_oldnew_connector_in_state(state, connector, old_con_state, new_con_state, i) {
54d76575246798 Leo (Sunpeng Li 2017-10-12 8296) struct dm_connector_state *dm_new_con_state = to_dm_connector_state(new_con_state);
54d76575246798 Leo (Sunpeng Li 2017-10-12 8297) struct dm_connector_state *dm_old_con_state = to_dm_connector_state(old_con_state);
54d76575246798 Leo (Sunpeng Li 2017-10-12 8298) struct amdgpu_crtc *acrtc = to_amdgpu_crtc(dm_new_con_state->base.crtc);
efc8278eecfd5e Anson Jacob 2021-02-18 8299 struct dc_surface_update dummy_updates[MAX_SURFACES];
19afd79951e630 Nathan Chancellor 2019-02-01 8300 struct dc_stream_update stream_update;
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8301 struct dc_info_packet hdr_packet;
e7b07ceef2a650 Harry Wentland 2017-08-10 8302 struct dc_stream_status *status = NULL;
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8303 bool abm_changed, hdr_changed, scaling_changed;
e7b07ceef2a650 Harry Wentland 2017-08-10 8304
efc8278eecfd5e Anson Jacob 2021-02-18 8305 memset(&dummy_updates, 0, sizeof(dummy_updates));
19afd79951e630 Nathan Chancellor 2019-02-01 8306 memset(&stream_update, 0, sizeof(stream_update));
19afd79951e630 Nathan Chancellor 2019-02-01 8307
44d09c6a577c8e Harry Wentland 2018-03-15 8308 if (acrtc) {
0bc9706db3a35b Leo (Sunpeng Li 2017-10-12 8309) new_crtc_state = drm_atomic_get_new_crtc_state(state, &acrtc->base);
44d09c6a577c8e Harry Wentland 2018-03-15 8310 old_crtc_state = drm_atomic_get_old_crtc_state(state, &acrtc->base);
44d09c6a577c8e Harry Wentland 2018-03-15 8311 }
0bc9706db3a35b Leo (Sunpeng Li 2017-10-12 8312)
e7b07ceef2a650 Harry Wentland 2017-08-10 8313 /* Skip any modesets/resets */
0bc9706db3a35b Leo (Sunpeng Li 2017-10-12 8314) if (!acrtc || drm_atomic_crtc_needs_modeset(new_crtc_state))
e7b07ceef2a650 Harry Wentland 2017-08-10 8315 continue;
e7b07ceef2a650 Harry Wentland 2017-08-10 8316
54d76575246798 Leo (Sunpeng Li 2017-10-12 8317) dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
c1ee92f94ce3b9 David Francis 2018-11-26 8318 dm_old_crtc_state = to_dm_crtc_state(old_crtc_state);
c1ee92f94ce3b9 David Francis 2018-11-26 8319
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8320 scaling_changed = is_scaling_state_different(dm_new_con_state,
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8321 dm_old_con_state);
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8322
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8323 abm_changed = dm_new_crtc_state->abm_level !=
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8324 dm_old_crtc_state->abm_level;
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8325
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8326 hdr_changed =
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 @8327 is_hdr_metadata_different(old_con_state, new_con_state);
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8328
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8329 if (!scaling_changed && !abm_changed && !hdr_changed)
c1ee92f94ce3b9 David Francis 2018-11-26 8330 continue;
e7b07ceef2a650 Harry Wentland 2017-08-10 8331
b6e881c947417e Dmytro Laktyushkin 2019-09-13 8332 stream_update.stream = dm_new_crtc_state->stream;
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8333 if (scaling_changed) {
54d76575246798 Leo (Sunpeng Li 2017-10-12 8334) update_stream_scaling_settings(&dm_new_con_state->base.crtc->mode,
b6e881c947417e Dmytro Laktyushkin 2019-09-13 8335 dm_new_con_state, dm_new_crtc_state->stream);
e7b07ceef2a650 Harry Wentland 2017-08-10 8336
02d6a6fcdf68c4 David Francis 2018-12-18 8337 stream_update.src = dm_new_crtc_state->stream->src;
02d6a6fcdf68c4 David Francis 2018-12-18 8338 stream_update.dst = dm_new_crtc_state->stream->dst;
02d6a6fcdf68c4 David Francis 2018-12-18 8339 }
02d6a6fcdf68c4 David Francis 2018-12-18 8340
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8341 if (abm_changed) {
02d6a6fcdf68c4 David Francis 2018-12-18 8342 dm_new_crtc_state->stream->abm_level = dm_new_crtc_state->abm_level;
02d6a6fcdf68c4 David Francis 2018-12-18 8343
02d6a6fcdf68c4 David Francis 2018-12-18 8344 stream_update.abm_level = &dm_new_crtc_state->abm_level;
02d6a6fcdf68c4 David Francis 2018-12-18 8345 }
70e8ffc55b98f3 Harry Wentland 2017-11-10 8346
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8347 if (hdr_changed) {
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8348 fill_hdr_info_packet(new_con_state, &hdr_packet);
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8349 stream_update.hdr_static_metadata = &hdr_packet;
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8350 }
b232d4ed92eafb Nicholas Kazlauskas 2019-05-28 8351
54d76575246798 Leo (Sunpeng Li 2017-10-12 8352) status = dc_stream_get_status(dm_new_crtc_state->stream);
e7b07ceef2a650 Harry Wentland 2017-08-10 8353 WARN_ON(!status);
3be5262e353b8a Harry Wentland 2017-07-27 8354 WARN_ON(!status->plane_count);
e7b07ceef2a650 Harry Wentland 2017-08-10 8355
02d6a6fcdf68c4 David Francis 2018-12-18 8356 /*
02d6a6fcdf68c4 David Francis 2018-12-18 8357 * TODO: DC refuses to perform stream updates without a dc_surface_update.
02d6a6fcdf68c4 David Francis 2018-12-18 8358 * Here we create an empty update on each plane.
02d6a6fcdf68c4 David Francis 2018-12-18 8359 * To fix this, DC should permit updating only stream properties.
02d6a6fcdf68c4 David Francis 2018-12-18 8360 */
02d6a6fcdf68c4 David Francis 2018-12-18 8361 for (j = 0; j < status->plane_count; j++)
efc8278eecfd5e Anson Jacob 2021-02-18 8362 dummy_updates[j].surface = status->plane_states[0];
98e6436d3af5fe Anthony Koo 2018-08-21 8363
02d6a6fcdf68c4 David Francis 2018-12-18 8364
02d6a6fcdf68c4 David Francis 2018-12-18 8365 mutex_lock(&dm->dc_lock);
02d6a6fcdf68c4 David Francis 2018-12-18 8366 dc_commit_updates_for_stream(dm->dc,
efc8278eecfd5e Anson Jacob 2021-02-18 8367 dummy_updates,
3be5262e353b8a Harry Wentland 2017-07-27 8368 status->plane_count,
02d6a6fcdf68c4 David Francis 2018-12-18 8369 dm_new_crtc_state->stream,
efc8278eecfd5e Anson Jacob 2021-02-18 8370 &stream_update,
efc8278eecfd5e Anson Jacob 2021-02-18 8371 dc_state);
02d6a6fcdf68c4 David Francis 2018-12-18 8372 mutex_unlock(&dm->dc_lock);
e7b07ceef2a650 Harry Wentland 2017-08-10 8373 }
e7b07ceef2a650 Harry Wentland 2017-08-10 8374
b5e83f6fe1f003 Nicholas Kazlauskas 2019-04-08 8375 /* Count number of newly disabled CRTCs for dropping PM refs later. */
e1fc2dca1295c4 Leo (Sunpeng Li 2017-10-18 8376) for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state,
e1fc2dca1295c4 Leo (Sunpeng Li 2017-10-18 8377) new_crtc_state, i) {
fe2a19652918a5 Lyude Paul 2018-06-21 8378 if (old_crtc_state->active && !new_crtc_state->active)
fe2a19652918a5 Lyude Paul 2018-06-21 8379 crtc_disable_count++;
fe2a19652918a5 Lyude Paul 2018-06-21 8380
54d76575246798 Leo (Sunpeng Li 2017-10-12 8381) dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
e1fc2dca1295c4 Leo (Sunpeng Li 2017-10-18 8382) dm_old_crtc_state = to_dm_crtc_state(old_crtc_state);
66b0c973d7f74e Mario Kleiner 2019-03-29 8383
585d450c76d1d5 Aurabindo Pillai 2020-08-12 8384 /* For freesync config update on crtc state and params for irq */
585d450c76d1d5 Aurabindo Pillai 2020-08-12 8385 update_stream_irq_parameters(dm, dm_new_crtc_state);
057be086603feb Nicholas Kazlauskas 2019-04-15 8386
66b0c973d7f74e Mario Kleiner 2019-03-29 8387 /* Handle vrr on->off / off->on transitions */
66b0c973d7f74e Mario Kleiner 2019-03-29 8388 amdgpu_dm_handle_vrr_transition(dm_old_crtc_state,
66b0c973d7f74e Mario Kleiner 2019-03-29 8389 dm_new_crtc_state);
e7b07ceef2a650 Harry Wentland 2017-08-10 8390 }
e7b07ceef2a650 Harry Wentland 2017-08-10 8391
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8392 /**
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8393 * Enable interrupts for CRTCs that are newly enabled or went through
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8394 * a modeset. It was intentionally deferred until after the front end
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8395 * state was modified to wait until the OTG was on and so the IRQ
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8396 * handlers didn't access stale or invalid state.
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8397 */
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8398 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8399 struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc);
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8400
585d450c76d1d5 Aurabindo Pillai 2020-08-12 8401 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
585d450c76d1d5 Aurabindo Pillai 2020-08-12 8402
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8403 if (new_crtc_state->active &&
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8404 (!old_crtc_state->active ||
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8405 drm_atomic_crtc_needs_modeset(new_crtc_state))) {
585d450c76d1d5 Aurabindo Pillai 2020-08-12 8406 dc_stream_retain(dm_new_crtc_state->stream);
585d450c76d1d5 Aurabindo Pillai 2020-08-12 8407 acrtc->dm_irq_params.stream = dm_new_crtc_state->stream;
8fe684e97c86e3 Nicholas Kazlauskas 2020-07-13 8408 manage_dm_interrupts(adev, acrtc, true);
e2881d6d0a2653 Rodrigo Siqueira 2021-01-07 8409
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[intel-linux-intel-lts:5.4/yocto 6707/15166] drivers/misc/gna/gna_drv.c:270:6: error: no previous prototype for 'gna_dev_release'
by kernel test robot
Hi Seng,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: e57eb6e1bfa3f7fe5e685917d83dcce94f03a4b5
commit: 2d2e3dc79dbf54b9905e4086db001a25047d8c0c [6707/15166] Enable support for GNA drivers based on GNA API specification 2.0
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/linux-intel-lts/commit/2d2e3dc79dbf54b9905e4086d...
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 2d2e3dc79dbf54b9905e4086db001a25047d8c0c
# save the attached .config to linux build tree
make W=1 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 >>):
>> drivers/misc/gna/gna_drv.c:270:6: error: no previous prototype for 'gna_dev_release' [-Werror=missing-prototypes]
270 | void gna_dev_release(struct device *dev)
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
drivers/misc/gna/gna_ioctl.c: In function 'gna_ioctl':
>> drivers/misc/gna/gna_ioctl.c:251:6: error: variable 'size' set but not used [-Werror=unused-but-set-variable]
251 | u64 size;
| ^~~~
>> drivers/misc/gna/gna_ioctl.c:250:8: error: variable 'data' set but not used [-Werror=unused-but-set-variable]
250 | void *data;
| ^~~~
cc1: all warnings being treated as errors
--
drivers/misc/gna/gna_mem.c: In function 'gna_priv_userptr':
>> drivers/misc/gna/gna_mem.c:527:20: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
527 | if (mo->memory_id < 0) {
| ^
cc1: all warnings being treated as errors
--
>> drivers/misc/gna/gna_pci.c:37:21: error: initialized field overwritten [-Werror=override-init]
37 | .max_layer_count = 4096
| ^~~~
drivers/misc/gna/gna_pci.c:61:2: note: in expansion of macro 'GNA_GEN2_FEATURES'
61 | GNA_GEN2_FEATURES
| ^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:37:21: note: (near initialization for 'jsl_drv_info.max_layer_count')
37 | .max_layer_count = 4096
| ^~~~
drivers/misc/gna/gna_pci.c:61:2: note: in expansion of macro 'GNA_GEN2_FEATURES'
61 | GNA_GEN2_FEATURES
| ^~~~~~~~~~~~~~~~~
>> drivers/misc/gna/gna_pci.c:37:21: error: initialized field overwritten [-Werror=override-init]
37 | .max_layer_count = 4096
| ^~~~
drivers/misc/gna/gna_pci.c:66:2: note: in expansion of macro 'GNA_GEN2_FEATURES'
66 | GNA_GEN2_FEATURES
| ^~~~~~~~~~~~~~~~~
drivers/misc/gna/gna_pci.c:37:21: note: (near initialization for 'tgl_drv_info.max_layer_count')
37 | .max_layer_count = 4096
| ^~~~
drivers/misc/gna/gna_pci.c:66:2: note: in expansion of macro 'GNA_GEN2_FEATURES'
66 | GNA_GEN2_FEATURES
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/gna_dev_release +270 drivers/misc/gna/gna_drv.c
269
> 270 void gna_dev_release(struct device *dev)
271 {
272 struct gna_private *gna_priv;
273
274 dev_dbg(dev, "%s enter\n", __func__);
275
276 gna_priv = dev_get_drvdata(dev);
277
278 __clear_bit(MINOR(dev->devt), gna_drv_priv.dev_map);
279 flush_workqueue(gna_priv->request_wq);
280 destroy_workqueue(gna_priv->request_wq);
281 idr_destroy(&gna_priv->memory_idr);
282 gna_mmu_free(gna_priv);
283 dev_set_drvdata(dev, NULL);
284 pci_set_drvdata(gna_priv->pdev, NULL);
285
286 kfree(gna_priv);
287
288 dev_dbg(dev, "%s exit\n", __func__);
289 }
290
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months