[nomadik:openwrt-v4.19 11/14] drivers/mtd/parsers/redboot.c:322:25: error: 'mtd_parser_trx_of_match_table' undeclared here (not in a function); did you mean 'mtd_parser_redboot_of_match_table'?

From: kbuild test robot <hidden>
Date: 2018-11-06 05:15:13

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git openwrt-v4.19
head:   185419968f1800b634d5a4a447f71f12be7db563
commit: 4acc920d4e10237cc0a8dc36feed4607fb52869b [11/14] mtd: partitions: Add OF support to RedBoot partitions
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4acc920d4e10237cc0a8dc36feed4607fb52869b
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sh 

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

   In file included from drivers/mtd/parsers/redboot.c:31:0:
quoted
drivers/mtd/parsers/redboot.c:322:25: error: 'mtd_parser_trx_of_match_table' undeclared here (not in a function); did you mean 'mtd_parser_redboot_of_match_table'?
    MODULE_DEVICE_TABLE(of, mtd_parser_trx_of_match_table);
                            ^
   include/linux/module.h:214:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
    extern typeof(name) __mod_##type##__##name##_device_table  \
                  ^~~~
quoted
include/linux/module.h:214:21: error: '__mod_of__mtd_parser_trx_of_match_table_device_table' aliased to undefined symbol 'mtd_parser_trx_of_match_table'
    extern typeof(name) __mod_##type##__##name##_device_table  \
                        ^
quoted
drivers/mtd/parsers/redboot.c:322:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    MODULE_DEVICE_TABLE(of, mtd_parser_trx_of_match_table);
    ^~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/mtd//parsers/redboot.c:31:0:
   drivers/mtd//parsers/redboot.c:322:25: error: 'mtd_parser_trx_of_match_table' undeclared here (not in a function); did you mean 'mtd_parser_redboot_of_match_table'?
    MODULE_DEVICE_TABLE(of, mtd_parser_trx_of_match_table);
                            ^
   include/linux/module.h:214:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
    extern typeof(name) __mod_##type##__##name##_device_table  \
                  ^~~~
quoted
include/linux/module.h:214:21: error: '__mod_of__mtd_parser_trx_of_match_table_device_table' aliased to undefined symbol 'mtd_parser_trx_of_match_table'
    extern typeof(name) __mod_##type##__##name##_device_table  \
                        ^
   drivers/mtd//parsers/redboot.c:322:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    MODULE_DEVICE_TABLE(of, mtd_parser_trx_of_match_table);
    ^~~~~~~~~~~~~~~~~~~

vim +322 drivers/mtd/parsers/redboot.c

   317	
   318	static const struct of_device_id mtd_parser_redboot_of_match_table[] = {
   319		{ .compatible = "redboot-fis" },
   320		{},
   321	};
 > 322	MODULE_DEVICE_TABLE(of, mtd_parser_trx_of_match_table);
   323	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 49618 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181106/c2c07c45/attachment-0001.gz>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help