tree: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/topic/i2c-core-dma head: 0780b6c3d3e6079635cfbae3386a1e196da78925 commit: 1c1c267db610df292d9f1c6fe1c447bb81f25f49 [17/20] i2c: add helpers to ease DMA handling config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 1c1c267db610df292d9f1c6fe1c447bb81f25f49 # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): In file included from include/linux/printk.h:329:0, from include/linux/kernel.h:13, from include/linux/delay.h:21, from drivers/staging/media/atomisp/i2c/imx/dw9718.c:22: include/linux/i2c.h: In function 'i2c_check_msg_for_dma': >> include/linux/dynamic_debug.h:76:14: error: 'KBUILD_MODNAME' undeclared (first use in this function) .modname = KBUILD_MODNAME, \ ^ include/linux/dynamic_debug.h:98:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY' DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_false, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:124:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA' DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~ include/linux/i2c.h:797:3: note: in expansion of macro 'pr_debug' pr_debug("msg buffer to 0x%04x is not DMA safe%s\n", msg->addr, ^~~~~~~~ include/linux/dynamic_debug.h:76:14: note: each undeclared identifier is reported only once for each function it appears in .modname = KBUILD_MODNAME, \ ^ include/linux/dynamic_debug.h:98:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY' DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_false, \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:124:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA' DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:333:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~~~~~~~~~~~~~ include/linux/i2c.h:797:3: note: in expansion of macro 'pr_debug' pr_debug("msg buffer to 0x%04x is not DMA safe%s\n", msg->addr, ^~~~~~~~ vim +/KBUILD_MODNAME +76 include/linux/dynamic_debug.h cbc46635 Joe Perches 2011-08-11 60 struct device; cbc46635 Joe Perches 2011-08-11 61 b9075fa9 Joe Perches 2011-10-31 62 extern __printf(3, 4) 906d2015 Joe Perches 2014-09-24 63 void __dynamic_dev_dbg(struct _ddebug *descriptor, const struct device *dev, b9075fa9 Joe Perches 2011-10-31 64 const char *fmt, ...); cbc46635 Joe Perches 2011-08-11 65 ffa10cb4 Jason Baron 2011-08-11 66 struct net_device; ffa10cb4 Jason Baron 2011-08-11 67 b9075fa9 Joe Perches 2011-10-31 68 extern __printf(3, 4) 906d2015 Joe Perches 2014-09-24 69 void __dynamic_netdev_dbg(struct _ddebug *descriptor, ffa10cb4 Jason Baron 2011-08-11 70 const struct net_device *dev, b9075fa9 Joe Perches 2011-10-31 71 const char *fmt, ...); ffa10cb4 Jason Baron 2011-08-11 72 9049fc74 Jason Baron 2016-08-03 73 #define DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, key, init) \ c0d2af63 Joe Perches 2012-10-18 74 static struct _ddebug __aligned(8) \ 07613b0b Jason Baron 2011-10-04 75 __attribute__((section("__verbose"))) name = { \ 07613b0b Jason Baron 2011-10-04 @76 .modname = KBUILD_MODNAME, \ 07613b0b Jason Baron 2011-10-04 77 .function = __func__, \ 07613b0b Jason Baron 2011-10-04 78 .filename = __FILE__, \ 07613b0b Jason Baron 2011-10-04 79 .format = (fmt), \ 07613b0b Jason Baron 2011-10-04 80 .lineno = __LINE__, \ 07613b0b Jason Baron 2011-10-04 81 .flags = _DPRINTK_FLAGS_DEFAULT, \ 9049fc74 Jason Baron 2016-08-03 82 dd_key_init(key, init) \ 07613b0b Jason Baron 2011-10-04 83 } 07613b0b Jason Baron 2011-10-04 84 :::::: The code at line 76 was first introduced by commit :::::: 07613b0b5ef8570033aa806d1731dce599862223 dynamic_debug: consolidate repetitive struct _ddebug descriptor definitions :::::: TO: Jason Baron <jbaron@xxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip