From: Thomas Chou Date: Fri, 6 Nov 2015 01:36:41 +0000 (+0800) Subject: net: altera_tse: fix packed and aligned attribute X-Git-Tag: v2016.01-rc1~86^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13146ec9380364c46dbc9473faff5707351935cc;p=u-boot 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 Reviewed-by: Marek Vasut Reviewed-by: Chin Liang See Acked-by: Joe Hershberger --- diff --git a/drivers/net/altera_tse.h b/drivers/net/altera_tse.h index a96351ad3d..78ae369120 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)