Skip to contentSkip to conversation

Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size)

PATCH New Vatika Harlalka 1 participant 1 message Feb 17, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size)

This patch addresses the checkpatch.pl warning
WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))

aligned(x) is a macro :
#define __aligned(x) __attribute__((aligned(x)))

---
 drivers/staging/emxx_udc/emxx_udc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/emxx_udc/emxx_udc.h +1 -1
index ee1b80d..2ac216f 100644
@@ -535,7 +535,7 @@ typedef struct _T_FC_REGS {
 
 	u8 Reserved1200[0x1000-0x200];	/* Reserved */
 
-} __attribute__ ((aligned(32))) T_FC_REGS, *PT_FC_REGS;
+} __aligned(32) T_FC_REGS, *PT_FC_REGS;
 
 
 
Signature · 1 line
1.9.1