Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4648011imm; Sun, 22 Jul 2018 02:28:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf+Gd8SviHOpr/Lus1bCZz+RonPwMNqXM8m98iKtYVFT16N905cWvDVQiw6AdzhIwdsMywm X-Received: by 2002:aa7:808f:: with SMTP id v15-v6mr8846174pff.38.1532251714411; Sun, 22 Jul 2018 02:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532251714; cv=none; d=google.com; s=arc-20160816; b=XBaDpGG1WDFfzIR0dtaeLM0rOjybJWuVatt7jXmuUFBr2cxZO8Nx/6ihnPettkukso byQXi8aflsY71IGMJSAnQgQtZ8uDPbC7aZYVsxYBUEwH1x+rDuUHZB4qTNdRQmVixPE5 SHQzyqrC51v58/OV2z6EMedx8vABccHR+TxMirfJ+zi69QboAGHt77UPkd4g1dQ4Sm7D Sm+vjMcUaAofP+KO+p3dHzFk+SZyU8wlN3OXMnFPF/z5H90tJFHlsziZpwZOLkStV2pP XvKy9/eiY+GStsL0AP1RofRhYrGy7ivRKIVyQtjZGXNWinSDQ57oob/2l/DPKw/flMTf epGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=LFTb19kZR4E3t+QGqDRIhZKMW1Hv0QDgz1JujwutnXc=; b=t4veByW5eaToMnhqsNS2BqI6CzHrJFhgx6fydCZrXkNj/x9Gxb5uQe1y4e8YYEgHPI ipFM12iOrkX1pP0TmKY9pjaXSICiFBd6Ln18NoCLg4TLtntDQifKF+bkxdOcYcVIGIuQ mQXviXbbgTmaeUX5dxJg0jhl2xyL8eSd8aJAtRlDR680uvmFhGZHqNyOX1hONhs6YYTY 4SZdNDX5SMWdLLqtIzgOlFRyRgpurvI305Btkq5R9i7RhQAkdIjHXfmnTXiMU9LwOuyZ j7c2wCruPsaxBn/95uPeGZx2Z2SlDT94TObO4S0pJWLDwIVt9LWwe5iPNET33FMqOIed PDBw== ARC-Authentication-Results: i=1; mx.google.com; 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 t2-v6si6221393pgs.142.2018.07.22.02.28.19; Sun, 22 Jul 2018 02:28:34 -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; 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 S1728539AbeGVKWP (ORCPT + 99 others); Sun, 22 Jul 2018 06:22:15 -0400 Received: from mail-vk0-f67.google.com ([209.85.213.67]:35711 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728398AbeGVKWP (ORCPT ); Sun, 22 Jul 2018 06:22:15 -0400 Received: by mail-vk0-f67.google.com with SMTP id p12-v6so7945267vkf.2; Sun, 22 Jul 2018 02:26:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LFTb19kZR4E3t+QGqDRIhZKMW1Hv0QDgz1JujwutnXc=; b=qTR6fqUDeuZcekfRDhYfUxbLqrsgYWfN8VvUvYX8fIL1kKKQPp5MFQ+yFmG9KgbcFe 1bqEtCWhdYWzDj9gpHcUrS/3p7qrenhdtD3Gq3xSd9xZuB1MD4W9TOIAo9oyty0Lags+ PluHk9wXuzmLY0S1sSF5DFjwymTSdijX1pyEFXFtQPYYeTR64zkyOUm29ic4hRh3db3P nKjkTAIqBvt9oToMFdtaQBQjChEZhzqZALujQ9DF6YYM+TG6nuSPJIa7jyhB5pCmfhlU 9qXp0n7G4yusw56G6UNwhSDGnvGSQxwEOhaTC0iywOMG+8ji3QPyLAFfOSuVsmJRTnj3 hYbA== X-Gm-Message-State: AOUpUlE/AArh1r5d4qzEhZGBUWN7E3h6lAkAweaw4R0jAM1UwYZJJTLv XW9c05y9bX897nrcfm1a6UGrNUlG3tXC8dZ0VzI= X-Received: by 2002:a1f:9cc4:: with SMTP id f187-v6mr5041326vke.87.1532251570847; Sun, 22 Jul 2018 02:26:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Sun, 22 Jul 2018 11:25:59 +0200 Message-ID: Subject: Re: [PATCH] arch/h8300: fix kernel/dma.c build warning To: Randy Dunlap Cc: Richard Kuo , "open list:QUALCOMM HEXAGON..." , Linux Kernel Mailing List , Yoshinori Sato , Rich Felker , Linux-sh list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC hexagon hexagon != H8/300 != SuperH 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 -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds