[vfs:work.csum 2/6] include/linux/export.h:46:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.csum
head:   f17fb3872ec6961260104f101257c27237d957f3
commit: 860493d91a3854bbecfb15ebcc523756a778efb4 [2/6] alpha: move more exports to the places where the symbols are defined
config: alpha-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 860493d91a3854bbecfb15ebcc523756a778efb4
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

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

   In file included from arch/alpha/lib/fpreg.c:7:0:
>> include/linux/export.h:46:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
     extern __visible void *__crc_##sym __attribute__((weak));  \
                      ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
>> arch/alpha/lib/fpreg.c:57:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_read_fp_reg);
    ^
>> include/linux/export.h:48:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
     __used       \
     ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
>> arch/alpha/lib/fpreg.c:57:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_read_fp_reg);
    ^
>> include/linux/export.h:63:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
     __visible const struct kernel_symbol __ksymtab_##sym \
               ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
>> arch/alpha/lib/fpreg.c:57:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_read_fp_reg);
    ^
>> include/linux/export.h:46:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
     extern __visible void *__crc_##sym __attribute__((weak));  \
                      ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:103:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_write_fp_reg);
    ^
>> include/linux/export.h:48:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
     __used       \
     ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:103:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_write_fp_reg);
    ^
>> include/linux/export.h:63:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
     __visible const struct kernel_symbol __ksymtab_##sym \
               ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:103:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_write_fp_reg);
    ^
>> include/linux/export.h:46:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
     extern __visible void *__crc_##sym __attribute__((weak));  \
                      ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:153:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_read_fp_reg_s);
    ^
>> include/linux/export.h:48:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
     __used       \
     ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:153:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_read_fp_reg_s);
    ^
>> include/linux/export.h:63:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
     __visible const struct kernel_symbol __ksymtab_##sym \
               ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:153:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_read_fp_reg_s);
    ^
>> include/linux/export.h:46:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
     extern __visible void *__crc_##sym __attribute__((weak));  \
                      ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:199:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_write_fp_reg_s);
    ^
>> include/linux/export.h:48:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
     __used       \
     ^
   include/linux/export.h:58:2: note: in expansion of macro '__CRC_SYMBOL'
     __CRC_SYMBOL(sym, sec)     \
     ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:199:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_write_fp_reg_s);
    ^
>> include/linux/export.h:63:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
     __visible const struct kernel_symbol __ksymtab_##sym \
               ^
   include/linux/export.h:69:2: note: in expansion of macro '__EXPORT_SYMBOL'
     __EXPORT_SYMBOL(sym, "")
     ^
   arch/alpha/lib/fpreg.c:199:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(alpha_write_fp_reg_s);
    ^

vim +46 include/linux/export.h

f5016932 Paul Gortmaker 2011-05-23  40  
f5016932 Paul Gortmaker 2011-05-23  41  #ifndef __GENKSYMS__
f5016932 Paul Gortmaker 2011-05-23  42  #ifdef CONFIG_MODVERSIONS
f5016932 Paul Gortmaker 2011-05-23  43  /* Mark the CRC weak since genksyms apparently decides not to
f5016932 Paul Gortmaker 2011-05-23  44   * generate a checksums for some symbols */
f5016932 Paul Gortmaker 2011-05-23  45  #define __CRC_SYMBOL(sym, sec)					\
e0f244c6 Andi Kleen     2013-10-23 @46  	extern __visible void *__crc_##sym __attribute__((weak));		\
f5016932 Paul Gortmaker 2011-05-23  47  	static const unsigned long __kcrctab_##sym		\
f5016932 Paul Gortmaker 2011-05-23 @48  	__used							\
f5016932 Paul Gortmaker 2011-05-23  49  	__attribute__((section("___kcrctab" sec "+" #sym), unused))	\
f5016932 Paul Gortmaker 2011-05-23  50  	= (unsigned long) &__crc_##sym;
f5016932 Paul Gortmaker 2011-05-23  51  #else
f5016932 Paul Gortmaker 2011-05-23  52  #define __CRC_SYMBOL(sym, sec)
f5016932 Paul Gortmaker 2011-05-23  53  #endif
f5016932 Paul Gortmaker 2011-05-23  54  
f5016932 Paul Gortmaker 2011-05-23  55  /* For every exported symbol, place a struct in the __ksymtab section */
f5016932 Paul Gortmaker 2011-05-23  56  #define __EXPORT_SYMBOL(sym, sec)				\
f5016932 Paul Gortmaker 2011-05-23  57  	extern typeof(sym) sym;					\
f5016932 Paul Gortmaker 2011-05-23 @58  	__CRC_SYMBOL(sym, sec)					\
f5016932 Paul Gortmaker 2011-05-23  59  	static const char __kstrtab_##sym[]			\
f5016932 Paul Gortmaker 2011-05-23  60  	__attribute__((section("__ksymtab_strings"), aligned(1))) \
b92021b0 Rusty Russell  2013-03-15  61  	= VMLINUX_SYMBOL_STR(sym);				\
7b4ec8dd Johannes Berg  2014-01-16  62  	extern const struct kernel_symbol __ksymtab_##sym;	\
e0f244c6 Andi Kleen     2013-10-23 @63  	__visible const struct kernel_symbol __ksymtab_##sym	\
f5016932 Paul Gortmaker 2011-05-23  64  	__used							\
f5016932 Paul Gortmaker 2011-05-23  65  	__attribute__((section("___ksymtab" sec "+" #sym), unused))	\
f5016932 Paul Gortmaker 2011-05-23  66  	= { (unsigned long)&sym, __kstrtab_##sym }

:::::: The code at line 46 was first introduced by commit
:::::: e0f244c63fc9d192dfd399cc2677bbdca61994b1 asmlinkage, module: Make ksymtab and kcrctab symbols and __this_module __visible

:::::: TO: Andi Kleen <ak@xxxxxxxxxxxxxxx>
:::::: CC: Rusty Russell <rusty@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux