]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:52:23 +0000 (19:52 -0600)
commit5cd5885f2215225ebf28596192d9ec96f3113400
treec1958efae8656a90a2a6909be503e7670904bcd5
parent7e4207961302403cfd288324a42e791e017fac7c
arch/hexagon: fix kernel/dma.c build warning

BugLink: https://bugs.launchpad.net/bugs/1836426
[ Upstream commit 200f351e27f014fcbf69b544b0b4b72aeaf45fd3 ]

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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/hexagon/kernel/dma.c