Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4992656imm; Sun, 22 Jul 2018 10:26:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfRjlBYQzdsB7bIaaTR29EXwS8AakwEjcVMXyBTpvzPw9nb3gW2ZtAaBwOvH72NN5PxsujI X-Received: by 2002:a62:201b:: with SMTP id g27-v6mr10004725pfg.253.1532280403674; Sun, 22 Jul 2018 10:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532280403; cv=none; d=google.com; s=arc-20160816; b=lLVhh/BkqgRkWIcsIjHV2c04urPzrYiW0F6Vt1m0RDpttyp7wp+gn0Fcoe/qKTxpad riMhyxCu0ytcvIibCsG6Qwmrl4DiSCmDDZcpudbXk3DjqC8sdDGxO739xzv0hBZmkorh +Pq5JJlig0TaC7tEf/H1kqPHgQguPpoggos0P1sHDfxi/fOEw3QwfvmhxTpI+T8GqtB1 F0/Wy87RKyGxMB+7GCpd7jH7p2AsrD24K64galpBwo7jzIA7S3BiKlarI4EohHBlsgC7 HPAOx8BzsX3+hO5naHIi2DrCHZXNga8HfGGhEQ2FFrCne9bwsIafWhyFjwx7l9h210M4 hC7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=cGorUSEktgbQnK9D/09bSTRV7t4di2d1RlUMgWkoDZQ=; b=T6aJLsT/xl4zLe9PYdJSZP5hQE0X2F+tnquGPmE+gFsbgsy+Sup/NDKyaGneNW5/sq HR6QYROPX+GML7ZVpWRZ8ZVJ/pnrcahf/BLK4mZELoGpHQ442eAauKhL461VRhOUDIHq ufnAfoKHsuMnO09DiBNar/OH0Qdnw6+Wj0R/Pk5ptiyG1ieD7B8J3ncoSLJVu3dyv86K BQXLyQzdM9WaCrq7wxNpc1Wr39aHHY7jfPFXDVQQH3BiKTg59isa2MfJuOHNAvsk8HLo AVmI7bXJ+SKuhhx/FVCA2NECXa2rjo6YjMaRqQyNiRcqSI8CbMCRw/GSsSGlrqzHy2uB BcoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WpOXEXyy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si6313919plg.396.2018.07.22.10.26.28; Sun, 22 Jul 2018 10:26:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WpOXEXyy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730258AbeGVSWY (ORCPT + 99 others); Sun, 22 Jul 2018 14:22:24 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58866 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727783AbeGVSWX (ORCPT ); Sun, 22 Jul 2018 14:22:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cGorUSEktgbQnK9D/09bSTRV7t4di2d1RlUMgWkoDZQ=; b=WpOXEXyyH8fsRKz+zPO2j5Tm+ RKb79nQ3Q9rtTD+10BB1lQt6w/WxpVeNusigRksuDL3dDtDeyGFkEZU61fL4cnppJe9Bu5NgNzyXP qt3F/o/iiYjjkQQd5vQWWyFS+w68kLzlBBu/MJ8tFEuD9zJqn8Q1LIMz25OaLi+kTlBgZ48z4UsD5 WA+H9xP3e06MRWltwbe9xiHlUkfraEQUbWcmEd3TlviS2gagfst7bvq0NwW5Lylhs6FsM4qOTxz/B c9+yoxicGpw/qSzvGvjZLGH1yBEu2s8RyLZjRQGpUwtbm+50OvKc/knh1uYxeQsJ3uNFIIxO63Zsv jsgxGBDpQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhI6O-0005QP-Ea; Sun, 22 Jul 2018 17:25:00 +0000 Subject: Re: [PATCH] arch/h8300: fix kernel/dma.c build warning To: Geert Uytterhoeven Cc: Richard Kuo , "open list:QUALCOMM HEXAGON..." , Linux Kernel Mailing List , Yoshinori Sato , Rich Felker , Linux-sh list References: From: Randy Dunlap Message-ID: <24723dd8-9d9f-24b7-6fe9-71a776c5d444@infradead.org> Date: Sun, 22 Jul 2018 10:24:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/22/2018 02:25 AM, Geert Uytterhoeven wrote: > CC hexagon > > hexagon != H8/300 != SuperH argh. Thanks. > On Sat, Jul 21, 2018 at 5:17 AM Randy Dunlap wrote: >> >> 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 >> --- >> arch/hexagon/kernel/dma.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> --- 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); >> } >> > > Gr{oetje,eeting}s, > > Geert > -- ~Randy