Commit 3a9e742f authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Greg Kroah-Hartman

usb: host: ehci.h: remove direct use of __attribute__ keyword

Prefer to use __aligned(size) macro instead of
__attribute__((aligned(size))).

Caught by checkpatch.
Signed-off-by: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bc4beada
...@@ -327,7 +327,7 @@ struct ehci_qtd { ...@@ -327,7 +327,7 @@ struct ehci_qtd {
struct list_head qtd_list; /* sw qtd list */ struct list_head qtd_list; /* sw qtd list */
struct urb *urb; /* qtd's urb */ struct urb *urb; /* qtd's urb */
size_t length; /* length of buffer */ size_t length; /* length of buffer */
} __attribute__ ((aligned (32))); } __aligned(32);
/* mask NakCnt+T in qh->hw_alt_next */ /* mask NakCnt+T in qh->hw_alt_next */
#define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f) #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f)
...@@ -410,7 +410,7 @@ struct ehci_qh_hw { ...@@ -410,7 +410,7 @@ struct ehci_qh_hw {
__hc32 hw_token; __hc32 hw_token;
__hc32 hw_buf[5]; __hc32 hw_buf[5];
__hc32 hw_buf_hi[5]; __hc32 hw_buf_hi[5];
} __attribute__ ((aligned(32))); } __aligned(32);
struct ehci_qh { struct ehci_qh {
struct ehci_qh_hw *hw; /* Must come first */ struct ehci_qh_hw *hw; /* Must come first */
...@@ -544,7 +544,7 @@ struct ehci_itd { ...@@ -544,7 +544,7 @@ struct ehci_itd {
unsigned frame; /* where scheduled */ unsigned frame; /* where scheduled */
unsigned pg; unsigned pg;
unsigned index[8]; /* in urb->iso_frame_desc */ unsigned index[8]; /* in urb->iso_frame_desc */
} __attribute__ ((aligned (32))); } __aligned(32);
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
...@@ -587,7 +587,7 @@ struct ehci_sitd { ...@@ -587,7 +587,7 @@ struct ehci_sitd {
struct list_head sitd_list; /* list of stream's sitds */ struct list_head sitd_list; /* list of stream's sitds */
unsigned frame; unsigned frame;
unsigned index; unsigned index;
} __attribute__ ((aligned (32))); } __aligned(32);
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
...@@ -607,7 +607,7 @@ struct ehci_fstn { ...@@ -607,7 +607,7 @@ struct ehci_fstn {
/* the rest is HCD-private */ /* the rest is HCD-private */
dma_addr_t fstn_dma; dma_addr_t fstn_dma;
union ehci_shadow fstn_next; /* ptr to periodic q entry */ union ehci_shadow fstn_next; /* ptr to periodic q entry */
} __attribute__ ((aligned (32))); } __aligned(32);
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment