diff mbox series

[28/34] md pq: adjust __attribute__ [WARNING]

Message ID 38479f67f872503836d797d5cc623ba598c9ad53.1678136717.git.heinzm@redhat.com (mailing list archive)
State Rejected, archived
Delegated to: Song Liu
Headers show
Series address various checkpatch.pl requirements | expand

Commit Message

Heinz Mauelshagen March 6, 2023, 9:27 p.m. UTC
From: Heinz Mauelshagen <heinzm@redhat.com>

Signed-off-by: heinzm <heinzm@redhat.com>
---
 include/linux/raid/pq.h | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
diff mbox series

Patch

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,