Re: [PATCH] types.h: define __aligned_u64 and expose to userspace

From: Arnd Bergmann
Date: Fri Oct 15 2010 - 04:51:28 EST


On Friday 15 October 2010 06:24:55 Eric Paris wrote:
> We currently have a kernel internal type called aligned_u64 which aligns
> __u64's on 8 bytes boundaries even on systems which would normally align
> them on 4 byte boundaries. This patch creates a new type __aligned_u64
> which does the same thing but which is exposed to userspace rather than
> being kernel internal.
>
> Based-on-patch-by: Andreas Gruenbacher <agruen@xxxxxxx>
> Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>

We should have done this long ago.

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>

BTW, why a define, not a typedef? Probably doesn't really matter in the end,
I just wonder if the define has any advantages here.

Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/