From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v2 19/19] dyndbg: try DEFINE_DYNAMIC_DEBUG_TABLE
Date: Tue, 29 Dec 2020 10:54:46 +0800 [thread overview]
Message-ID: <202012291053.gSSg5btw-lkp@intel.com> (raw)
In-Reply-To: <20201225201944.3701590-20-jim.cromie@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 22942 bytes --]
Hi Jim,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on asm-generic/master]
[also build test ERROR on jeyu/modules-next drm-intel/for-linux-next]
[cannot apply to linus/master v5.11-rc1 next-20201223]
[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/Jim-Cromie/dynamic-debug-diet-plan/20201226-042542
base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
config: nios2-randconfig-r024-20201226 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/e65b4e043856f127c9232e995eb48d58332892b8
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jim-Cromie/dynamic-debug-diet-plan/20201226-042542
git checkout e65b4e043856f127c9232e995eb48d58332892b8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from ./arch/nios2/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/pagemap.h:8,
from drivers/dax/super.c:5:
drivers/dax/super.c: In function '__generic_fsdax_supported':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:212:2: note: in expansion of macro '_dynamic_func_call'
212 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/dax/super.c:90:3: note: in expansion of macro 'pr_debug'
90 | pr_debug("%s: error: dax unsupported by block device\n",
| ^~~~~~~~
drivers/dax/super.c: In function '__bdev_dax_supported':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:212:2: note: in expansion of macro '_dynamic_func_call'
212 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/dax/super.c:178:3: note: in expansion of macro 'pr_debug'
178 | pr_debug("%s: error: request queue doesn't support dax\n",
| ^~~~~~~~
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:212:2: note: in expansion of macro '_dynamic_func_call'
212 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/dax/super.c:185:3: note: in expansion of macro 'pr_debug'
185 | pr_debug("%s: error: device does not support dax\n",
| ^~~~~~~~
drivers/dax/super.c: At top level:
drivers/dax/super.c:452:6: warning: no previous prototype for 'run_dax' [-Wmissing-prototypes]
452 | void run_dax(struct dax_device *dax_dev)
| ^~~~~~~
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/asm-generic/bug.h:20,
from ./arch/nios2/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from include/linux/pagemap.h:8,
from drivers/dax/super.c:5:
drivers/dax/super.c: In function 'alloc_dax':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:212:2: note: in expansion of macro '_dynamic_func_call'
212 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug'
424 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/dax/super.c:584:3: note: in expansion of macro 'pr_debug'
>> 584 | pr_debug("%s: error: device does not provide dax"
| ^~~~~~~~
--
drivers/dax/bus.c: In function 'do_id_store':
drivers/dax/bus.c:94:27: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
94 | /* nothing to remove */;
| ^
drivers/dax/bus.c:99:29: warning: suggest braces around empty body in an 'else' statement [-Wempty-body]
99 | /* dax_id already added */;
| ^
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/linux/percpu-refcount.h:54,
from include/linux/memremap.h:6,
from drivers/dax/bus.c:3:
drivers/dax/bus.c: In function 'unregister_dev_dax':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:389:2: note: in expansion of macro 'dev_dbg'
389 | dev_dbg(dev, "%s\n", __func__);
| ^~~~~~~
drivers/dax/bus.c: In function 'unregister_dax_mapping':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:599:2: note: in expansion of macro 'dev_dbg'
599 | dev_dbg(dev, "%s\n", __func__);
| ^~~~~~~
drivers/dax/bus.c: In function 'alloc_dev_dax_range':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:796:2: note: in expansion of macro 'dev_dbg'
796 | dev_dbg(dev, "alloc range[%d]: %pa:%pa\n", dev_dax->nr_range - 1,
| ^~~~~~~
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:808:3: note: in expansion of macro 'dev_dbg'
808 | dev_dbg(dev, "delete range[%d]: %pa:%pa\n", dev_dax->nr_range - 1,
| ^~~~~~~
drivers/dax/bus.c: In function 'adjust_dev_dax_range':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:842:2: note: in expansion of macro 'dev_dbg'
842 | dev_dbg(dev, "%s range[%d]: %#llx:%#llx\n", is_shrink ? "shrink" : "extend",
| ^~~~~~~
drivers/dax/bus.c: In function 'dev_dax_shrink':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:891:4: note: in expansion of macro 'dev_dbg'
891 | dev_dbg(dev, "delete range[%d]: %#llx:%#llx\n", i,
| ^~~~~~~
drivers/dax/bus.c: In function 'size_store':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:1028:3: note: in expansion of macro 'dev_dbg'
1028 | dev_dbg(dev, "%s: size: %lld misaligned\n", __func__, val);
| ^~~~~~~
drivers/dax/bus.c: In function 'dev_dax_validate_align':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:1122:3: note: in expansion of macro 'dev_dbg'
1122 | dev_dbg(dev, "%s: align %u invalid for size %pa\n",
| ^~~~~~~
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/dax/bus.c:1131:4: note: in expansion of macro 'dev_dbg'
1131 | dev_dbg(dev, "%s: align %u invalid for range %d\n",
| ^~~~~~~
--
In file included from include/linux/printk.h:409,
from include/linux/kernel.h:16,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/misc/eeprom/at24.c:9:
drivers/misc/eeprom/at24.c: In function 'at24_regmap_read':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/misc/eeprom/at24.c:349:3: note: in expansion of macro 'dev_dbg'
349 | dev_dbg(&client->dev, "read %zu@%d --> %d (%ld)\n",
| ^~~~~~~
drivers/misc/eeprom/at24.c: In function 'at24_regmap_write':
>> include/linux/dynamic_debug.h:148:20: error: expected expression before ',' token
148 | _DPRINTK_KEY_INIT, \
| ^
include/linux/dynamic_debug.h:182:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
182 | DEFINE_DYNAMIC_DEBUG_METADATA(id, fmt); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:202:2: note: in expansion of macro '__dynamic_func_call'
202 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:216:2: note: in expansion of macro '_dynamic_func_call'
216 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
123 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
drivers/misc/eeprom/at24.c:409:3: note: in expansion of macro 'dev_dbg'
409 | dev_dbg(&client->dev, "write %zu@%d --> %d (%ld)\n",
| ^~~~~~~
..
vim +148 include/linux/dynamic_debug.h
99
100 extern __printf(3, 4)
101 void __dynamic_ibdev_dbg(struct _ddebug *descriptor,
102 const struct ib_device *ibdev,
103 const char *fmt, ...);
104
105 /** DEFINE_DYNAMIC_DEBUG_TABLE(module)
106 *
107 * This is an analogue to DEFINE_DYNAMIC_DEBUG_METADATA()
108
109 * It's just a "callsite" whose primary purpose is to create or
110 * reserve the 0th element pair in our sub-vectors of __dyndbg[] &
111 * __dyndbg_callsites[]. The format & lineno are set to sort 1st,
112 * though I suspect our good order is more about linkage. Either way,
113 * the TABLE is appearing 1st in control's i915 output.
114
115 * We want to use it to initialize .module_index, but I was unable to
116 * ref &module##_base by any construct I thought to try;
117 * KBUILD_MODNAME in particular didnt work.
118
119 */
120
121 #define DEFINE_DYNAMIC_DEBUG_TABLE(module) \
122 struct _ddebug_callsite __aligned(8) \
123 __section("__dyndbg_callsites") module##_site = { \
124 .modname = KBUILD_MODNAME, \
125 .filename = __FILE__, \
126 .function = NULL, \
127 }; \
128 struct _ddebug __aligned(8) \
129 __section("__dyndbg") module##_base = { \
130 .site = &module##_site, \
131 .format = "0000", \
132 .lineno = 0, /* sort on mod, line */ \
133 }
134
135 #define DEFINE_DYNAMIC_DEBUG_METADATA(name, fmt) \
136 static struct _ddebug_callsite __aligned(8) \
137 __section("__dyndbg_callsites") name##_site = { \
138 .modname = KBUILD_MODNAME, \
139 .filename = __FILE__, \
140 .function = __func__, \
141 }; \
142 static struct _ddebug __aligned(8) \
143 __section("__dyndbg") name = { \
144 .site = &name##_site, \
145 .format = (fmt), \
146 .lineno = __LINE__, \
147 .flags = _DPRINTK_FLAGS_DEFAULT, \
> 148 _DPRINTK_KEY_INIT, \
149 .module_index = 0 /* want offset from _base */ \
150 }
151
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21475 bytes --]
next prev parent reply other threads:[~2020-12-29 2:54 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-25 20:19 [RFC PATCH v2 00/19] dynamic debug diet plan Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 01/19] dyndbg: fix use before null check Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 02/19] dyndbg: split struct _ddebug, move display fields to new _ddebug_callsite Jim Cromie
2020-12-31 2:34 ` [dyndbg] e83b4a5011: leaking-addresses.proc.__dyndbg_callsites kernel test robot
2020-12-31 2:34 ` kernel test robot
2020-12-25 20:19 ` [RFC PATCH v2 03/19] dyndbg: refactor part of ddebug_change to ddebug_match_site Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 04/19] dyndbg: accept null site in ddebug_match_site Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 05/19] dyndbg: hoist ->site out of ddebug_match_site Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 06/19] dyndbg: accept null site in ddebug_change Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 07/19] dyndbg: accept null site in dynamic_emit_prefix Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 08/19] dyndbg: accept null site in ddebug_proc_show Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 09/19] dyndbg: optimize ddebug_emit_prefix Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 10/19] dyndbg: avoid calling dyndbg_emit_prefix when it has no work Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 11/19] dyndbg: refactor ddebug_alter_site out of ddebug_change Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 12/19] dyndbg: allow deleting site info via control interface Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 13/19] dyndbg: verify __dyndbg & __dyndbg_callsite invariant Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 14/19] dyndbg+module: expose ddebug_callsites to modules Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 15/19] dyndbg: add ddebug_site_get/put api with pass-thru impl Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 16/19] dyndbg: ddebug_site_get/put api commentary Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 17/19] dyndbg: rearrange struct ddebug_callsites Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 18/19] dyndbg: add module_index to struct _ddebug Jim Cromie
2020-12-25 20:19 ` [RFC PATCH v2 19/19] dyndbg: try DEFINE_DYNAMIC_DEBUG_TABLE Jim Cromie
2020-12-28 22:34 ` kernel test robot
2020-12-29 2:34 ` kernel test robot
2020-12-29 2:34 ` [RFC PATCH] dyndbg: i915_site can be static kernel test robot
2020-12-29 2:54 ` kernel test robot [this message]
2020-12-29 2:58 ` [RFC PATCH v2 19/19] dyndbg: try DEFINE_DYNAMIC_DEBUG_TABLE kernel test robot
2020-12-29 18:56 ` [RFC PATCH v2 00/19] dynamic debug diet plan Joe Perches
2021-01-06 17:50 ` jim.cromie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202012291053.gSSg5btw-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.