On Mon, Dec 16, 2019 at 5:09 AM Zhengyuan Liu <liuzhengyuan@xxxxxxxxxx> wrote: > > The compilation error is redeclaration showed as following: > > In file included from ../../../include/linux/limits.h:6, > from /usr/include/x86_64-linux-gnu/bits/local_lim.h:38, > from /usr/include/x86_64-linux-gnu/bits/posix1_lim.h:161, > from /usr/include/limits.h:183, > from /usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/limits.h:194, > from /usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/syslimits.h:7, > from /usr/lib/gcc/x86_64-linux-gnu/8/include-fixed/limits.h:34, > from ../../../include/linux/raid/pq.h:30, > from algos.c:14: > ../../../include/linux/types.h:114:15: error: conflicting types for ‘int64_t’ > typedef s64 int64_t; > ^~~~~~~ > In file included from /usr/include/stdint.h:34, > from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, > from /usr/include/inttypes.h:27, > from ../../../include/linux/raid/pq.h:29, > from algos.c:14: > /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:27:19: note: previous \ > declaration of ‘int64_t’ was here > typedef __int64_t int64_t; > > The compilation warning is redefination showed as following: > > In file included from tables.c:2: > ../../../include/linux/export.h:180: warning: "EXPORT_SYMBOL" redefined > #define EXPORT_SYMBOL(sym) __EXPORT_SYMBOL(sym, "") > > In file included from tables.c:1: > ../../../include/linux/raid/pq.h:61: note: this is the location of the previous definition > #define EXPORT_SYMBOL(sym) > > Fixes: 54d50897d54 ("linux/kernel.h: split *_MAX and *_MIN macros into <linux/limits.h>") This is the Fixes tag for the error. Please also add a Fixes tag for the warning. Maybe split the two fixes into two patches. Thanks, Song