Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932313Ab1BRQwY (ORCPT ); Fri, 18 Feb 2011 11:52:24 -0500 Received: from mga02.intel.com ([134.134.136.20]:41504 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932275Ab1BRQwS (ORCPT ); Fri, 18 Feb 2011 11:52:18 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.62,188,1297065600"; d="scan'208";a="709592421" Subject: Re: [PATCH 2/2] pch_dma: set the number of array correctly From: "Koul, Vinod" To: Tomoya MORINAGA Cc: "Williams, Dan J" , "linux-kernel@vger.kernel.org" , "Wang, Qi" , "Wang, Yong Y" , "Clark, Joel" , "Ewe, Kok Howg" , "toshiharu-linux@dsn.okisemi.com" In-Reply-To: <1298003481-12845-2-git-send-email-tomoya-linux@dsn.okisemi.com> References: <1298003481-12845-1-git-send-email-tomoya-linux@dsn.okisemi.com> <1298003481-12845-2-git-send-email-tomoya-linux@dsn.okisemi.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 18 Feb 2011 21:56:24 +0530 Message-ID: <1298046384.31192.0.camel@vkoul-udesk3> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1228 Lines: 43 On Fri, 2011-02-18 at 10:01 +0530, Tomoya MORINAGA wrote: > set the number of array correctly. > > Signed-off-by: Tomoya MORINAGA > --- > drivers/dma/pch_dma.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c > index bf2ddd6..b1dfba7 100644 > --- a/drivers/dma/pch_dma.c > +++ b/drivers/dma/pch_dma.c > @@ -82,7 +82,7 @@ struct pch_dma_regs { > u32 dma_sts1; > u32 reserved2; > u32 reserved3; > - struct pch_dma_desc_regs desc[0]; > + struct pch_dma_desc_regs desc[MAX_CHAN_NR]; > }; > > struct pch_dma_desc { > @@ -124,7 +124,7 @@ struct pch_dma { > struct pci_pool *pool; > struct pch_dma_regs regs; > struct pch_dma_desc_regs ch_regs[MAX_CHAN_NR]; > - struct pch_dma_chan channels[0]; > + struct pch_dma_chan channels[MAX_CHAN_NR]; > }; > > #define PCH_DMA_CTL0 0x00 Both Acked-by: Vinod Koul -- ~Vinod Koul Intel Corp. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/