[U-Boot] fs/fat alignment

Mike Frysinger vapier at gentoo.org
Sun Mar 4 00:14:01 CET 2012


On Saturday 03 March 2012 17:05:37 Eric Nelson wrote:
> Note that checkpatch fails on this patch with the following warning,
> but I'm not sure how to resolve it.
> 
> Nothing else in the U-Boot code base seems to use __align() although
> it's defined in include/linux/compiler-gcc.h.
> 
> #46: FILE: fs/fat/fat.c:432:
> +__attribute__ ((__aligned__ (ARCH_DMA_MINALIGN)))
> 
> WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))
> #46: FILE: fs/fat/fat.c:432:
> +__attribute__ ((__aligned__ (ARCH_DMA_MINALIGN)))
> 
> total: 0 errors, 2 warnings, 47 lines checked

it's easy enough to include linux/compiler.h and use __align()
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120303/58259b4e/attachment.pgp>


More information about the U-Boot mailing list