Re: [media 7/7] PCI bridge driver for PT3 & PXQ3PE

From: kbuild test robot
Date: Mon Feb 15 2016 - 07:55:04 EST


Hi ÐÑÐÐ,

[auto build test ERROR on linuxtv-media/master]
[cannot apply to v4.5-rc4 next-20160215]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/info-are-ma/Driver-bundle-for-PT3-PX-Q3PE/20160215-173307
base: git://linuxtv.org/media_tree.git master
config: x86_64-allyesconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

In file included from include/linux/module.h:18:0,
from drivers/media/dvb-core/dvb_frontend.h:35,
from drivers/media/pci/ptx/ptx_common.c:8:
>> include/linux/moduleparam.h:13:29: error: 'KBUILD_MODNAME' undeclared here (not in a function)
#define MODULE_PARAM_PREFIX KBUILD_MODNAME "."
^
include/linux/moduleparam.h:220:43: note: in definition of macro '__module_param_call'
static const char __param_str_##name[] = prefix #name; \
^
>> include/linux/moduleparam.h:448:22: note: in expansion of macro 'MODULE_PARAM_PREFIX'
__module_param_call(MODULE_PARAM_PREFIX, name, \
^
>> include/linux/moduleparam.h:429:2: note: in expansion of macro 'module_param_array_named'
module_param_array_named(name, name, type, nump, perm)
^
>> drivers/media/dvb-core/dvbdev.h:55:2: note: in expansion of macro 'module_param_array'
module_param_array(adapter_nr, short, NULL, 0444); \
^
>> drivers/media/pci/ptx/ptx_common.c:145:1: note: in expansion of macro 'DVB_DEFINE_MOD_OPT_ADAPTER_NR'
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adap_no);
^
>> include/linux/moduleparam.h:13:44: error: expected ',' or ';' before string constant
#define MODULE_PARAM_PREFIX KBUILD_MODNAME "."
^
include/linux/moduleparam.h:220:43: note: in definition of macro '__module_param_call'
static const char __param_str_##name[] = prefix #name; \
^
>> include/linux/moduleparam.h:448:22: note: in expansion of macro 'MODULE_PARAM_PREFIX'
__module_param_call(MODULE_PARAM_PREFIX, name, \
^
>> include/linux/moduleparam.h:429:2: note: in expansion of macro 'module_param_array_named'
module_param_array_named(name, name, type, nump, perm)
^
>> drivers/media/dvb-core/dvbdev.h:55:2: note: in expansion of macro 'module_param_array'
module_param_array(adapter_nr, short, NULL, 0444); \
^
>> drivers/media/pci/ptx/ptx_common.c:145:1: note: in expansion of macro 'DVB_DEFINE_MOD_OPT_ADAPTER_NR'
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adap_no);
^

vim +/KBUILD_MODNAME +13 include/linux/moduleparam.h

^1da177e Linus Torvalds 2005-04-16 7
^1da177e Linus Torvalds 2005-04-16 8 /* You can override this manually, but generally this should match the
^1da177e Linus Torvalds 2005-04-16 9 module name. */
^1da177e Linus Torvalds 2005-04-16 10 #ifdef MODULE
^1da177e Linus Torvalds 2005-04-16 11 #define MODULE_PARAM_PREFIX /* empty */
^1da177e Linus Torvalds 2005-04-16 12 #else
367cb704 Sam Ravnborg 2006-01-06 @13 #define MODULE_PARAM_PREFIX KBUILD_MODNAME "."
^1da177e Linus Torvalds 2005-04-16 14 #endif
^1da177e Linus Torvalds 2005-04-16 15
730b69d2 Rusty Russell 2008-10-22 16 /* Chosen so that structs with an unsigned long line up. */

:::::: The code at line 13 was first introduced by commit
:::::: 367cb704212cd0c9273ba2b1e62523139210563b kbuild: un-stringnify KBUILD_MODNAME

:::::: TO: Sam Ravnborg <sam@xxxxxxxxxxxxxxxxx>
:::::: CC: Sam Ravnborg <sam@xxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data