Skip to content

Commit

Permalink
staging: zram: conventions, __aligned() attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Hansen authored and Greg Kroah-Hartman committed Jun 11, 2012
1 parent 94b8435 commit 80677c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/zram/zram_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 80677c2

Please sign in to comment.