Browse Source

staging: zram: conventions, __aligned() attribute

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>
Sam Hansen 13 years ago
parent
commit
80677c2538
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/zram/zram_drv.h

+ 1 - 1
drivers/staging/zram/zram_drv.h

@@ -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 */