@@ -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,