net: ftgmac100: use the aligned() macro
authorCédric Le Goater <clg@kaod.org>
Mon, 29 Oct 2018 06:06:30 +0000 (07:06 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 5 Nov 2018 16:41:56 +0000 (10:41 -0600)
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ftgmac100.h

index 439b14d71e4b8b3e5ff8acfbce3fe0edbe5eab88..9a789e4d5bee34830de8c0ee765e099c47f4182f 100644 (file)
@@ -182,7 +182,7 @@ struct ftgmac100_txdes {
        unsigned int    txdes1;
        unsigned int    txdes2; /* not used by HW */
        unsigned int    txdes3; /* TXBUF_BADR */
-} __attribute__ ((aligned(16)));
+} __aligned(16);
 
 #define FTGMAC100_TXDES0_TXBUF_SIZE(x) ((x) & 0x3fff)
 #define FTGMAC100_TXDES0_EDOTR         BIT(15)
@@ -208,7 +208,7 @@ struct ftgmac100_rxdes {
        unsigned int    rxdes1;
        unsigned int    rxdes2; /* not used by HW */
        unsigned int    rxdes3; /* RXBUF_BADR */
-} __attribute__ ((aligned(16)));
+} __aligned(16);
 
 #define FTGMAC100_RXDES0_VDBC(x)       ((x) & 0x3fff)
 #define FTGMAC100_RXDES0_EDORR         BIT(15)