net: altera_tse: fix packed and aligned attribute
authorThomas Chou <thomas@wytron.com.tw>
Fri, 6 Nov 2015 01:36:41 +0000 (09:36 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Fri, 6 Nov 2015 04:56:46 +0000 (12:56 +0800)
Fix packed and aligned attribute warnings.

WARNING: __packed is preferred over __attribute__((packed))
#14: FILE: drivers/net/altera_tse.h:14:
+#define __packed_1_    __attribute__ ((packed, aligned(1)))

WARNING: __aligned(size) is preferred over
__attribute__((aligned(size)))
#14: FILE: drivers/net/altera_tse.h:14:
+#define __packed_1_    __attribute__ ((packed, aligned(1)))

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Chin Liang See <clsee@altera.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/altera_tse.h

index a96351ad3d311ed800291c6d2140e3f614e00f4f..78ae3691204a4b86b7b5f292ee63eeba78ff4292 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef _ALTERA_TSE_H_
 #define _ALTERA_TSE_H_
 
-#define __packed_1_    __attribute__ ((packed, aligned(1)))
+#define __packed_1_    __packed __aligned(1)
 
 /* SGDMA Stuff */
 #define ALT_SGDMA_STATUS_BUSY_MSK                      (0x00000010)