From: Russell King - ARM Linux Subject: Re: [RFC PATCH 06/11] dma: amba-pl08x: Keep LLIs aligned to 4-word boundary Date: Mon, 17 Jun 2013 20:01:37 +0100 Message-ID: <20130617190137.GQ2718@n2100.arm.linux.org.uk> References: <1371416058-22047-1-git-send-email-tomasz.figa@gmail.com> <1371416058-22047-7-git-send-email-tomasz.figa@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Linus Walleij Cc: "alsa-devel@alsa-project.org" , Heiko =?iso-8859-1?Q?St=FCbner?= , Padmavathi Venna , Takashi Iwai , Alessandro Rubini , Tomasz Figa , "linux-kernel@vger.kernel.org" , Giancarlo Asnaghi , linux-samsung-soc , Vinod Koul , Thomas Abraham , Grant Likely , Arnd Bergmann , Kukjin Kim , Sylwester Nawrocki , Jaroslav Kysela , "linux-arm-kernel@lists.infradead.org" , Sangbeom Kim , Liam Girdwood , linux-spi@vger.kernel.org, Mark List-Id: alsa-devel@alsa-project.org On Mon, Jun 17, 2013 at 03:51:20PM +0200, Linus Walleij wrote: > On Sun, Jun 16, 2013 at 10:54 PM, Tomasz Figa wrote: > > diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c > > index eb10eb8..0da5539 100644 > > --- a/drivers/dma/amba-pl08x.c > > +++ b/drivers/dma/amba-pl08x.c > > @@ -127,6 +127,7 @@ struct pl08x_lli { > > u32 lli; > > u32 cctl; > > u32 cctl1; > > + u32 dummy[3]; > > Atleast put a comment into the code explaining what this is all > about. Or someone will add another member to the struct and > all is lost. Call it "padding" rather than dummy. Another solution to that is to use __attribute__((__aligned__(16))) if you want it aligned to 16 byte boundaries.