Staging: emxx_udc: Convert from __attribute__((aligned(size))) to __aligned(size)
authorVatika Harlalka <vatikaharlalka@gmail.com>
Tue, 17 Feb 2015 14:50:54 +0000 (20:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Feb 2015 23:28:35 +0000 (15:28 -0800)
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)))

Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.h

index 202e2dc72bba4d6605eddafbf1e343f3a6bb47fc..6f90d5e3cd257db7d5b4d162c6e627f07016732c 100644 (file)
@@ -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;
 
 
 
This page took 0.024964 seconds and 5 git commands to generate.