[block:for-5.14/drivers-late 86/87] arch/um/drivers/ubd_kern.c:247:7: warning: variable 'major' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.14/drivers-late
head: b12d17fce6418fc1f48f998d55a86fd794ea6578
commit: aebbd9fdb0cc4b7a0eda7b935a929c1e2876a507 [86/87] ubd: remove the code to register as the legacy IDE driver
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block for-5.14/drivers-late
git checkout aebbd9fdb0cc4b7a0eda7b935a929c1e2876a507
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=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 >>):
arch/um/drivers/ubd_kern.c: In function 'ubd_setup_common':
>> arch/um/drivers/ubd_kern.c:247:7: warning: variable 'major' set but not used [-Wunused-but-set-variable]
247 | int major;
| ^~~~~
vim +/major +247 arch/um/drivers/ubd_kern.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 231
d8d7c28ec0b50a Paolo 'Blaisorblade' Giarrusso 2006-10-30 232 /* If *index_out == -1 at exit, the passed option was a general one;
d8d7c28ec0b50a Paolo 'Blaisorblade' Giarrusso 2006-10-30 233 * otherwise, the str pointer is used (and owned) inside ubd_devs array, so it
d8d7c28ec0b50a Paolo 'Blaisorblade' Giarrusso 2006-10-30 234 * should not be freed on exit.
d8d7c28ec0b50a Paolo 'Blaisorblade' Giarrusso 2006-10-30 235 */
f28169d2000177 Jeff Dike 2007-02-10 236 static int ubd_setup_common(char *str, int *index_out, char **error_out)
^1da177e4c3f41 Linus Torvalds 2005-04-16 237 {
7d314e346d6081 Paolo 'Blaisorblade' Giarrusso 2006-10-30 238 struct ubd *ubd_dev;
^1da177e4c3f41 Linus Torvalds 2005-04-16 239 struct openflags flags = global_openflags;
ef3ba87cb7c911 Christopher Obbard 2020-11-23 240 char *file, *backing_file, *serial;
b8831a1d2c78c0 Jeff Dike 2007-02-10 241 int n, err = 0, i;
^1da177e4c3f41 Linus Torvalds 2005-04-16 242
^1da177e4c3f41 Linus Torvalds 2005-04-16 243 if(index_out) *index_out = -1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 244 n = *str;
^1da177e4c3f41 Linus Torvalds 2005-04-16 245 if(n == '='){
^1da177e4c3f41 Linus Torvalds 2005-04-16 246 char *end;
^1da177e4c3f41 Linus Torvalds 2005-04-16 @247 int major;
^1da177e4c3f41 Linus Torvalds 2005-04-16 248
^1da177e4c3f41 Linus Torvalds 2005-04-16 249 str++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 250 if(!strcmp(str, "sync")){
^1da177e4c3f41 Linus Torvalds 2005-04-16 251 global_openflags = of_sync(global_openflags);
9ca55299f2ee0a Daniel Walter 2019-04-02 252 return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 253 }
b8831a1d2c78c0 Jeff Dike 2007-02-10 254
b8831a1d2c78c0 Jeff Dike 2007-02-10 255 err = -EINVAL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 256 major = simple_strtoul(str, &end, 0);
^1da177e4c3f41 Linus Torvalds 2005-04-16 257 if((*end != '\0') || (end == str)){
f28169d2000177 Jeff Dike 2007-02-10 258 *error_out = "Didn't parse major number";
9ca55299f2ee0a Daniel Walter 2019-04-02 259 return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 260 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 261
aebbd9fdb0cc4b Christoph Hellwig 2021-06-14 262 pr_warn("fake major not supported any more\n");
aebbd9fdb0cc4b Christoph Hellwig 2021-06-14 263 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 264 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 265
^1da177e4c3f41 Linus Torvalds 2005-04-16 266 n = parse_unit(&str);
^1da177e4c3f41 Linus Torvalds 2005-04-16 267 if(n < 0){
f28169d2000177 Jeff Dike 2007-02-10 268 *error_out = "Couldn't parse device number";
f28169d2000177 Jeff Dike 2007-02-10 269 return -EINVAL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 270 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 271 if(n >= MAX_DEV){
f28169d2000177 Jeff Dike 2007-02-10 272 *error_out = "Device number out of range";
f28169d2000177 Jeff Dike 2007-02-10 273 return 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 274 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 275
f28169d2000177 Jeff Dike 2007-02-10 276 err = -EBUSY;
d7fb2c3865ca0f Paolo 'Blaisorblade' Giarrusso 2006-10-30 277 mutex_lock(&ubd_lock);
^1da177e4c3f41 Linus Torvalds 2005-04-16 278
7d314e346d6081 Paolo 'Blaisorblade' Giarrusso 2006-10-30 279 ubd_dev = &ubd_devs[n];
7d314e346d6081 Paolo 'Blaisorblade' Giarrusso 2006-10-30 280 if(ubd_dev->file != NULL){
f28169d2000177 Jeff Dike 2007-02-10 281 *error_out = "Device is already configured";
^1da177e4c3f41 Linus Torvalds 2005-04-16 282 goto out;
^1da177e4c3f41 Linus Torvalds 2005-04-16 283 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 284
^1da177e4c3f41 Linus Torvalds 2005-04-16 285 if (index_out)
^1da177e4c3f41 Linus Torvalds 2005-04-16 286 *index_out = n;
^1da177e4c3f41 Linus Torvalds 2005-04-16 287
f28169d2000177 Jeff Dike 2007-02-10 288 err = -EINVAL;
50109b5a03b402 Anton Ivanov 2018-11-14 289 for (i = 0; i < sizeof("rscdt="); i++) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 290 switch (*str) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 291 case 'r':
^1da177e4c3f41 Linus Torvalds 2005-04-16 292 flags.w = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 293 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 294 case 's':
^1da177e4c3f41 Linus Torvalds 2005-04-16 295 flags.s = 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 296 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 297 case 'd':
7d314e346d6081 Paolo 'Blaisorblade' Giarrusso 2006-10-30 298 ubd_dev->no_cow = 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 299 break;
6c29256c5703ad Jeff Dike 2006-03-27 300 case 'c':
7d314e346d6081 Paolo 'Blaisorblade' Giarrusso 2006-10-30 301 ubd_dev->shared = 1;
6c29256c5703ad Jeff Dike 2006-03-27 302 break;
50109b5a03b402 Anton Ivanov 2018-11-14 303 case 't':
50109b5a03b402 Anton Ivanov 2018-11-14 304 ubd_dev->no_trim = 1;
50109b5a03b402 Anton Ivanov 2018-11-14 305 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 306 case '=':
^1da177e4c3f41 Linus Torvalds 2005-04-16 307 str++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 308 goto break_loop;
^1da177e4c3f41 Linus Torvalds 2005-04-16 309 default:
f28169d2000177 Jeff Dike 2007-02-10 310 *error_out = "Expected '=' or flag letter "
50109b5a03b402 Anton Ivanov 2018-11-14 311 "(r, s, c, t or d)";
^1da177e4c3f41 Linus Torvalds 2005-04-16 312 goto out;
^1da177e4c3f41 Linus Torvalds 2005-04-16 313 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 314 str++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 315 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 316
^1da177e4c3f41 Linus Torvalds 2005-04-16 317 if (*str == '=')
f28169d2000177 Jeff Dike 2007-02-10 318 *error_out = "Too many flags specified";
^1da177e4c3f41 Linus Torvalds 2005-04-16 319 else
f28169d2000177 Jeff Dike 2007-02-10 320 *error_out = "Missing '='";
^1da177e4c3f41 Linus Torvalds 2005-04-16 321 goto out;
^1da177e4c3f41 Linus Torvalds 2005-04-16 322
^1da177e4c3f41 Linus Torvalds 2005-04-16 323 break_loop:
ef3ba87cb7c911 Christopher Obbard 2020-11-23 324 file = strsep(&str, ",:");
ef3ba87cb7c911 Christopher Obbard 2020-11-23 325 if (*file == '\0')
ef3ba87cb7c911 Christopher Obbard 2020-11-23 326 file = NULL;
ef3ba87cb7c911 Christopher Obbard 2020-11-23 327
ef3ba87cb7c911 Christopher Obbard 2020-11-23 328 backing_file = strsep(&str, ",:");
94c41b3a7c370b Hajime Tazaki 2020-12-21 329 if (backing_file && *backing_file == '\0')
ef3ba87cb7c911 Christopher Obbard 2020-11-23 330 backing_file = NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 331
ef3ba87cb7c911 Christopher Obbard 2020-11-23 332 serial = strsep(&str, ",:");
94c41b3a7c370b Hajime Tazaki 2020-12-21 333 if (serial && *serial == '\0')
ef3ba87cb7c911 Christopher Obbard 2020-11-23 334 serial = NULL;
^1da177e4c3f41 Linus Torvalds 2005-04-16 335
ef3ba87cb7c911 Christopher Obbard 2020-11-23 336 if (backing_file && ubd_dev->no_cow) {
f28169d2000177 Jeff Dike 2007-02-10 337 *error_out = "Can't specify both 'd' and a cow file";
f28169d2000177 Jeff Dike 2007-02-10 338 goto out;
f28169d2000177 Jeff Dike 2007-02-10 339 }
ef3ba87cb7c911 Christopher Obbard 2020-11-23 340
f28169d2000177 Jeff Dike 2007-02-10 341 err = 0;
ef3ba87cb7c911 Christopher Obbard 2020-11-23 342 ubd_dev->file = file;
7d314e346d6081 Paolo 'Blaisorblade' Giarrusso 2006-10-30 343 ubd_dev->cow.file = backing_file;
ef3ba87cb7c911 Christopher Obbard 2020-11-23 344 ubd_dev->serial = serial;
7d314e346d6081 Paolo 'Blaisorblade' Giarrusso 2006-10-30 345 ubd_dev->boot_openflags = flags;
^1da177e4c3f41 Linus Torvalds 2005-04-16 346 out:
d7fb2c3865ca0f Paolo 'Blaisorblade' Giarrusso 2006-10-30 347 mutex_unlock(&ubd_lock);
f28169d2000177 Jeff Dike 2007-02-10 348 return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 349 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 350
:::::: The code at line 247 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[zen-kernel-zen-kernel:5.12/futex2 4/16] kernel/sys_ni.c:159:1: warning: no previous prototype for function '__x32_compat_sys_futex_requeue'
by kernel test robot
Hi André,
FYI, the error/warning still remains.
tree: https://github.com/zen-kernel/zen-kernel 5.12/futex2
head: 81255c11c48cc2302883425c87318f9cad37e7e6
commit: 270e16f72b29d04a83645b653e9fc65be51801d2 [4/16] futex2: Implement requeue operation
config: x86_64-randconfig-a011-20210615 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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://github.com/zen-kernel/zen-kernel/commit/270e16f72b29d04a83645b653...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.12/futex2
git checkout 270e16f72b29d04a83645b653e9fc65be51801d2
# 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 >>):
kernel/sys_ni.c:157:1: warning: no previous prototype for function '__x32_compat_sys_futex_waitv' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(futex_waitv);
^
arch/x86/include/asm/syscall_wrapper.h:219:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__X32_COMPAT_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:175:2: note: expanded from macro '__X32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(x32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:158:1: note: expanded from here
__x32_compat_sys_futex_waitv
^
kernel/sys_ni.c:157:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:219:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__X32_COMPAT_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:175:2: note: expanded from macro '__X32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(x32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:158:1: warning: no previous prototype for function '__x64_sys_futex_requeue' [-Wmissing-prototypes]
COND_SYSCALL(futex_requeue);
^
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:162:1: note: expanded from here
__x64_sys_futex_requeue
^
kernel/sys_ni.c:158:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:158:1: warning: no previous prototype for function '__ia32_sys_futex_requeue' [-Wmissing-prototypes]
COND_SYSCALL(futex_requeue);
^
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:166:1: note: expanded from here
__ia32_sys_futex_requeue
^
kernel/sys_ni.c:158:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:159:1: warning: no previous prototype for function '__ia32_compat_sys_futex_requeue' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(futex_requeue);
^
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:170:1: note: expanded from here
__ia32_compat_sys_futex_requeue
^
kernel/sys_ni.c:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
>> kernel/sys_ni.c:159:1: warning: no previous prototype for function '__x32_compat_sys_futex_requeue' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(futex_requeue);
^
arch/x86/include/asm/syscall_wrapper.h:219:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__X32_COMPAT_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:175:2: note: expanded from macro '__X32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(x32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:174:1: note: expanded from here
__x32_compat_sys_futex_requeue
^
kernel/sys_ni.c:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:219:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__X32_COMPAT_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:175:2: note: expanded from macro '__X32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(x32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:166:1: warning: no previous prototype for function '__x64_sys_kexec_load' [-Wmissing-prototypes]
COND_SYSCALL(kexec_load);
^
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:178:1: note: expanded from here
__x64_sys_kexec_load
^
kernel/sys_ni.c:166:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:166:1: warning: no previous prototype for function '__ia32_sys_kexec_load' [-Wmissing-prototypes]
COND_SYSCALL(kexec_load);
^
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:182:1: note: expanded from here
__ia32_sys_kexec_load
^
kernel/sys_ni.c:166:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:167:1: warning: no previous prototype for function '__ia32_compat_sys_kexec_load' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(kexec_load);
^
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:186:1: note: expanded from here
__ia32_compat_sys_kexec_load
^
kernel/sys_ni.c:167:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:167:1: warning: no previous prototype for function '__x32_compat_sys_kexec_load' [-Wmissing-prototypes]
vim +/__x32_compat_sys_futex_requeue +159 kernel/sys_ni.c
152
153 /* kernel/futex2.c */
154 COND_SYSCALL(futex_wait);
155 COND_SYSCALL(futex_wake);
156 COND_SYSCALL(futex_waitv);
157 COND_SYSCALL_COMPAT(futex_waitv);
158 COND_SYSCALL(futex_requeue);
> 159 COND_SYSCALL_COMPAT(futex_requeue);
160
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[intel-tdx:guest 31/76] arch/x86/mm/pat/set_memory.c:1988:20: error: storage size of 'map_type' isn't known
by kernel test robot
tree: https://github.com/intel/tdx.git guest
head: 224dd4925275ef73ef78f1412d6f9d03564294eb
commit: bf5603172354075b8f75ce3833cb938e729273ca [31/76] x86/tdx: Make DMA pages shared
config: i386-randconfig-r032-20210616 (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/tdx/commit/bf5603172354075b8f75ce3833cb938e729273ca
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout bf5603172354075b8f75ce3833cb938e729273ca
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/mm/pat/set_memory.c: In function '__set_memory_protect':
>> arch/x86/mm/pat/set_memory.c:1988:20: error: storage size of 'map_type' isn't known
1988 | enum tdx_map_type map_type;
| ^~~~~~~~
In file included from arch/x86/include/asm/paravirt_types.h:39,
from arch/x86/include/asm/ptrace.h:97,
from arch/x86/include/asm/math_emu.h:5,
from arch/x86/include/asm/processor.h:13,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:59,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/highmem.h:5,
from arch/x86/mm/pat/set_memory.c:6:
arch/x86/include/asm/pgtable.h:27:42: error: implicit declaration of function 'tdg_shared_mask' [-Werror=implicit-function-declaration]
27 | #define pgprot_pg_shared_mask() __pgprot(tdg_shared_mask())
| ^~~~~~~~~~~~~~~
arch/x86/include/asm/pgtable_types.h:177:37: note: in definition of macro '__pgprot'
177 | #define __pgprot(x) ((pgprot_t) { (x) } )
| ^
arch/x86/mm/pat/set_memory.c:2006:20: note: in expansion of macro 'pgprot_pg_shared_mask'
2006 | mem_plain_bits = pgprot_pg_shared_mask();
| ^~~~~~~~~~~~~~~~~~~~~
>> arch/x86/mm/pat/set_memory.c:2015:14: error: 'TDX_MAP_PRIVATE' undeclared (first use in this function)
2015 | map_type = TDX_MAP_PRIVATE;
| ^~~~~~~~~~~~~~~
arch/x86/mm/pat/set_memory.c:2015:14: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/mm/pat/set_memory.c:2019:14: error: 'TDX_MAP_SHARED' undeclared (first use in this function)
2019 | map_type = TDX_MAP_SHARED;
| ^~~~~~~~~~~~~~
>> arch/x86/mm/pat/set_memory.c:2053:9: error: implicit declaration of function 'tdx_hcall_gpa_intent' [-Werror=implicit-function-declaration]
2053 | ret = tdx_hcall_gpa_intent(__pa(addr), numpages, map_type);
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/mm/pat/set_memory.c:1988:20: warning: unused variable 'map_type' [-Wunused-variable]
1988 | enum tdx_map_type map_type;
| ^~~~~~~~
cc1: some warnings being treated as errors
vim +1988 arch/x86/mm/pat/set_memory.c
1983
1984 static int __set_memory_protect(unsigned long addr, int numpages, bool protect)
1985 {
1986 pgprot_t mem_protected_bits, mem_plain_bits;
1987 struct cpa_data cpa;
> 1988 enum tdx_map_type map_type;
1989 int ret;
1990
1991 /* Nothing to do if memory encryption is not active */
1992 if (!mem_encrypt_active() &&
1993 !prot_guest_has(PR_GUEST_MEM_ENCRYPT_ACTIVE))
1994 return 0;
1995
1996 /* Should not be working on unaligned addresses */
1997 if (WARN_ONCE(addr & ~PAGE_MASK, "misaligned address: %#lx\n", addr))
1998 addr &= PAGE_MASK;
1999
2000 memset(&cpa, 0, sizeof(cpa));
2001 cpa.vaddr = &addr;
2002 cpa.numpages = numpages;
2003
2004 if (prot_guest_has(PR_GUEST_SHARED_MAPPING_INIT)) {
2005 mem_protected_bits = __pgprot(0);
2006 mem_plain_bits = pgprot_pg_shared_mask();
2007 } else {
2008 mem_protected_bits = __pgprot(_PAGE_ENC);
2009 mem_plain_bits = __pgprot(0);
2010 }
2011
2012 if (protect) {
2013 cpa.mask_set = mem_protected_bits;
2014 cpa.mask_clr = mem_plain_bits;
> 2015 map_type = TDX_MAP_PRIVATE;
2016 } else {
2017 cpa.mask_set = mem_plain_bits;
2018 cpa.mask_clr = mem_protected_bits;
> 2019 map_type = TDX_MAP_SHARED;
2020 }
2021
2022 cpa.pgd = init_mm.pgd;
2023
2024 /* Must avoid aliasing mappings in the highmem code */
2025 kmap_flush_unused();
2026 vm_unmap_aliases();
2027
2028 /*
2029 * Before changing the encryption attribute, we need to flush caches.
2030 *
2031 * For TDX we need to flush caches on private->shared. VMM is
2032 * responsible for flushing on shared->private.
2033 */
2034 if (prot_guest_has(PR_GUEST_TDX)) {
2035 if (map_type == TDX_MAP_SHARED)
2036 cpa_flush(&cpa, 1);
2037 } else {
2038 cpa_flush(&cpa, !this_cpu_has(X86_FEATURE_SME_COHERENT));
2039 }
2040
2041 ret = __change_page_attr_set_clr(&cpa, 1);
2042
2043 /*
2044 * After changing the encryption attribute, we need to flush TLBs again
2045 * in case any speculative TLB caching occurred (but no need to flush
2046 * caches again). We could just use cpa_flush_all(), but in case TLB
2047 * flushing gets optimized in the cpa_flush() path use the same logic
2048 * as above.
2049 */
2050 cpa_flush(&cpa, 0);
2051
2052 if (!ret && prot_guest_has(PR_GUEST_SHARED_MAPPING_INIT))
> 2053 ret = tdx_hcall_gpa_intent(__pa(addr), numpages, map_type);
2054
2055 return ret;
2056 }
2057
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[agd5f:drm-next 51/84] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:70:13: warning: variable 'dc' set but not used
by kernel test robot
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 5fedbd64e1c0eedd28f478f280c6315d18ff7762
commit: f4594cd1fa556609450e0ed5664a0adf69ab0b35 [51/84] drm/amd/display: move psr dm interface to separate files
config: riscv-randconfig-r033-20210615 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout f4594cd1fa556609450e0ed5664a0adf69ab0b35
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c: In function 'amdgpu_dm_link_setup_psr':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:70:13: warning: variable 'dc' set but not used [-Wunused-but-set-variable]
70 | struct dc *dc = NULL;
| ^~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/dc +70 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c
58
59 /*
60 * amdgpu_dm_link_setup_psr() - configure psr link
61 * @stream: stream state
62 *
63 * Return: true if success
64 */
65 bool amdgpu_dm_link_setup_psr(struct dc_stream_state *stream)
66 {
67 struct dc_link *link = NULL;
68 struct psr_config psr_config = {0};
69 struct psr_context psr_context = {0};
> 70 struct dc *dc = NULL;
71 bool ret = false;
72
73 if (stream == NULL)
74 return false;
75
76 link = stream->link;
77 dc = link->ctx->dc;
78
79 psr_config.psr_version = link->dpcd_caps.psr_caps.psr_version;
80
81 if (psr_config.psr_version > 0) {
82 psr_config.psr_exit_link_training_required = 0x1;
83 psr_config.psr_frame_capture_indication_req = 0;
84 psr_config.psr_rfb_setup_time = 0x37;
85 psr_config.psr_sdp_transmit_line_num_deadline = 0x20;
86 psr_config.allow_smu_optimizations = 0x0;
87
88 ret = dc_link_setup_psr(link, stream, &psr_config, &psr_context);
89
90 }
91 DRM_DEBUG_DRIVER("PSR link: %d\n", link->psr_settings.psr_feature_enabled);
92
93 return ret;
94 }
95
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[chrome-os:chromeos-5.10 30/68] drivers/bluetooth/btusb.c:2840:30: error: unused variable 'features'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: 9a4485b33838e9b8695558672870a0f29b241133
commit: 6c7fd7681669fa0354948a9a7ad0cf861a44c603 [30/68] CHROMIUM: Bluetooth: disable Intel quality report feature by default
config: arm-chromiumos-arm-customedconfig-chrome-os:chromeos-5.10:9a4485b33838e9b8695558672870a0f29b241133 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 6c7fd7681669fa0354948a9a7ad0cf861a44c603
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/bluetooth/btusb.c: In function 'btusb_setup_intel_new':
>> drivers/bluetooth/btusb.c:2840:30: error: unused variable 'features' [-Werror=unused-variable]
2840 | struct intel_debug_features features;
| ^~~~~~~~
cc1: all warnings being treated as errors
vim +/features +2840 drivers/bluetooth/btusb.c
5a5fc00f3fbe1e Luiz Augusto von Dentz 2021-03-23 2831
5ea7c81a4f34e4 Kiran K 2020-06-25 2832 static int btusb_setup_intel_new(struct hci_dev *hdev)
5ea7c81a4f34e4 Kiran K 2020-06-25 2833 {
5ea7c81a4f34e4 Kiran K 2020-06-25 2834 struct btusb_data *data = hci_get_drvdata(hdev);
5ea7c81a4f34e4 Kiran K 2020-06-25 2835 struct intel_version ver;
5ea7c81a4f34e4 Kiran K 2020-06-25 2836 struct intel_boot_params params;
5ea7c81a4f34e4 Kiran K 2020-06-25 2837 u32 boot_param;
5ea7c81a4f34e4 Kiran K 2020-06-25 2838 char ddcname[64];
5ea7c81a4f34e4 Kiran K 2020-06-25 2839 int err;
5ea7c81a4f34e4 Kiran K 2020-06-25 @2840 struct intel_debug_features features;
5ea7c81a4f34e4 Kiran K 2020-06-25 2841
5ea7c81a4f34e4 Kiran K 2020-06-25 2842 BT_DBG("%s", hdev->name);
5ea7c81a4f34e4 Kiran K 2020-06-25 2843
5ea7c81a4f34e4 Kiran K 2020-06-25 2844 /* Set the default boot parameter to 0x0 and it is updated to
5ea7c81a4f34e4 Kiran K 2020-06-25 2845 * SKU specific boot parameter after reading Intel_Write_Boot_Params
5ea7c81a4f34e4 Kiran K 2020-06-25 2846 * command while downloading the firmware.
5ea7c81a4f34e4 Kiran K 2020-06-25 2847 */
5ea7c81a4f34e4 Kiran K 2020-06-25 2848 boot_param = 0x00000000;
5ea7c81a4f34e4 Kiran K 2020-06-25 2849
5ea7c81a4f34e4 Kiran K 2020-06-25 2850 /* Read the Intel version information to determine if the device
5ea7c81a4f34e4 Kiran K 2020-06-25 2851 * is in bootloader mode or if it already has operational firmware
5ea7c81a4f34e4 Kiran K 2020-06-25 2852 * loaded.
5ea7c81a4f34e4 Kiran K 2020-06-25 2853 */
5ea7c81a4f34e4 Kiran K 2020-06-25 2854 err = btintel_read_version(hdev, &ver);
5ea7c81a4f34e4 Kiran K 2020-06-25 2855 if (err) {
5ea7c81a4f34e4 Kiran K 2020-06-25 2856 bt_dev_err(hdev, "Intel Read version failed (%d)", err);
5ea7c81a4f34e4 Kiran K 2020-06-25 2857 btintel_reset_to_bootloader(hdev);
5ea7c81a4f34e4 Kiran K 2020-06-25 2858 return err;
5ea7c81a4f34e4 Kiran K 2020-06-25 2859 }
5ea7c81a4f34e4 Kiran K 2020-06-25 2860
45d025d65f3572 Luiz Augusto von Dentz 2021-03-23 2861 err = btintel_version_info(hdev, &ver);
45d025d65f3572 Luiz Augusto von Dentz 2021-03-23 2862 if (err)
45d025d65f3572 Luiz Augusto von Dentz 2021-03-23 2863 return err;
45d025d65f3572 Luiz Augusto von Dentz 2021-03-23 2864
dc45d375cfa567 Kiran K 2020-08-26 2865 err = btusb_intel_download_firmware(hdev, &ver, ¶ms, &boot_param);
5ea7c81a4f34e4 Kiran K 2020-06-25 2866 if (err)
5ea7c81a4f34e4 Kiran K 2020-06-25 2867 return err;
5ea7c81a4f34e4 Kiran K 2020-06-25 2868
5ea7c81a4f34e4 Kiran K 2020-06-25 2869 /* controller is already having an operational firmware */
5ea7c81a4f34e4 Kiran K 2020-06-25 2870 if (ver.fw_variant == 0x23)
5ea7c81a4f34e4 Kiran K 2020-06-25 2871 goto finish;
5ea7c81a4f34e4 Kiran K 2020-06-25 2872
5a5fc00f3fbe1e Luiz Augusto von Dentz 2021-03-23 2873 err = btusb_intel_boot(hdev, boot_param);
5a5fc00f3fbe1e Luiz Augusto von Dentz 2021-03-23 2874 if (err)
e5889af62fce08 Tedd Ho-Jeong An 2018-01-24 2875 return err;
cda0dd7809f89e Marcel Holtmann 2015-01-26 2876
cda0dd7809f89e Marcel Holtmann 2015-01-26 2877 clear_bit(BTUSB_BOOTLOADER, &data->flags);
cda0dd7809f89e Marcel Holtmann 2015-01-26 2878
5ea7c81a4f34e4 Kiran K 2020-06-25 2879 err = btusb_setup_intel_new_get_fw_name(&ver, ¶ms, ddcname,
5ea7c81a4f34e4 Kiran K 2020-06-25 2880 sizeof(ddcname), "ddc");
5ea7c81a4f34e4 Kiran K 2020-06-25 2881
b772c29f794fed Luiz Augusto von Dentz 2021-03-23 2882 if (err < 0) {
5ea7c81a4f34e4 Kiran K 2020-06-25 2883 bt_dev_err(hdev, "Unsupported Intel firmware naming");
5ea7c81a4f34e4 Kiran K 2020-06-25 2884 } else {
5ea7c81a4f34e4 Kiran K 2020-06-25 2885 /* Once the device is running in operational mode, it needs to
5ea7c81a4f34e4 Kiran K 2020-06-25 2886 * apply the device configuration (DDC) parameters.
52cc916818c86a Tedd Ho-Jeong An 2015-06-12 2887 *
5ea7c81a4f34e4 Kiran K 2020-06-25 2888 * The device can work without DDC parameters, so even if it
5ea7c81a4f34e4 Kiran K 2020-06-25 2889 * fails to load the file, no need to fail the setup.
52cc916818c86a Tedd Ho-Jeong An 2015-06-12 2890 */
5ea7c81a4f34e4 Kiran K 2020-06-25 2891 btintel_load_ddc_config(hdev, ddcname);
5ea7c81a4f34e4 Kiran K 2020-06-25 2892 }
52cc916818c86a Tedd Ho-Jeong An 2015-06-12 2893
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2894 /* Read the Intel version information after loading the FW */
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2895 err = btintel_read_version(hdev, &ver);
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2896 if (err)
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2897 return err;
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2898
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2899 btintel_version_info(hdev, &ver);
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2900
7fd673bcdacc85 Marcel Holtmann 2020-04-03 2901 finish:
fc04590e3d3921 Miao-chen Chou 2020-04-03 2902 /* All Intel controllers that support the Microsoft vendor
fc04590e3d3921 Miao-chen Chou 2020-04-03 2903 * extension are using 0xFC1E for VsMsftOpCode.
fc04590e3d3921 Miao-chen Chou 2020-04-03 2904 */
fc04590e3d3921 Miao-chen Chou 2020-04-03 2905 switch (ver.hw_variant) {
1640e21eeaaf8d Miao-chen Chou 2020-12-17 2906 case 0x11: /* JfP */
fc04590e3d3921 Miao-chen Chou 2020-04-03 2907 case 0x12: /* ThP */
1640e21eeaaf8d Miao-chen Chou 2020-12-17 2908 case 0x13: /* HrP */
1640e21eeaaf8d Miao-chen Chou 2020-12-17 2909 case 0x14: /* CcP */
fc04590e3d3921 Miao-chen Chou 2020-04-03 2910 hci_set_msft_opcode(hdev, 0xFC1E);
fc04590e3d3921 Miao-chen Chou 2020-04-03 2911 break;
fc04590e3d3921 Miao-chen Chou 2020-04-03 2912 }
fc04590e3d3921 Miao-chen Chou 2020-04-03 2913
213445b2b40e87 Marcel Holtmann 2015-10-21 2914 /* Set the event mask for Intel specific vendor events. This enables
213445b2b40e87 Marcel Holtmann 2015-10-21 2915 * a few extra events that are useful during general operation. It
213445b2b40e87 Marcel Holtmann 2015-10-21 2916 * does not enable any debugging related events.
213445b2b40e87 Marcel Holtmann 2015-10-21 2917 *
213445b2b40e87 Marcel Holtmann 2015-10-21 2918 * The device will function correctly without these events enabled
213445b2b40e87 Marcel Holtmann 2015-10-21 2919 * and thus no need to fail the setup.
213445b2b40e87 Marcel Holtmann 2015-10-21 2920 */
213445b2b40e87 Marcel Holtmann 2015-10-21 2921 btintel_set_event_mask(hdev, false);
213445b2b40e87 Marcel Holtmann 2015-10-21 2922
cda0dd7809f89e Marcel Holtmann 2015-01-26 2923 return 0;
cda0dd7809f89e Marcel Holtmann 2015-01-26 2924 }
cda0dd7809f89e Marcel Holtmann 2015-01-26 2925
:::::: The code at line 2840 was first introduced by commit
:::::: 5ea7c81a4f34e4dbb9c7bfd0fe18e5fba8a7f8f9 Bluetooth: btusb: Refactor of firmware download flow for Intel conrollers
:::::: TO: Kiran K <kiran.k(a)intel.com>
:::::: CC: Marcel Holtmann <marcel(a)holtmann.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[xlnx:xlnx_rebase_v5.4 1171/1762] drivers/irqchip/irq-xilinx-intc.c:295:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'handle_irq'?
by kernel test robot
Hi Michal,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: d128303e4c53bcf7775c46771bf64c71596f3303
commit: e310970affe01f4432b5a022438bae976c7f324f [1171/1762] irqchip: xilinx: Enable generic irq multi handler
config: i386-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/Xilinx/linux-xlnx/commit/e310970affe01f4432b5a022438ba...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout e310970affe01f4432b5a022438bae976c7f324f
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/irqchip/irq-xilinx-intc.c: In function 'xilinx_intc_of_init':
>> drivers/irqchip/irq-xilinx-intc.c:295:3: error: implicit declaration of function 'set_handle_irq'; did you mean 'handle_irq'? [-Werror=implicit-function-declaration]
295 | set_handle_irq(xil_intc_handle_irq);
| ^~~~~~~~~~~~~~
| handle_irq
cc1: some warnings being treated as errors
vim +295 drivers/irqchip/irq-xilinx-intc.c
194
195 static int __init xilinx_intc_of_init(struct device_node *intc,
196 struct device_node *parent)
197 {
198 int ret, irq;
199 struct xintc_irq_chip *irqc;
200 struct irq_chip *intc_dev;
201 u32 cpu_id = 0;
202
203 ret = of_property_read_u32(intc, "cpu-id", &cpu_id);
204 if (ret < 0)
205 pr_err("%s: %pOF: cpu_id not found\n", __func__, intc);
206
207 /* No parent means it is primary intc */
208 if (!parent) {
209 irqc = per_cpu_ptr(&primary_intc, cpu_id);
210 if (irqc->base) {
211 pr_err("%pOF: %s: cpu %d has already irq controller\n",
212 intc, __func__, cpu_id);
213 return -EINVAL;
214 }
215 } else {
216 irqc = kzalloc(sizeof(*irqc), GFP_KERNEL);
217 if (!irqc)
218 return -ENOMEM;
219 }
220
221 irqc->base = of_iomap(intc, 0);
222 BUG_ON(!irqc->base);
223
224 ret = of_property_read_u32(intc, "xlnx,num-intr-inputs", &irqc->nr_irq);
225 if (ret < 0) {
226 pr_err("irq-xilinx: unable to read xlnx,num-intr-inputs\n");
227 goto error;
228 }
229
230 ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask);
231 if (ret < 0) {
232 pr_warn("irq-xilinx: unable to read xlnx,kind-of-intr\n");
233 irqc->intr_mask = 0;
234 }
235
236 if (irqc->intr_mask >> irqc->nr_irq)
237 pr_warn("irq-xilinx: mismatch in kind-of-intr param\n");
238
239 pr_info("irq-xilinx: %pOF: num_irq=%d, edge=0x%x\n",
240 intc, irqc->nr_irq, irqc->intr_mask);
241
242 intc_dev = kzalloc(sizeof(*intc_dev), GFP_KERNEL);
243 if (!intc_dev) {
244 ret = -ENOMEM;
245 goto error;
246 }
247
248 intc_dev->name = intc->full_name;
249 intc_dev->irq_unmask = intc_enable_or_unmask,
250 intc_dev->irq_mask = intc_disable_or_mask,
251 intc_dev->irq_ack = intc_ack,
252 intc_dev->irq_mask_ack = intc_mask_ack,
253 irqc->intc_dev = intc_dev;
254
255 irqc->write_fn = xintc_write;
256 irqc->read_fn = xintc_read;
257 /*
258 * Disable all external interrupts until they are
259 * explicity requested.
260 */
261 irqc->write_fn(irqc->base + IER, 0);
262
263 /* Acknowledge any pending interrupts just in case. */
264 irqc->write_fn(irqc->base + IAR, 0xffffffff);
265
266 /* Turn on the Master Enable. */
267 irqc->write_fn(irqc->base + MER, MER_HIE | MER_ME);
268 if (!(irqc->read_fn(irqc->base + MER) & (MER_HIE | MER_ME))) {
269 irqc->write_fn = xintc_write_be;
270 irqc->read_fn = xintc_read_be;
271 irqc->write_fn(irqc->base + MER, MER_HIE | MER_ME);
272 }
273
274 irqc->root_domain = irq_domain_add_linear(intc, irqc->nr_irq,
275 &xintc_irq_domain_ops, irqc);
276 if (!irqc->root_domain) {
277 pr_err("irq-xilinx: Unable to create IRQ domain\n");
278 ret = -EINVAL;
279 goto err_alloc;
280 }
281
282 if (parent) {
283 irq = irq_of_parse_and_map(intc, 0);
284 if (irq) {
285 irq_set_chained_handler_and_data(irq,
286 xil_intc_irq_handler,
287 irqc);
288 } else {
289 pr_err("irq-xilinx: interrupts property not in DT\n");
290 ret = -EINVAL;
291 goto err_alloc;
292 }
293 } else {
294 irq_set_default_host(irqc->root_domain);
> 295 set_handle_irq(xil_intc_handle_irq);
296 }
297
298 return 0;
299
300 err_alloc:
301 kfree(intc_dev);
302 error:
303 iounmap(irqc->base);
304 if (parent)
305 kfree(irqc);
306 return ret;
307
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[linux-next:master 3804/10007] drivers/gpu/drm/msm/dp/dp_display.c:1045:21: warning: variable 'drm' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 19ae1f2bd9c091059f80646604ccef8a1e614f57
commit: 1c3b7ac1a71d4266d7243fe5f7cd530322c59583 [3804/10007] drm/msm: pass dump state as a function argument
config: arm64-randconfig-r015-20210615 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-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 1c3b7ac1a71d4266d7243fe5f7cd530322c59583
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/msm/dp/dp_display.c:506:19: warning: variable 'hpd' set but not used [-Wunused-but-set-variable]
struct dp_usbpd *hpd;
^
>> drivers/gpu/drm/msm/dp/dp_display.c:1045:21: warning: variable 'drm' set but not used [-Wunused-but-set-variable]
struct drm_device *drm;
^
2 warnings generated.
vim +/drm +1045 drivers/gpu/drm/msm/dp/dp_display.c
c943b4948b5848 Chandan Uddaraju 2020-08-27 1041
1c3b7ac1a71d42 Dmitry Baryshkov 2021-04-27 1042 void msm_dp_snapshot(struct msm_disp_state *disp_state, struct msm_dp *dp)
95e84adc2da78e Abhinav Kumar 2021-04-16 1043 {
95e84adc2da78e Abhinav Kumar 2021-04-16 1044 struct dp_display_private *dp_display;
95e84adc2da78e Abhinav Kumar 2021-04-16 @1045 struct drm_device *drm;
95e84adc2da78e Abhinav Kumar 2021-04-16 1046
95e84adc2da78e Abhinav Kumar 2021-04-16 1047 dp_display = container_of(dp, struct dp_display_private, dp_display);
95e84adc2da78e Abhinav Kumar 2021-04-16 1048 drm = dp->drm_dev;
95e84adc2da78e Abhinav Kumar 2021-04-16 1049
95e84adc2da78e Abhinav Kumar 2021-04-16 1050 /*
95e84adc2da78e Abhinav Kumar 2021-04-16 1051 * if we are reading registers we need the link clocks to be on
95e84adc2da78e Abhinav Kumar 2021-04-16 1052 * however till DP cable is connected this will not happen as we
95e84adc2da78e Abhinav Kumar 2021-04-16 1053 * do not know the resolution to power up with. Hence check the
95e84adc2da78e Abhinav Kumar 2021-04-16 1054 * power_on status before dumping DP registers to avoid crash due
95e84adc2da78e Abhinav Kumar 2021-04-16 1055 * to unclocked access
95e84adc2da78e Abhinav Kumar 2021-04-16 1056 */
95e84adc2da78e Abhinav Kumar 2021-04-16 1057 mutex_lock(&dp_display->event_mutex);
95e84adc2da78e Abhinav Kumar 2021-04-16 1058
95e84adc2da78e Abhinav Kumar 2021-04-16 1059 if (!dp->power_on) {
95e84adc2da78e Abhinav Kumar 2021-04-16 1060 mutex_unlock(&dp_display->event_mutex);
95e84adc2da78e Abhinav Kumar 2021-04-16 1061 return;
95e84adc2da78e Abhinav Kumar 2021-04-16 1062 }
95e84adc2da78e Abhinav Kumar 2021-04-16 1063
95e84adc2da78e Abhinav Kumar 2021-04-16 1064 dp_catalog_snapshot(dp_display->catalog, disp_state);
95e84adc2da78e Abhinav Kumar 2021-04-16 1065
95e84adc2da78e Abhinav Kumar 2021-04-16 1066 mutex_unlock(&dp_display->event_mutex);
95e84adc2da78e Abhinav Kumar 2021-04-16 1067 }
95e84adc2da78e Abhinav Kumar 2021-04-16 1068
:::::: The code at line 1045 was first introduced by commit
:::::: 95e84adc2da78e2c6db4dc59f1627c114c14e436 drm/msm/dp: add API to take DP register snapshot
:::::: TO: Abhinav Kumar <abhinavk(a)codeaurora.org>
:::::: CC: Rob Clark <robdclark(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[zen-kernel-zen-kernel:5.12/futex2 3/16] kernel/sys_ni.c:157:1: warning: no previous prototype for function '__x32_compat_sys_futex_waitv'
by kernel test robot
Hi André,
FYI, the error/warning still remains.
tree: https://github.com/zen-kernel/zen-kernel 5.12/futex2
head: 81255c11c48cc2302883425c87318f9cad37e7e6
commit: 04a97ad2406166e12a13f09c9981f18e6487f530 [3/16] futex2: Implement vectorized wait
config: x86_64-randconfig-a011-20210615 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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://github.com/zen-kernel/zen-kernel/commit/04a97ad2406166e12a13f09c9...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.12/futex2
git checkout 04a97ad2406166e12a13f09c9981f18e6487f530
# 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 >>):
kernel/sys_ni.c:155:1: warning: no previous prototype for function '__ia32_sys_futex_wake' [-Wmissing-prototypes]
COND_SYSCALL(futex_wake);
^
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:142:1: note: expanded from here
__ia32_sys_futex_wake
^
kernel/sys_ni.c:155:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:156:1: warning: no previous prototype for function '__x64_sys_futex_waitv' [-Wmissing-prototypes]
COND_SYSCALL(futex_waitv);
^
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:146:1: note: expanded from here
__x64_sys_futex_waitv
^
kernel/sys_ni.c:156:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:156:1: warning: no previous prototype for function '__ia32_sys_futex_waitv' [-Wmissing-prototypes]
COND_SYSCALL(futex_waitv);
^
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:150:1: note: expanded from here
__ia32_sys_futex_waitv
^
kernel/sys_ni.c:156:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:157:1: warning: no previous prototype for function '__ia32_compat_sys_futex_waitv' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(futex_waitv);
^
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:154:1: note: expanded from here
__ia32_compat_sys_futex_waitv
^
kernel/sys_ni.c:157:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
>> kernel/sys_ni.c:157:1: warning: no previous prototype for function '__x32_compat_sys_futex_waitv' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(futex_waitv);
^
arch/x86/include/asm/syscall_wrapper.h:219:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__X32_COMPAT_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:175:2: note: expanded from macro '__X32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(x32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:158:1: note: expanded from here
__x32_compat_sys_futex_waitv
^
kernel/sys_ni.c:157:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:219:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__X32_COMPAT_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:175:2: note: expanded from macro '__X32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(x32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:164:1: warning: no previous prototype for function '__x64_sys_kexec_load' [-Wmissing-prototypes]
COND_SYSCALL(kexec_load);
^
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:162:1: note: expanded from here
__x64_sys_kexec_load
^
kernel/sys_ni.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:256:2: note: expanded from macro 'COND_SYSCALL'
__X64_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:100:2: note: expanded from macro '__X64_COND_SYSCALL'
__COND_SYSCALL(x64, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:164:1: warning: no previous prototype for function '__ia32_sys_kexec_load' [-Wmissing-prototypes]
COND_SYSCALL(kexec_load);
^
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:166:1: note: expanded from here
__ia32_sys_kexec_load
^
kernel/sys_ni.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:257:2: note: expanded from macro 'COND_SYSCALL'
__IA32_COND_SYSCALL(name)
^
arch/x86/include/asm/syscall_wrapper.h:120:2: note: expanded from macro '__IA32_COND_SYSCALL'
__COND_SYSCALL(ia32, sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:165:1: warning: no previous prototype for function '__ia32_compat_sys_kexec_load' [-Wmissing-prototypes]
COND_SYSCALL_COMPAT(kexec_load);
^
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:14: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
<scratch space>:170:1: note: expanded from here
__ia32_compat_sys_kexec_load
^
kernel/sys_ni.c:165:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/x86/include/asm/syscall_wrapper.h:218:2: note: expanded from macro 'COND_SYSCALL_COMPAT'
__IA32_COMPAT_COND_SYSCALL(name) \
^
arch/x86/include/asm/syscall_wrapper.h:148:2: note: expanded from macro '__IA32_COMPAT_COND_SYSCALL'
__COND_SYSCALL(ia32, compat_sys_##name)
^
arch/x86/include/asm/syscall_wrapper.h:83:9: note: expanded from macro '__COND_SYSCALL'
__weak long __##abi##_##name(const struct pt_regs *__unused) \
^
kernel/sys_ni.c:165:1: warning: no previous prototype for function '__x32_compat_sys_kexec_load' [-Wmissing-prototypes]
vim +/__x32_compat_sys_futex_waitv +157 kernel/sys_ni.c
152
153 /* kernel/futex2.c */
154 COND_SYSCALL(futex_wait);
155 COND_SYSCALL(futex_wake);
156 COND_SYSCALL(futex_waitv);
> 157 COND_SYSCALL_COMPAT(futex_waitv);
158
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[xlnx:xlnx_rebase_v5.4 1116/1762] drivers/gpio/gpio-xilinx.c:377:12: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744071562067967 to 2147483647
by kernel test robot
Hi Srinivas,
FYI, the error/warning still remains.
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: d128303e4c53bcf7775c46771bf64c71596f3303
commit: 256f37f6020654ff3d8044852f75542882301a26 [1116/1762] gpio: xilinx: Add irq support to the driver
config: x86_64-randconfig-r016-20210615 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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://github.com/Xilinx/linux-xlnx/commit/256f37f6020654ff3d8044852f755...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 256f37f6020654ff3d8044852f75542882301a26
# 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/gpio/gpio-xilinx.c:377:12: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744071562067967 to 2147483647 [-Wconstant-conversion]
~XGPIO_GIER_IE);
^~~~~~~~~~~~~~~
drivers/gpio/gpio-xilinx.c:39:45: note: expanded from macro 'xgpio_writereg'
# define xgpio_writereg(offset, val) writel(val, offset)
~~~~~~ ^~~
drivers/gpio/gpio-xilinx.c:472:14: warning: variable 'status' set but not used [-Wunused-but-set-variable]
u32 offset, status, channel = 1;
^
2 warnings generated.
vim +377 drivers/gpio/gpio-xilinx.c
342
343 /**
344 * xgpiops_irq_mask - Write the specified signal of the GPIO device.
345 * @irq_data: per irq and chip data passed down to chip functions
346 */
347 static void xgpio_irq_mask(struct irq_data *irq_data)
348 {
349 unsigned long flags;
350 struct xgpio_instance *chip = irq_data_get_irq_chip_data(irq_data);
351 u32 offset = irq_data->irq - chip->irq_base;
352 u32 temp;
353 s32 val;
354 int index = xgpio_index(chip, 0);
355
356 pr_debug("%s: Disable %d irq, irq_enable_mask 0x%x\n",
357 __func__, offset, chip->irq_enable);
358
359 spin_lock_irqsave(&chip->gpio_lock[index], flags);
360
361 chip->irq_enable &= ~BIT(offset);
362
363 if (!chip->irq_enable) {
364 /* Enable per channel interrupt */
365 temp = xgpio_readreg(chip->regs + XGPIO_IPIER_OFFSET);
366 val = offset - chip->gpio_width[0] + 1;
367 if (val > 0)
368 temp &= 1;
369 else
370 temp &= 2;
371 xgpio_writereg(chip->regs + XGPIO_IPIER_OFFSET, temp);
372
373 /* Disable global interrupt if channel interrupts are unused */
374 temp = xgpio_readreg(chip->regs + XGPIO_IPIER_OFFSET);
375 if (!temp)
376 xgpio_writereg(chip->regs + XGPIO_GIER_OFFSET,
> 377 ~XGPIO_GIER_IE);
378 }
379 spin_unlock_irqrestore(&chip->gpio_lock[index], flags);
380 }
381
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months