Linux-sh Archive on
 help / color / Atom feed
From: Greg Kroah-Hartman <>
Cc: Greg Kroah-Hartman <>,, Randy Dunlap <>,
	Yoshinori Sato <>,
	Rich Felker <>,, Richard Kuo <>,
	Sasha Levin <>
Subject: [PATCH 4.4 100/113] arch/hexagon: fix kernel/dma.c build warning
Date: Mon, 08 Oct 2018 18:31:41 +0000
Message-ID: <> (raw)
In-Reply-To: <>

4.4-stable review patch.  If anyone has any objections, please let me know.


From: Randy Dunlap <>

[ 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 <>
Cc: Yoshinori Sato <>
Cc: Rich Felker <>
Patch-mainline: linux-kernel @ 07/20/2018, 20:17
[ fixed architecture name]
Signed-off-by: Richard Kuo <>
Signed-off-by: Sasha Levin <>
Signed-off-by: Greg Kroah-Hartman <>
 arch/hexagon/kernel/dma.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/hexagon/kernel/dma.c
+++ b/arch/hexagon/kernel/dma.c
@@ -68,7 +68,7 @@ static void *hexagon_dma_alloc_coherent(
 			panic("Can't create %s() memory pool!", __func__);
-				pfn_to_virt(max_low_pfn),
+				(unsigned long)pfn_to_virt(max_low_pfn),
 				hexagon_coherent_pool_size, -1);

           reply index

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-sh Archive on

Archives are clonable:
	git clone --mirror linux-sh/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-sh linux-sh/ \
	public-inbox-index linux-sh

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone