[Xperia Z3 Compact Original Android Development] .:B:.:
[MENTION=4901061]mcgi5sr2[/MENTION] I seem to be at the kernel portion of my 'migration' and I'm bumping into this redefinition error. Can you have a look?

In file included from ../../../../../../kernel/sony/msm8974/fs/fs_struct.c:1:0:
../../../../../../kernel/sony/msm8974/include/linux/export.h:40:29: error: redefinition of '__kcrctab_copy_fs_struct'
static const unsigned long __kcrctab_##sym \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:51:2: note: in expansion of macro '__CRC_SYMBOL'
__CRC_SYMBOL(sym, sec) \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:64:2: note: in expansion of macro '__EXPORT_SYMBOL'
__EXPORT_SYMBOL(sym, "_gpl")
^
../../../../../../kernel/sony/msm8974/fs/fs_struct.c:132:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(copy_fs_struct);
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:40:29: note: previous definition of '__kcrctab_copy_fs_struct' was here
static const unsigned long __kcrctab_##sym \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:51:2: note: in expansion of macro '__CRC_SYMBOL'
__CRC_SYMBOL(sym, sec) \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:64:2: note: in expansion of macro '__EXPORT_SYMBOL'
__EXPORT_SYMBOL(sym, "_gpl")
^
../../../../../../kernel/sony/msm8974/fs/fs_struct.c:130:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(copy_fs_struct);
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:52:20: error: redefinition of '__kstrtab_copy_fs_struct'
static const char __kstrtab_##sym[] \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:64:2: note: in expansion of macro '__EXPORT_SYMBOL'
__EXPORT_SYMBOL(sym, "_gpl")
^
../../../../../../kernel/sony/msm8974/fs/fs_struct.c:132:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(copy_fs_struct);
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:52:20: note: previous definition of '__kstrtab_copy_fs_struct' was here
static const char __kstrtab_##sym[] \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:64:2: note: in expansion of macro '__EXPORT_SYMBOL'
__EXPORT_SYMBOL(sym, "_gpl")
^
../../../../../../kernel/sony/msm8974/fs/fs_struct.c:130:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(copy_fs_struct);
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:55:36: error: redefinition of '__ksymtab_copy_fs_struct'
static const struct kernel_symbol __ksymtab_##sym \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:64:2: note: in expansion of macro '__EXPORT_SYMBOL'
__EXPORT_SYMBOL(sym, "_gpl")
^
../../../../../../kernel/sony/msm8974/fs/fs_struct.c:132:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(copy_fs_struct);
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:55:36: note: previous definition of '__ksymtab_copy_fs_struct' was here
static const struct kernel_symbol __ksymtab_##sym \
^
../../../../../../kernel/sony/msm8974/include/linux/export.h:64:2: note: in expansion of macro '__EXPORT_SYMBOL'
__EXPORT_SYMBOL(sym, "_gpl")
^
../../../../../../kernel/sony/msm8974/fs/fs_struct.c:130:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(copy_fs_struct);
^
/var/data/code/android/lineage-15.1/kernel/sony/msm8974/scripts/Makefile.build:307: recipe for target 'fs/fs_struct.o' failed

This leads me to the following code in include/linux/export.h from the sony-msm8974 kernel git:

/* Mark the CRC weak since genksyms apparently decides not to
* generate a checksums for some symbols */
#define __CRC_SYMBOL(sym, sec) \
extern void *__crc_##sym __attribute__((weak)); \
static const unsigned long __kcrctab_##sym \

Grepping the kernel repo returns these:

$ git grep copy_fs_struct
fs/fs_struct.c:struct fs_struct *copy_fs_struct(struct fs_struct *old)
fs/fs_struct.c:EXPORT_SYMBOL_GPL(copy_fs_struct);
fs/fs_struct.c:EXPORT_SYMBOL_GPL(copy_fs_struct);
fs/fs_struct.c: struct fs_struct *new_fs = copy_fs_struct(fs);
fs/sdcardfs/inode.c: copied_fs = copy_fs_struct(current->fs);
fs/sdcardfs/inode.c: copied_fs = copy_fs_struct(current->fs);
include/linux/fs_struct.h:extern struct fs_struct *copy_fs_struct(struct fs_struct *);