From: Sam Hansen Date: Thu, 7 Jun 2012 23:03:48 +0000 (-0700) Subject: staging: zram: conventions, __aligned() attribute X-Git-Tag: firefly_0821_release~3680^2~2356^2~877 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=80677c2538283678c7b2ef7ebbd653a3fa54d086;p=firefly-linux-kernel-4.4.55.git staging: zram: conventions, __aligned() attribute Using the __aligned() attribute in favor of __attribute__((aligned(size))) Signed-off-by: Sam Hansen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zram/zram_drv.h b/drivers/staging/zram/zram_drv.h index 9711d1e281f1..572c0b1551d4 100644 --- a/drivers/staging/zram/zram_drv.h +++ b/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 */