diff options
author | Thomas Chou <thomas@wytron.com.tw> | 2015-11-06 09:36:41 +0800 |
---|---|---|
committer | Thomas Chou <thomas@wytron.com.tw> | 2015-11-06 12:56:46 +0800 |
commit | 13146ec9380364c46dbc9473faff5707351935cc (patch) | |
tree | a236c18a68b6a0d8499c8ab3bd87d815424afb48 /drivers/net/altera_tse.h | |
parent | 2cd0a52ece530f790c5cf661180f91e5c0b57117 (diff) | |
download | u-boot-13146ec9380364c46dbc9473faff5707351935cc.zip u-boot-13146ec9380364c46dbc9473faff5707351935cc.tar.gz u-boot-13146ec9380364c46dbc9473faff5707351935cc.tar.bz2 |
net: altera_tse: fix packed and aligned attribute
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>
Diffstat (limited to 'drivers/net/altera_tse.h')
-rw-r--r-- | drivers/net/altera_tse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/altera_tse.h b/drivers/net/altera_tse.h index a96351a..78ae369 100644 --- a/drivers/net/altera_tse.h +++ b/drivers/net/altera_tse.h @@ -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) |