From: Heinz Mauelshagen <heinzm@xxxxxxxxxx> Signed-off-by: heinzm <heinzm@xxxxxxxxxx> --- include/linux/raid/pq.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/include/linux/raid/pq.h b/include/linux/raid/pq.h index 9e6171c4e7ed..da280aae74af 100644 --- a/include/linux/raid/pq.h +++ b/include/linux/raid/pq.h @@ -44,10 +44,6 @@ extern const char raid6_empty_zero_page[PAGE_SIZE]; #define __init #define __exit -#ifndef __attribute_const__ -# define __attribute_const__ __attribute__((const)) -#endif -#define noinline __attribute__((noinline)) #define preempt_enable() #define preempt_disable() @@ -141,12 +137,12 @@ int raid6_select_algo(void); #define RAID6_PQ_BAD 3 /* Galois field tables */ -extern const u8 raid6_gfmul[256][256] __attribute__((aligned(256))); -extern const u8 raid6_vgfmul[256][32] __attribute__((aligned(256))); -extern const u8 raid6_gfexp[256] __attribute__((aligned(256))); -extern const u8 raid6_gflog[256] __attribute__((aligned(256))); -extern const u8 raid6_gfinv[256] __attribute__((aligned(256))); -extern const u8 raid6_gfexi[256] __attribute__((aligned(256))); +extern const u8 raid6_gfmul[256][256] __aligned(256); +extern const u8 raid6_vgfmul[256][32] __aligned(256); +extern const u8 raid6_gfexp[256] __aligned(256); +extern const u8 raid6_gflog[256] __aligned(256); +extern const u8 raid6_gfinv[256] __aligned(256); +extern const u8 raid6_gfexi[256] __aligned(256); /* Recovery routines */ extern void (*raid6_2data_recov)(int disks, size_t bytes, int faila, int failb, -- 2.39.2