From patchwork Sat Jul 21 03:17:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10538579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6D1E76053F for ; Sat, 21 Jul 2018 03:17:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 563D8292A9 for ; Sat, 21 Jul 2018 03:17:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47BC9292B5; Sat, 21 Jul 2018 03:17:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B41C1292A9 for ; Sat, 21 Jul 2018 03:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727206AbeGUEIp (ORCPT ); Sat, 21 Jul 2018 00:08:45 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46542 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727081AbeGUEIp (ORCPT ); Sat, 21 Jul 2018 00:08:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IfrtzSekLaMORf7Bv7r+0EGDSBaP9Az0QB/7B2qghOs=; b=S5GdVopHXkIQQhpaIfV9sBU19q 5WvjMTtTk5elUGsASXO9/KWvhmo5NTLb1GQH7j8ZpD+I7mfEixtQYd9wJDq2Lwud21jx9cQpziez+ hm9CQp542fOMOUtkrouhaZ8WsuzEbO+H7Qqw3Ucsr3A8jS3PbaRWvW8lelrAVuVe+nhk274loyapV lL6B5rwaj9NyjgZ8d/x8cVMEZJQ3ohNqBVdGN4ePc6U0xP2Yc2qEvYWvV7aoZVipUQUVYjq67ATFg UQGH4/0RZq7OIp1W+lUoDhBx5603dFkSrKMkiLzlPehswzNRPtOBRk8iesgDKOtYgaJl7ArTuz8DP WDerOYgQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fgiOn-0001N8-9q; Sat, 21 Jul 2018 03:17:39 +0000 To: LKML , Yoshinori Sato Cc: Rich Felker , linux-sh@vger.kernel.org From: Randy Dunlap Subject: [PATCH] arch/h8300: fix kernel/dma.c build warning Message-ID: Date: Fri, 20 Jul 2018 20:17:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Language: en-US Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap 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 Cc: linux-sh@vger.kernel.org Acked-by: Richard Kuo --- arch/hexagon/kernel/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20180717.orig/arch/hexagon/kernel/dma.c +++ linux-next-20180717/arch/hexagon/kernel/dma.c @@ -47,7 +47,7 @@ void *arch_dma_alloc(struct device *dev, panic("Can't create %s() memory pool!", __func__); else gen_pool_add(coherent_pool, - pfn_to_virt(max_low_pfn), + (unsigned long)pfn_to_virt(max_low_pfn), hexagon_coherent_pool_size, -1); }