From: Mike Frysinger Date: Sat, 3 Mar 2012 18:14:01 -0500 Subject: [U-Boot] fs/fat alignment In-Reply-To: <1330812338-25820-1-git-send-email-eric.nelson@boundarydevices.com> References: <1330812338-25820-1-git-send-email-eric.nelson@boundarydevices.com> Message-ID: <201203031814.02944.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: