[jimc:dd-drm-next 6/8] include/linux/dynamic_debug.h:267:27: error: expected ')' before '&' token
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm-next
head: 7c9c791fee34dc8f3ef72a288efd6de7b48d5fb2
commit: fde769af5cc2d7134533d623f5808d114843263e [6/8] drm_print: add choice to use dynamic debug in drm-debug
config: i386-randconfig-c001-20210816 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/jimc/linux/commit/fde769af5cc2d7134533d623f5808d114843...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout fde769af5cc2d7134533d623f5808d114843263e
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/printk.h:456,
from include/asm-generic/bug.h:22,
from arch/x86/include/asm/bug.h:84,
from include/linux/bug.h:5,
from include/linux/io.h:11,
from drivers/gpu/drm/drm_print.c:30:
>> include/linux/dynamic_debug.h:267:27: error: expected ')' before '&' token
267 | module_param_cbd(fsname, ¶m_ops_dyndbg, &var, 0644, \
| ^
drivers/gpu/drm/drm_print.c:60:1: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
60 | DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug, __drm_debug,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:265:37: warning: 'dyndbg_cats_debug' defined but not used [-Wunused-const-variable=]
265 | static const struct dyndbg_bitdesc dyndbg_cats_##fsname[] = \
| ^~~~~~~~~~~~
drivers/gpu/drm/drm_print.c:60:1: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
60 | DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug, __drm_debug,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +267 include/linux/dynamic_debug.h
ec8e20fb31430e Jim Cromie 2021-07-28 245
ec8e20fb31430e Jim Cromie 2021-07-28 246 #if defined(CONFIG_DYNAMIC_DEBUG) || \
ec8e20fb31430e Jim Cromie 2021-07-28 247 (defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE))
ec8e20fb31430e Jim Cromie 2021-07-28 248 /**
ec8e20fb31430e Jim Cromie 2021-07-28 249 * DEFINE_DYNAMIC_DEBUG_CATEGORIES() - define debug categories, bitmap, sysfs-knob
ec8e20fb31430e Jim Cromie 2021-07-28 250 * @fsname: parameter basename under /sys
ec8e20fb31430e Jim Cromie 2021-07-28 251 * @var: C-identifier holding state
ec8e20fb31430e Jim Cromie 2021-07-28 252 * @_desc: string summarizing the controls provided
ec8e20fb31430e Jim Cromie 2021-07-28 253 * @...: list of struct dyndbg_bitdesc initializations
ec8e20fb31430e Jim Cromie 2021-07-28 254 *
ec8e20fb31430e Jim Cromie 2021-07-28 255 * Defines /sys/modules/$modname/parameters/@fsname, and @bit_descs,
ec8e20fb31430e Jim Cromie 2021-07-28 256 * which maps bits 0-N to categories of pr_debugs to be controlled.
ec8e20fb31430e Jim Cromie 2021-07-28 257 * This is effectively write only, because controlled callsites can be
ec8e20fb31430e Jim Cromie 2021-07-28 258 * further modified via >control.
ec8e20fb31430e Jim Cromie 2021-07-28 259 *
ec8e20fb31430e Jim Cromie 2021-07-28 260 * Also calls MODULE_PARM_DESC(fsname, _desc), with the intent to
ec8e20fb31430e Jim Cromie 2021-07-28 261 * generate the bit_legend and apply it to the given bit_descs
ec8e20fb31430e Jim Cromie 2021-07-28 262 */
ec8e20fb31430e Jim Cromie 2021-07-28 263 #define DEFINE_DYNAMIC_DEBUG_CATEGORIES(fsname, var, _desc, ...) \
ec8e20fb31430e Jim Cromie 2021-07-28 264 MODULE_PARM_DESC(fsname, _desc); \
ec8e20fb31430e Jim Cromie 2021-07-28 265 static const struct dyndbg_bitdesc dyndbg_cats_##fsname[] = \
ec8e20fb31430e Jim Cromie 2021-07-28 266 { __VA_ARGS__, { NULL, NULL } }; \
ec8e20fb31430e Jim Cromie 2021-07-28 @267 module_param_cbd(fsname, ¶m_ops_dyndbg, &var, 0644, \
ec8e20fb31430e Jim Cromie 2021-07-28 268 &dyndbg_cats_##fsname)
ec8e20fb31430e Jim Cromie 2021-07-28 269
:::::: The code at line 267 was first introduced by commit
:::::: ec8e20fb31430e6a18affbddaac7fbe29255ffaa dyndbg: add DEFINE_DYNAMIC_DEBUG_CATEGORIES and callbacks
:::::: TO: Jim Cromie <jim.cromie(a)gmail.com>
:::::: CC: Jim Cromie <jim.cromie(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[sashal-linux-stable:pending-5.4 30/42] include/linux/compiler.h:417:45: error: call to '__compiletime_assert_259' declared with attribute error: BUILD_BUG failed
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.4
head: b98b3164c31115159bca6e3c71c0c98426868ca9
commit: cc784e813e05f1a5773275d71469dab8ea13c08f [30/42] net: igmp: fix data-race in igmp_ifc_timer_expire()
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.4
git checkout cc784e813e05f1a5773275d71469dab8ea13c08f
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash net/ipv4/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the sashal-linux-stable/pending-5.4 HEAD b98b3164c31115159bca6e3c71c0c98426868ca9 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:9,
from net/ipv4/igmp.c:69:
net/ipv4/igmp.c: In function 'igmp_ifc_timer_expire':
>> include/linux/compiler.h:417:45: error: call to '__compiletime_assert_259' declared with attribute error: BUILD_BUG failed
417 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:398:25: note: in definition of macro '__compiletime_assert'
398 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:417:9: note: in expansion of macro '_compiletime_assert'
417 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
| ^~~~~~~~~~~~~~~~
arch/riscv/include/asm/cmpxchg.h:335:17: note: in expansion of macro 'BUILD_BUG'
335 | BUILD_BUG(); \
| ^~~~~~~~~
arch/riscv/include/asm/cmpxchg.h:344:30: note: in expansion of macro '__cmpxchg'
344 | (__typeof__(*(ptr))) __cmpxchg((ptr), \
| ^~~~~~~~~
net/ipv4/igmp.c:815:21: note: in expansion of macro 'cmpxchg'
815 | if (cmpxchg(&in_dev->mr_ifc_count,
| ^~~~~~~
vim +/__compiletime_assert_259 +417 include/linux/compiler.h
9a8ab1c39970a4 Daniel Santos 2013-02-21 403
9a8ab1c39970a4 Daniel Santos 2013-02-21 404 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 405 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 406
9a8ab1c39970a4 Daniel Santos 2013-02-21 407 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 408 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 409 * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 410 * @msg: a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 411 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 412 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 413 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 414 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 415 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 416 #define compiletime_assert(condition, msg) \
3910babeac1ab0 Vegard Nossum 2020-04-06 @417 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 418
:::::: The code at line 417 was first introduced by commit
:::::: 3910babeac1ab031f4e178042cbd1af9a9a0ec51 compiler.h: fix error in BUILD_BUG_ON() reporting
:::::: TO: Vegard Nossum <vegard.nossum(a)oracle.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v2] drm: avoid races with modesetting rights
by kernel test robot
Hi Desmond,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20210813]
[also build test WARNING on v5.14-rc5]
[cannot apply to linus/master v5.14-rc5 v5.14-rc4 v5.14-rc3]
[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/Desmond-Cheong-Zhi-Xi/drm-avoid-...
base: 4b358aabb93a2c654cd1dcab1a25a589f6e2b153
config: arc-randconfig-r031-20210815 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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/cf6d8354b7d7953cd866fad004cbb189a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Desmond-Cheong-Zhi-Xi/drm-avoid-races-with-modesetting-rights/20210815-234145
git checkout cf6d8354b7d7953cd866fad004cbb189adfa074f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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/drm_auth.c:483:6: warning: no previous prototype for 'master_flush' [-Wmissing-prototypes]
483 | void master_flush(struct callback_head *cb)
| ^~~~~~~~~~~~
vim +/master_flush +483 drivers/gpu/drm/drm_auth.c
479
480 /* After flushing, all readers that might have seen old master/lease
481 * permissions are guaranteed to have completed.
482 */
> 483 void master_flush(struct callback_head *cb)
484 {
485 struct drm_device *dev = container_of(cb, struct drm_device,
486 master_flush_work);
487
488 down_write(&dev->master_rwsem);
489 up_write(&dev->master_rwsem);
490 }
491
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[jimc:dd-drm-next 2/8] lib/dynamic_debug.c:586: warning: expecting prototype for param_set_dyndbg(). Prototype was for FMT_QUERY_SIZE() instead
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm-next
head: 7c9c791fee34dc8f3ef72a288efd6de7b48d5fb2
commit: ec8e20fb31430e6a18affbddaac7fbe29255ffaa [2/8] dyndbg: add DEFINE_DYNAMIC_DEBUG_CATEGORIES and callbacks
config: hexagon-randconfig-r045-20210816 (attached as .config)
compiler: clang version 12.0.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/jimc/linux/commit/ec8e20fb31430e6a18affbddaac7fbe29255...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout ec8e20fb31430e6a18affbddaac7fbe29255ffaa
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash
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 >>):
>> lib/dynamic_debug.c:586: warning: expecting prototype for param_set_dyndbg(). Prototype was for FMT_QUERY_SIZE() instead
vim +586 lib/dynamic_debug.c
579
580 /**
581 * param_set_dyndbg() - drm.debug style bits=>categories setter
582 * @instr: string echo>d to sysfs
583 * @kp: struct kernel_param* ->data has bitmap
584 * Exported to support DEFINE_DYNAMIC_DEBUG_CATEGORIES
585 */
> 586 #define FMT_QUERY_SIZE 128 /* typically need <40 */
587 int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
588 {
589 unsigned long inbits;
590 int rc, i, matches = 0, totct = 0;
591 char query[FMT_QUERY_SIZE];
592 const struct dyndbg_bitdesc *bitmap = kp->data;
593
594 if (!bitmap) {
595 pr_err("set_dyndbg: no bits=>queries map\n");
596 return -EINVAL;
597 }
598 rc = kstrtoul(instr, 0, &inbits);
599 if (rc) {
600 pr_err("set_dyndbg: failed\n");
601 return rc;
602 }
603 vpr_info("set_dyndbg: input 0x%lx\n", inbits);
604
605 for (i = 0; bitmap->prefix; i++, bitmap++) {
606 snprintf(query, FMT_QUERY_SIZE, "format '^%s' %cp", bitmap->prefix,
607 test_bit(i, &inbits) ? '+' : '-');
608
609 matches = dynamic_debug_exec_queries(query, kp->mod->name);
610
611 v2pr_info("bit-%d: %d matches on '%s'\n", i, matches, query);
612 totct += matches;
613 }
614 vpr_info("total matches: %d\n", totct);
615 return 0;
616 }
617 EXPORT_SYMBOL(param_set_dyndbg);
618
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[jimc:dd-drm-next 6/8] drivers/gpu/drm/drm_print.c:60:1: error: expected identifier
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm-next
head: 7c9c791fee34dc8f3ef72a288efd6de7b48d5fb2
commit: fde769af5cc2d7134533d623f5808d114843263e [6/8] drm_print: add choice to use dynamic debug in drm-debug
config: powerpc-randconfig-r023-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/jimc/linux/commit/fde769af5cc2d7134533d623f5808d114843...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout fde769af5cc2d7134533d623f5808d114843263e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/gpu/drm/
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 >>):
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:124:1: note: expanded from here
__do_outl
^
arch/powerpc/include/asm/io.h:537:62: note: expanded from macro '__do_outl'
#define __do_outl(val, port) writel(val,(PCI_IO_ADDR)_IO_BASE+port);
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/drm_print.c:30:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:138:1: note: expanded from here
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/drm_print.c:30:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:140:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/drm_print.c:30:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:142:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/drm_print.c:30:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:144:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/drm_print.c:30:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:146:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/gpu/drm/drm_print.c:30:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:148:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/gpu/drm/drm_print.c:60:1: error: expected identifier
DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug, __drm_debug,
^
include/linux/dynamic_debug.h:267:27: note: expanded from macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
module_param_cbd(fsname, ¶m_ops_dyndbg, &var, 0644, \
^
>> drivers/gpu/drm/drm_print.c:60:1: warning: declaration specifier missing, defaulting to 'int'
include/linux/dynamic_debug.h:267:2: note: expanded from macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
module_param_cbd(fsname, ¶m_ops_dyndbg, &var, 0644, \
^
>> drivers/gpu/drm/drm_print.c:60:1: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
include/linux/dynamic_debug.h:267:18: note: expanded from macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
module_param_cbd(fsname, ¶m_ops_dyndbg, &var, 0644, \
^
13 warnings and 2 errors generated.
vim +60 drivers/gpu/drm/drm_print.c
57
58 #ifdef CONFIG_DRM_USE_DYNAMIC_DEBUG
59 #include <linux/dynamic_debug.h>
> 60 DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug, __drm_debug,
61 DRM_DEBUG_DESC,
62 _DD_cat_(DRM_DBG_CAT_CORE),
63 _DD_cat_(DRM_DBG_CAT_DRIVER),
64 _DD_cat_(DRM_DBG_CAT_KMS),
65 _DD_cat_(DRM_DBG_CAT_PRIME),
66 _DD_cat_(DRM_DBG_CAT_ATOMIC),
67 _DD_cat_(DRM_DBG_CAT_VBL),
68 _DD_cat_(DRM_DBG_CAT_STATE),
69 _DD_cat_(DRM_DBG_CAT_LEASE),
70 _DD_cat_(DRM_DBG_CAT_DP),
71 _DD_cat_(DRM_DBG_CAT_DRMRES));
72
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH 16/17] btrfs: zoned: finish fully written block group
by kernel test robot
Hi Naohiro,
I love your patch! Perhaps something to improve:
[auto build test WARNING on kdave/for-next]
[cannot apply to v5.14-rc5 next-20210811]
[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/Naohiro-Aota/ZNS-Support-for-Btr...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: hexagon-randconfig-r041-20210810 (attached as .config)
compiler: clang version 12.0.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/ccecd271dc2436fe587af8d2083c3c96a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Naohiro-Aota/ZNS-Support-for-Btrfs/20210811-222302
git checkout ccecd271dc2436fe587af8d2083c3c96ab86e309
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> fs/btrfs/zoned.c:1948:2: warning: variable 'ret' is used uninitialized whenever '?:' condition is true [-Wsometimes-uninitialized]
ASSERT(!list_empty(&block_group->active_bg_list));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/btrfs/ctree.h:3458:3: note: expanded from macro 'ASSERT'
(likely(expr) ? (void)0 : assertfail(#expr, __FILE__, __LINE__))
^~~~~~~~~~~~
include/linux/compiler.h:77:20: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/btrfs/zoned.c:1956:9: note: uninitialized use occurs here
return ret;
^~~
fs/btrfs/zoned.c:1948:2: note: remove the '?:' if its condition is always false
ASSERT(!list_empty(&block_group->active_bg_list));
^
fs/btrfs/ctree.h:3458:3: note: expanded from macro 'ASSERT'
(likely(expr) ? (void)0 : assertfail(#expr, __FILE__, __LINE__))
^
include/linux/compiler.h:77:20: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
fs/btrfs/zoned.c:1908:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 warning generated.
vim +1948 fs/btrfs/zoned.c
1900
1901 int btrfs_zone_finish_endio(struct btrfs_fs_info *fs_info, u64 logical,
1902 u64 length)
1903 {
1904 struct btrfs_block_group *block_group;
1905 struct map_lookup *map;
1906 struct btrfs_device *device;
1907 u64 physical;
1908 int ret;
1909
1910 if (!btrfs_is_zoned(fs_info))
1911 return 0;
1912
1913 block_group = btrfs_lookup_block_group(fs_info, logical);
1914 ASSERT(block_group);
1915
1916 if (logical + length < block_group->start + block_group->zone_capacity) {
1917 ret = 0;
1918 goto out;
1919 }
1920
1921 spin_lock(&block_group->lock);
1922
1923 if (!block_group->zone_is_active) {
1924 spin_unlock(&block_group->lock);
1925 ret = 0;
1926 goto out;
1927 }
1928
1929 block_group->zone_is_active = 0;
1930 /* We should have consumed all the free space */
1931 ASSERT(block_group->alloc_offset == block_group->zone_capacity);
1932 ASSERT(block_group->free_space_ctl->free_space == 0);
1933 btrfs_clear_treelog_bg(block_group);
1934 spin_unlock(&block_group->lock);
1935
1936 map = block_group->physical_map;
1937 device = map->stripes[0].dev;
1938 physical = map->stripes[0].physical;
1939
1940 if (!device->zone_info->max_active_zones) {
1941 ret = 0;
1942 goto out;
1943 }
1944
1945 btrfs_dev_clear_active_zone(device, physical);
1946
1947 spin_lock(&fs_info->zone_active_bgs_lock);
> 1948 ASSERT(!list_empty(&block_group->active_bg_list));
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[xiang-linux:erofs/chunk 8/8] fs/erofs/data.c:93:6: warning: variable 'err' is used uninitialized whenever 'if' condition is true
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git erofs/chunk
head: a915f0e209270389efab942fcd446e31a98c4062
commit: a915f0e209270389efab942fcd446e31a98c4062 [8/8] erofs: support reading chunk-based files
config: powerpc-randconfig-r013-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7776b19eed44906e9973bfb240b6279d6feaab41)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/commit/?i...
git remote add xiang-linux https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git
git fetch --no-tags xiang-linux erofs/chunk
git checkout a915f0e209270389efab942fcd446e31a98c4062
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:209:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/erofs/data.c:7:
In file included from fs/erofs/internal.h:13:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:211:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/erofs/data.c:7:
In file included from fs/erofs/internal.h:13:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:213:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/erofs/data.c:7:
In file included from fs/erofs/internal.h:13:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:215:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/erofs/data.c:7:
In file included from fs/erofs/internal.h:13:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:217:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> fs/erofs/data.c:93:6: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (map->m_la >= inode->i_size) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/erofs/data.c:151:9: note: uninitialized use occurs here
return err;
^~~
fs/erofs/data.c:93:2: note: remove the 'if' if its condition is always false
if (map->m_la >= inode->i_size) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/erofs/data.c:91:9: note: initialize the variable 'err' to silence this warning
int err;
^
= 0
7 warnings generated.
vim +93 fs/erofs/data.c
80
81 static int erofs_map_blocks(struct inode *inode,
82 struct erofs_map_blocks *map, int flags)
83 {
84 struct super_block *sb = inode->i_sb;
85 struct erofs_inode *vi = EROFS_I(inode);
86 struct erofs_inode_chunk_index *idx;
87 struct page *page;
88 u64 chunknr;
89 unsigned int unit;
90 erofs_off_t pos;
91 int err;
92
> 93 if (map->m_la >= inode->i_size) {
94 map->m_flags = 0;
95 map->m_plen = 0;
96 goto out;
97 }
98
99 if (vi->datalayout != EROFS_INODE_CHUNK_BASED)
100 return erofs_map_blocks_flatmode(inode, map, flags);
101
102 if (vi->chunkformat & EROFS_CHUNK_FORMAT_INDEXES)
103 unit = sizeof(*idx); /* chunk index */
104 else
105 unit = 4; /* chunk index */
106
107 chunknr = map->m_la >> vi->chunkbits;
108 pos = ALIGN(iloc(EROFS_SB(sb), vi->nid) + vi->inode_isize +
109 vi->xattr_isize, unit) + unit * chunknr;
110
111 page = erofs_get_meta_page(inode->i_sb, erofs_blknr(pos));
112 if (IS_ERR(page))
113 return PTR_ERR(page);
114
115 err = 0;
116 map->m_plen = min_t(erofs_off_t, 1 << vi->chunkbits,
117 inode->i_size - map->m_la);
118 if (!(vi->chunkformat & EROFS_CHUNK_FORMAT_INDEXES)) {
119 __le32 *blkaddr = page_address(page) + erofs_blkoff(pos);
120
121 if (le32_to_cpu(*blkaddr) == EROFS_NULL_ADDR) {
122 map->m_flags = 0;
123 } else {
124 map->m_pa = blknr_to_addr(le32_to_cpu(*blkaddr));
125 map->m_flags = EROFS_MAP_MAPPED;
126 }
127 goto out_unlock;
128 }
129 idx = page_address(page) + erofs_blkoff(pos);
130 switch (le32_to_cpu(idx->blkaddr)) {
131 case EROFS_NULL_ADDR:
132 map->m_flags = 0;
133 break;
134 default:
135 if (idx->device_id) {
136 erofs_err(sb, "invalid device %u @ %llu for nid %llu",
137 le32_to_cpu(idx->device_id),
138 chunknr, vi->nid);
139 err = -EINVAL;
140 goto out;
141 }
142 map->m_pa = blknr_to_addr(le32_to_cpu(idx->blkaddr));
143 map->m_flags = EROFS_MAP_MAPPED;
144 break;
145 }
146 out_unlock:
147 unlock_page(page);
148 put_page(page);
149 out:
150 map->m_llen = map->m_plen;
151 return err;
152 }
153
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[gpio:gpiochip-no-driver-h 2/2] drivers/input/keyboard/adp5589-keys.c:391:23: warning: incompatible integer to pointer conversion initializing 'struct adp5589_kpad *' with an expression of type 'int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpiochip-no-driver-h
head: 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569
commit: 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569 [2/2] See what explodes if we apply this patch
config: x86_64-randconfig-c001-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7776b19eed44906e9973bfb240b6279d6feaab41)
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/linusw/linux-gpio.git/com...
git remote add gpio https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git
git fetch --no-tags gpio gpiochip-no-driver-h
git checkout 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569
# 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 >>):
In file included from drivers/input/keyboard/adp5589-keys.c:21:
In file included from include/linux/gpio.h:62:
include/asm-generic/gpio.h:58:9: error: implicit declaration of function 'gpiod_to_chip' [-Werror,-Wimplicit-function-declaration]
return gpiod_to_chip(gpio_to_desc(gpio));
^
include/asm-generic/gpio.h:58:9: note: did you mean 'gpio_to_chip'?
include/asm-generic/gpio.h:56:33: note: 'gpio_to_chip' declared here
static inline struct gpio_chip *gpio_to_chip(unsigned gpio)
^
include/asm-generic/gpio.h:58:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct gpio_chip *' [-Wint-conversion]
return gpiod_to_chip(gpio_to_desc(gpio));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/keyboard/adp5589-keys.c:243:19: error: field has incomplete type 'struct gpio_chip'
struct gpio_chip gc;
^
include/asm-generic/gpio.h:56:22: note: forward declaration of 'struct gpio_chip'
static inline struct gpio_chip *gpio_to_chip(unsigned gpio)
^
drivers/input/keyboard/adp5589-keys.c:391:30: error: implicit declaration of function 'gpiochip_get_data' [-Werror,-Wimplicit-function-declaration]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^
>> drivers/input/keyboard/adp5589-keys.c:391:23: warning: incompatible integer to pointer conversion initializing 'struct adp5589_kpad *' with an expression of type 'int' [-Wint-conversion]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/keyboard/adp5589-keys.c:403:30: error: implicit declaration of function 'gpiochip_get_data' [-Werror,-Wimplicit-function-declaration]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^
drivers/input/keyboard/adp5589-keys.c:403:23: warning: incompatible integer to pointer conversion initializing 'struct adp5589_kpad *' with an expression of type 'int' [-Wint-conversion]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/keyboard/adp5589-keys.c:422:30: error: implicit declaration of function 'gpiochip_get_data' [-Werror,-Wimplicit-function-declaration]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^
drivers/input/keyboard/adp5589-keys.c:422:23: warning: incompatible integer to pointer conversion initializing 'struct adp5589_kpad *' with an expression of type 'int' [-Wint-conversion]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/keyboard/adp5589-keys.c:442:30: error: implicit declaration of function 'gpiochip_get_data' [-Werror,-Wimplicit-function-declaration]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^
drivers/input/keyboard/adp5589-keys.c:442:23: warning: incompatible integer to pointer conversion initializing 'struct adp5589_kpad *' with an expression of type 'int' [-Wint-conversion]
struct adp5589_kpad *kpad = gpiochip_get_data(chip);
^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/keyboard/adp5589-keys.c:528:10: error: implicit declaration of function 'devm_gpiochip_add_data' [-Werror,-Wimplicit-function-declaration]
error = devm_gpiochip_add_data(dev, &kpad->gc, kpad);
^
5 warnings and 7 errors generated.
vim +391 drivers/input/keyboard/adp5589-keys.c
9d2e173644bb5c Michael Hennerich 2011-05-19 387
9d2e173644bb5c Michael Hennerich 2011-05-19 388 #ifdef CONFIG_GPIOLIB
9d2e173644bb5c Michael Hennerich 2011-05-19 389 static int adp5589_gpio_get_value(struct gpio_chip *chip, unsigned off)
9d2e173644bb5c Michael Hennerich 2011-05-19 390 {
839850f4fb76b5 Linus Walleij 2015-12-08 @391 struct adp5589_kpad *kpad = gpiochip_get_data(chip);
3f48e735435851 Michael Hennerich 2011-10-18 392 unsigned int bank = kpad->var->bank(kpad->gpiomap[off]);
3f48e735435851 Michael Hennerich 2011-10-18 393 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]);
9d2e173644bb5c Michael Hennerich 2011-05-19 394
3f48e735435851 Michael Hennerich 2011-10-18 395 return !!(adp5589_read(kpad->client,
3f48e735435851 Michael Hennerich 2011-10-18 396 kpad->var->reg(ADP5589_GPI_STATUS_A) + bank) &
9d2e173644bb5c Michael Hennerich 2011-05-19 397 bit);
9d2e173644bb5c Michael Hennerich 2011-05-19 398 }
9d2e173644bb5c Michael Hennerich 2011-05-19 399
:::::: The code at line 391 was first introduced by commit
:::::: 839850f4fb76b56fcad3cabe27fc9f1a03821a2c input: adp5589-keys: use gpiochip data pointer
:::::: TO: Linus Walleij <linus.walleij(a)linaro.org>
:::::: CC: Linus Walleij <linus.walleij(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[gpio:gpiochip-no-driver-h 2/2] include/linux/gpio/driver.h:704:19: error: conflicting types for 'gpiod_to_chip'; have 'struct gpio_chip *(const struct gpio_desc *)'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpiochip-no-driver-h
head: 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569
commit: 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569 [2/2] See what explodes if we apply this patch
config: mips-capcella_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.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/linusw/linux-gpio.git/com...
git remote add gpio https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git
git fetch --no-tags gpio gpiochip-no-driver-h
git checkout 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/gpio.h:62,
from drivers/gpio/gpiolib.c:14:
include/asm-generic/gpio.h: In function 'gpio_to_chip':
include/asm-generic/gpio.h:58:16: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
58 | return gpiod_to_chip(gpio_to_desc(gpio));
| ^~~~~~~~~~~~~
| gpio_to_chip
include/asm-generic/gpio.h:58:16: warning: returning 'int' from a function with return type 'struct gpio_chip *' makes pointer from integer without a cast [-Wint-conversion]
58 | return gpiod_to_chip(gpio_to_desc(gpio));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpio/gpiolib.c:18:
include/linux/gpio/driver.h: At top level:
>> include/linux/gpio/driver.h:704:19: error: conflicting types for 'gpiod_to_chip'; have 'struct gpio_chip *(const struct gpio_desc *)'
704 | struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc);
| ^~~~~~~~~~~~~
In file included from include/linux/gpio.h:62,
from drivers/gpio/gpiolib.c:14:
include/asm-generic/gpio.h:58:16: note: previous implicit declaration of 'gpiod_to_chip' with type 'int()'
58 | return gpiod_to_chip(gpio_to_desc(gpio));
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +704 include/linux/gpio/driver.h
c7663fa2a6631e YueHaibing 2019-08-22 702
9091373ab7ea27 Masahiro Yamada 2019-07-30 703
9091373ab7ea27 Masahiro Yamada 2019-07-30 @704 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc);
9091373ab7ea27 Masahiro Yamada 2019-07-30 705
:::::: The code at line 704 was first introduced by commit
:::::: 9091373ab7ea27cad381ce71aa37de6b9e687e81 gpio: remove less important #ifdef around declarations
:::::: TO: Masahiro Yamada <yamada.masahiro(a)socionext.com>
:::::: CC: Bartosz Golaszewski <bgolaszewski(a)baylibre.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[gpio:gpiochip-no-driver-h 2/2] drivers/media/dvb-frontends/cxd2820r_priv.h:46:19: error: field has incomplete type 'struct gpio_chip'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpiochip-no-driver-h
head: 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569
commit: 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569 [2/2] See what explodes if we apply this patch
config: arm-randconfig-r002-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7776b19eed44906e9973bfb240b6279d6feaab41)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/com...
git remote add gpio https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git
git fetch --no-tags gpio gpiochip-no-driver-h
git checkout 3357a6b5d4c178fcbe95eb72c4e653b3a5b41569
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/media/
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 drivers/media/dvb-frontends/cxd2820r_core.c:9:
In file included from drivers/media/dvb-frontends/cxd2820r_priv.h:16:
In file included from include/linux/gpio.h:59:
In file included from arch/arm/include/asm/gpio.h:10:
include/asm-generic/gpio.h:58:9: error: implicit declaration of function 'gpiod_to_chip' [-Werror,-Wimplicit-function-declaration]
return gpiod_to_chip(gpio_to_desc(gpio));
^
include/asm-generic/gpio.h:58:9: note: did you mean 'gpio_to_chip'?
include/asm-generic/gpio.h:56:33: note: 'gpio_to_chip' declared here
static inline struct gpio_chip *gpio_to_chip(unsigned gpio)
^
include/asm-generic/gpio.h:58:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct gpio_chip *' [-Wint-conversion]
return gpiod_to_chip(gpio_to_desc(gpio));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/media/dvb-frontends/cxd2820r_core.c:9:
>> drivers/media/dvb-frontends/cxd2820r_priv.h:46:19: error: field has incomplete type 'struct gpio_chip'
struct gpio_chip gpio_chip;
^
include/asm-generic/gpio.h:56:22: note: forward declaration of 'struct gpio_chip'
static inline struct gpio_chip *gpio_to_chip(unsigned gpio)
^
>> drivers/media/dvb-frontends/cxd2820r_core.c:424:31: error: implicit declaration of function 'gpiochip_get_data' [-Werror,-Wimplicit-function-declaration]
struct cxd2820r_priv *priv = gpiochip_get_data(chip);
^
>> drivers/media/dvb-frontends/cxd2820r_core.c:424:24: warning: incompatible integer to pointer conversion initializing 'struct cxd2820r_priv *' with an expression of type 'int' [-Wint-conversion]
struct cxd2820r_priv *priv = gpiochip_get_data(chip);
^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/cxd2820r_core.c:438:31: error: implicit declaration of function 'gpiochip_get_data' [-Werror,-Wimplicit-function-declaration]
struct cxd2820r_priv *priv = gpiochip_get_data(chip);
^
drivers/media/dvb-frontends/cxd2820r_core.c:438:24: warning: incompatible integer to pointer conversion initializing 'struct cxd2820r_priv *' with an expression of type 'int' [-Wint-conversion]
struct cxd2820r_priv *priv = gpiochip_get_data(chip);
^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/cxd2820r_core.c:454:31: error: implicit declaration of function 'gpiochip_get_data' [-Werror,-Wimplicit-function-declaration]
struct cxd2820r_priv *priv = gpiochip_get_data(chip);
^
drivers/media/dvb-frontends/cxd2820r_core.c:454:24: warning: incompatible integer to pointer conversion initializing 'struct cxd2820r_priv *' with an expression of type 'int' [-Wint-conversion]
struct cxd2820r_priv *priv = gpiochip_get_data(chip);
^ ~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/dvb-frontends/cxd2820r_core.c:660:9: error: implicit declaration of function 'gpiochip_add_data' [-Werror,-Wimplicit-function-declaration]
ret = gpiochip_add_data(&priv->gpio_chip, priv);
^
>> drivers/media/dvb-frontends/cxd2820r_core.c:716:3: error: implicit declaration of function 'gpiochip_remove' [-Werror,-Wimplicit-function-declaration]
gpiochip_remove(&priv->gpio_chip);
^
4 warnings and 7 errors generated.
--
In file included from drivers/media/dvb-frontends/cxd2820r_c.c:9:
In file included from drivers/media/dvb-frontends/cxd2820r_priv.h:16:
In file included from include/linux/gpio.h:59:
In file included from arch/arm/include/asm/gpio.h:10:
include/asm-generic/gpio.h:58:9: error: implicit declaration of function 'gpiod_to_chip' [-Werror,-Wimplicit-function-declaration]
return gpiod_to_chip(gpio_to_desc(gpio));
^
include/asm-generic/gpio.h:58:9: note: did you mean 'gpio_to_chip'?
include/asm-generic/gpio.h:56:33: note: 'gpio_to_chip' declared here
static inline struct gpio_chip *gpio_to_chip(unsigned gpio)
^
include/asm-generic/gpio.h:58:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct gpio_chip *' [-Wint-conversion]
return gpiod_to_chip(gpio_to_desc(gpio));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/media/dvb-frontends/cxd2820r_c.c:9:
>> drivers/media/dvb-frontends/cxd2820r_priv.h:46:19: error: field has incomplete type 'struct gpio_chip'
struct gpio_chip gpio_chip;
^
include/asm-generic/gpio.h:56:22: note: forward declaration of 'struct gpio_chip'
static inline struct gpio_chip *gpio_to_chip(unsigned gpio)
^
1 warning and 2 errors generated.
vim +46 drivers/media/dvb-frontends/cxd2820r_priv.h
fcd09f6592cc1d drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-08 27
27cfc85e3dae18 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-04-07 28 struct cxd2820r_priv {
07fdf7d9f19fb6 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-09 29 struct i2c_client *client[2];
43e2ea63eb9781 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-13 30 struct regmap *regmap[2];
27cfc85e3dae18 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-04-07 31 struct i2c_adapter *i2c;
14c038627e275f drivers/media/dvb/frontends/cxd2820r_priv.h Manu Abraham 2011-11-24 32 struct dvb_frontend fe;
07fdf7d9f19fb6 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-09 33 u8 ts_mode;
07fdf7d9f19fb6 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-09 34 bool ts_clk_inv;
07fdf7d9f19fb6 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-09 35 bool if_agc_polarity;
07fdf7d9f19fb6 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-09 36 bool spec_inv;
07fdf7d9f19fb6 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-09 37
4aa4fd86bca576 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-09 38 u64 post_bit_error_prev_dvbv3;
2832fd3177d7d9 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2016-08-08 39 u64 post_bit_error;
27cfc85e3dae18 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-04-07 40
1d44ccb9ea7fc0 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-05-25 41 bool ber_running;
27cfc85e3dae18 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-04-07 42
1e8f31f3172614 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2012-07-19 43 #define GPIO_COUNT 3
1e8f31f3172614 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2012-07-19 44 u8 gpio[GPIO_COUNT];
1e8f31f3172614 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2012-07-19 45 #ifdef CONFIG_GPIOLIB
1e8f31f3172614 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2012-07-19 @46 struct gpio_chip gpio_chip;
1e8f31f3172614 drivers/media/dvb-frontends/cxd2820r_priv.h Antti Palosaari 2012-07-19 47 #endif
27cfc85e3dae18 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-04-07 48
0df289a209e02f drivers/media/dvb-frontends/cxd2820r_priv.h Mauro Carvalho Chehab 2015-06-07 49 enum fe_delivery_system delivery_system;
1d44ccb9ea7fc0 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-05-25 50 bool last_tune_failed; /* for switch between T and T2 tune */
27cfc85e3dae18 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-04-07 51 };
27cfc85e3dae18 drivers/media/dvb/frontends/cxd2820r_priv.h Antti Palosaari 2011-04-07 52
:::::: The code at line 46 was first introduced by commit
:::::: 1e8f31f31726148c27de1ff4692c76c9bcff9860 [media] cxd2820r: use Kernel GPIO for GPIO access
:::::: TO: Antti Palosaari <crope(a)iki.fi>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month