init: use type alignment for kernel parameters
[sfrench/cifs-2.6.git] / include / linux / init.h
index 7b53cb3092ee9956866e79a677c97cb5235dd96c..e668832ef66ad79f3f697ee675864c42d5149026 100644 (file)
@@ -255,7 +255,7 @@ struct obs_kernel_param {
                __aligned(1) = str;                                     \
        static struct obs_kernel_param __setup_##unique_id              \
                __used __section(".init.setup")                         \
-               __attribute__((aligned((sizeof(long)))))                \
+               __aligned(__alignof__(struct obs_kernel_param))         \
                = { __setup_str_##unique_id, fn, early }
 
 #define __setup(str, fn)                                               \