]> git.baikalelectronics.ru Git - kernel.git/commit
arch/hexagon: fix kernel/dma.c build warning
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 21 Jul 2018 03:17:35 +0000 (20:17 -0700)
committerRichard Kuo <rkuo@codeaurora.org>
Tue, 11 Sep 2018 00:42:01 +0000 (19:42 -0500)
commit24fc76d7afd2d92528b4a84078d856a639060a57
tree47b5237b709c6062d9f0978e6d9302898187bd48
parentd9cd171e36a0a756e2d44073ffb1adf94fb7ed60
arch/hexagon: fix kernel/dma.c build warning

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>
arch/hexagon/kernel/dma.c