From: kgene.kim@samsung.com (Kukjin Kim) Date: Sat, 16 Jul 2011 16:06:16 +0900 Subject: [PATCH] ARM:SAMSUNG: DMA Cleanup as per sparse [re-submit] In-Reply-To: <4E1BE8A5.1010304@linaro.org> References: <1310401398-21104-1-git-send-email-sangwook.lee@linaro.org> <4E1BE8A5.1010304@linaro.org> Message-ID: <037901cc4386$dab51180$901f3480$%kim@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Tushar Behera wrote: > > On Monday 11 July 2011 09:53 PM, Sangwook Lee wrote: > > Function declaration differs between file: dma.c and file:dma.h > > and SPARSE (Documentation/sparse.txt) gives error messages > > > > All dma channels are members of 'enum dma_ch' and not 'unsigned int' > > Please have a look at channel definitions in: > > arch/arm/mach-s3c64xx/include/mach/dma.h > > arch/arm/plat-samsung/include/plat/s3c-dma-pl330.h > > arch/arm/mach-s3c2410/include/mach/dma.h > > So all arguments should be of type 'enum dma_ch' > > > > Signed-off-by: Sangwook Lee > > --- > > arch/arm/mach-s3c64xx/dma.c | 14 +++++++------- > > arch/arm/plat-s3c24xx/dma.c | 12 ++++++------ > > arch/arm/plat-samsung/dma.c | 6 +++--- > > arch/arm/plat-samsung/include/plat/dma.h | 21 +++++++++++---------- > > 4 files changed, 27 insertions(+), 26 deletions(-) > > > > Compilation is ok for following default configs. > > s3c2410_defconfig > s3c6400_defconfig > s5p64x0_defconfig > s5pc100_defconfig > s5pv210_defconfig > exynos4_defconfig > Tushar, Thanks :) Best regards, Kgene. -- Kukjin Kim , Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.