staging: zram: conventions, __aligned() attribute
authorSam Hansen <solid.se7en@gmail.com>
Thu, 7 Jun 2012 23:03:48 +0000 (16:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 16:04:15 +0000 (09:04 -0700)
Using the __aligned() attribute in favor of __attribute__((aligned(size)))

Signed-off-by: Sam Hansen <solid.se7en@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.h

index 9711d1e..572c0b1 100644 (file)
@@ -70,7 +70,7 @@ struct table {
        u16 size;       /* object size (excluding header) */
        u8 count;       /* object ref count (not yet used) */
        u8 flags;
-} __attribute__((aligned(4)));
+} __aligned(4);
 
 struct zram_stats {
        u64 compr_size;         /* compressed size of pages stored */