Skip to content

Commit 2eb3072

Browse files
rddunlapgregkh
authored andcommitted
arch/hexagon: fix kernel/dma.c build warning
[ Upstream commit 200f351 ] Fix build warning in arch/hexagon/kernel/dma.c by casting a void * to unsigned long to match the function parameter type. ../arch/hexagon/kernel/dma.c: In function 'arch_dma_alloc': ../arch/hexagon/kernel/dma.c:51:5: warning: passing argument 2 of 'gen_pool_add' makes integer from pointer without a cast [enabled by default] ../include/linux/genalloc.h:112:19: note: expected 'long unsigned int' but argument is of type 'void *' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: linux-sh@vger.kernel.org Patch-mainline: linux-kernel @ 07/20/2018, 20:17 [rkuo@codeaurora.org: fixed architecture name] Signed-off-by: Richard Kuo <rkuo@codeaurora.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1484d4f commit 2eb3072

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/hexagon/kernel/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void *hexagon_dma_alloc_coherent(struct device *dev, size_t size,
5959
panic("Can't create %s() memory pool!", __func__);
6060
else
6161
gen_pool_add(coherent_pool,
62-
pfn_to_virt(max_low_pfn),
62+
(unsigned long)pfn_to_virt(max_low_pfn),
6363
hexagon_coherent_pool_size, -1);
6464
}
6565

0 commit comments

Comments
 (0)