Skip to content

Commit 4156ba7

Browse files
Zhengyuan Liugregkh
authored andcommitted
raid6/test: fix a compilation warning
[ Upstream commit 5e5ac01 ] 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: 69a94ab ("export.h, genksyms: do not make genksyms calculate CRC of trimmed symbols") Signed-off-by: Zhengyuan Liu <liuzhengyuan@kylinos.cn> Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 76fccd3 commit 4156ba7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎include/linux/raid/pq.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ extern const char raid6_empty_zero_page[PAGE_SIZE];
5858
#define enable_kernel_altivec()
5959
#define disable_kernel_altivec()
6060

61+
#undef EXPORT_SYMBOL
6162
#define EXPORT_SYMBOL(sym)
63+
#undef EXPORT_SYMBOL_GPL
6264
#define EXPORT_SYMBOL_GPL(sym)
6365
#define MODULE_LICENSE(licence)
6466
#define MODULE_DESCRIPTION(desc)

‎lib/raid6/mktables.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ int main(int argc, char *argv[])
5656
uint8_t v;
5757
uint8_t exptbl[256], invtbl[256];
5858

59-
printf("#include <linux/raid/pq.h>\n");
6059
printf("#include <linux/export.h>\n");
60+
printf("#include <linux/raid/pq.h>\n");
6161

6262
/* Compute multiplication table */
6363
printf("\nconst u8 __attribute__((aligned(256)))\n"

0 commit comments

Comments
 (0)