All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto-linux:fw-cleanup-2020-12-11-v3 57/73] include/linux/export.h:67:36: error: redefinition of '__ksymtab_snd_soc_dai_set_fmt'
@ 2020-12-12  4:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-12  4:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6860 bytes --]

tree:   https://github.com/morimoto/linux fw-cleanup-2020-12-11-v3
head:   f3cc575c07169de36c9964f4bacf1ad5caee9ff1
commit: 8ba55018968592e5b9ddc77c656463b42bd8ac5c [57/73] ASoC: add snd_soc_runtime_get_dai_fmt()
config: parisc-randconfig-r033-20201209 (attached as .config)
compiler: hppa-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/morimoto/linux/commit/8ba55018968592e5b9ddc77c656463b42bd8ac5c
        git remote add morimoto-linux https://github.com/morimoto/linux
        git fetch --no-tags morimoto-linux fw-cleanup-2020-12-11-v3
        git checkout 8ba55018968592e5b9ddc77c656463b42bd8ac5c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/of.h:17,
                    from include/sound/soc.h:13,
                    from sound/soc/soc-dai.c:9:
>> include/linux/export.h:67:36: error: redefinition of '__ksymtab_snd_soc_dai_set_fmt'
      67 |  static const struct kernel_symbol __ksymtab_##sym  \
         |                                    ^~~~~~~~~~
   include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
     108 |  __KSYMTAB_ENTRY(sym, sec)
         |  ^~~~~~~~~~~~~~~
   include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
     147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
         |                                       ^~~~~~~~~~~~~~~~
   include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
     155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
         |                                  ^~~~~~~~~~~~~~~
   include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
     159 | #define EXPORT_SYMBOL_GPL(sym)  _EXPORT_SYMBOL(sym, "_gpl")
         |                                 ^~~~~~~~~~~~~~
   sound/soc/soc-dai.c:173:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     173 | EXPORT_SYMBOL_GPL(snd_soc_dai_set_fmt);
         | ^~~~~~~~~~~~~~~~~
   include/linux/export.h:67:36: note: previous definition of '__ksymtab_snd_soc_dai_set_fmt' was here
      67 |  static const struct kernel_symbol __ksymtab_##sym  \
         |                                    ^~~~~~~~~~
   include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
     108 |  __KSYMTAB_ENTRY(sym, sec)
         |  ^~~~~~~~~~~~~~~
   include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
     147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
         |                                       ^~~~~~~~~~~~~~~~
   include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
     155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
         |                                  ^~~~~~~~~~~~~~~
   include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
     159 | #define EXPORT_SYMBOL_GPL(sym)  _EXPORT_SYMBOL(sym, "_gpl")
         |                                 ^~~~~~~~~~~~~~
   sound/soc/soc-dai.c:154:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
     154 | EXPORT_SYMBOL_GPL(snd_soc_dai_set_fmt);
         | ^~~~~~~~~~~~~~~~~

vim +/__ksymtab_snd_soc_dai_set_fmt +67 include/linux/export.h

f50169324df4ad9 Paul Gortmaker    2011-05-23  41  
7290d58095712a8 Ard Biesheuvel    2018-08-21  42  #ifdef CONFIG_HAVE_ARCH_PREL32_RELOCATIONS
7290d58095712a8 Ard Biesheuvel    2018-08-21  43  #include <linux/compiler.h>
7290d58095712a8 Ard Biesheuvel    2018-08-21  44  /*
7290d58095712a8 Ard Biesheuvel    2018-08-21  45   * Emit the ksymtab entry as a pair of relative references: this reduces
7290d58095712a8 Ard Biesheuvel    2018-08-21  46   * the size by half on 64-bit architectures, and eliminates the need for
7290d58095712a8 Ard Biesheuvel    2018-08-21  47   * absolute relocations that require runtime processing on relocatable
7290d58095712a8 Ard Biesheuvel    2018-08-21  48   * kernels.
7290d58095712a8 Ard Biesheuvel    2018-08-21  49   */
7290d58095712a8 Ard Biesheuvel    2018-08-21  50  #define __KSYMTAB_ENTRY(sym, sec)					\
7290d58095712a8 Ard Biesheuvel    2018-08-21  51  	__ADDRESSABLE(sym)						\
7290d58095712a8 Ard Biesheuvel    2018-08-21  52  	asm("	.section \"___ksymtab" sec "+" #sym "\", \"a\"	\n"	\
ed13fc33f763035 Matthias Maennich 2019-09-06  53  	    "	.balign	4					\n"	\
7290d58095712a8 Ard Biesheuvel    2018-08-21  54  	    "__ksymtab_" #sym ":				\n"	\
7290d58095712a8 Ard Biesheuvel    2018-08-21  55  	    "	.long	" #sym "- .				\n"	\
7290d58095712a8 Ard Biesheuvel    2018-08-21  56  	    "	.long	__kstrtab_" #sym "- .			\n"	\
c3a6cf19e695c8b Masahiro Yamada   2019-10-18  57  	    "	.long	__kstrtabns_" #sym "- .			\n"	\
7290d58095712a8 Ard Biesheuvel    2018-08-21  58  	    "	.previous					\n")
7290d58095712a8 Ard Biesheuvel    2018-08-21  59  
7290d58095712a8 Ard Biesheuvel    2018-08-21  60  struct kernel_symbol {
7290d58095712a8 Ard Biesheuvel    2018-08-21  61  	int value_offset;
7290d58095712a8 Ard Biesheuvel    2018-08-21  62  	int name_offset;
8651ec01daedad2 Matthias Maennich 2019-09-06  63  	int namespace_offset;
7290d58095712a8 Ard Biesheuvel    2018-08-21  64  };
7290d58095712a8 Ard Biesheuvel    2018-08-21  65  #else
7290d58095712a8 Ard Biesheuvel    2018-08-21  66  #define __KSYMTAB_ENTRY(sym, sec)					\
7290d58095712a8 Ard Biesheuvel    2018-08-21 @67  	static const struct kernel_symbol __ksymtab_##sym		\
7290d58095712a8 Ard Biesheuvel    2018-08-21  68  	__attribute__((section("___ksymtab" sec "+" #sym), used))	\
ed13fc33f763035 Matthias Maennich 2019-09-06  69  	__aligned(sizeof(void *))					\
c3a6cf19e695c8b Masahiro Yamada   2019-10-18  70  	= { (unsigned long)&sym, __kstrtab_##sym, __kstrtabns_##sym }
7290d58095712a8 Ard Biesheuvel    2018-08-21  71  

:::::: The code at line 67 was first introduced by commit
:::::: 7290d58095712a89f845e1bca05334796dd49ed2 module: use relative references for __ksymtab entries

:::::: TO: Ard Biesheuvel <ard.biesheuvel@linaro.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
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: 28927 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-12  4:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-12  4:41 [morimoto-linux:fw-cleanup-2020-12-11-v3 57/73] include/linux/export.h:67:36: error: redefinition of '__ksymtab_snd_soc_dai_set_fmt' kernel test robot

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.