OSDN Git Service

raid6: guard the tables.c include of <linux/export.h> with __KERNEL__
authorWANG Xuerui <git@xen0n.name>
Mon, 31 Jul 2023 10:49:08 +0000 (18:49 +0800)
committerSong Liu <song@kernel.org>
Tue, 15 Aug 2023 16:40:27 +0000 (09:40 -0700)
commit9dd6e1da811ffad95a79b2690110ef1bbaf4dda4
tree8abe20701cfcd2a457379ae2ebad96cad8f5f7f3
parent5afcf28d07dee91e48d1c809ebd19c3bfc403765
raid6: guard the tables.c include of <linux/export.h> with __KERNEL__

The export directives for the tables are already emitted with __KERNEL__
guards, but the <linux/export.h> include is not, causing errors when
building the raid6test program. Guard this include too to fix the
raid6test build.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Link: https://lore.kernel.org/r/20230731104911.411964-3-kernel@xen0n.name
Signed-off-by: Song Liu <song@kernel.org>
lib/raid6/mktables.c