From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Fri, 6 Nov 2015 09:32:04 +0800 Subject: [U-Boot] [PATCH v2 3/5] net: altera_tse: fix packed and aligned attribute In-Reply-To: <1446728090-5969-3-git-send-email-thomas@wytron.com.tw> References: <1446628349-26749-1-git-send-email-thomas@wytron.com.tw> <1446728090-5969-1-git-send-email-thomas@wytron.com.tw> <1446728090-5969-3-git-send-email-thomas@wytron.com.tw> Message-ID: <563C0314.4010109@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2015?11?05? 20:54, Thomas Chou wrote: > 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 > --- > drivers/net/altera_tse.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied to u-boot-nios. > 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) >