Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1209340imm; Tue, 3 Jul 2018 07:22:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLxbteYUlzw5Wfmq5yVCULRTNAQRIlRw29j45eyD0Cu7I62tnO6yRVydjUUoZ+p27vjdPP6 X-Received: by 2002:a17:902:9690:: with SMTP id n16-v6mr30118383plp.94.1530627720792; Tue, 03 Jul 2018 07:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530627720; cv=none; d=google.com; s=arc-20160816; b=bibBClPM3LXktxQ05/YxXAaYtxiPXQkGKGjKXO4xu8KbdmCtSdMzVGpns9nk8vM92I 4EGvlMOvklErSjDBZhZ4gZS0/71ynYyLoQN3+/J5jcypaTzAcKPJvyINcp57sZ/ebez1 bzHbIn6jI69cbJ/AanfXcUvnIacUEy9cSbnbgx3d5xlhee14VN3oCGNeELu4Ynql0nlS 68nY/o/0qpfC1AVurByvS1NIakxL2JQCYQaTqqZeoFJVR5pA47xgMEv5iI17CY0/19S6 4X8PJMzl1nGiAHiShLpSN4RqzjaSHGlO1fOmxgU0m6UXU2fwGQRtvdbe++dHNnHOaVHr NilA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=H+IMUVRE/tu0d0gHs7mtsHpkdAMshfGgXq8kUjUDNvo=; b=nDgE761PPCxbi/80Qs0WdZYLrKWWsXmxp5fKLP2cAWbPx5B5rDY2aOfWCI5ezo8lHI y3NJW5Azcn1/8WabwlyI397cGbqd3v90hZuMVMu8FCW33X4qjWE9nfo7GzU5K/iuJSGX YAM0HpD2IgMf0e96JQ/FPfuBGJ6d4YjPLBBHiFg4hqVoDJe4/fxcAe+yCOHEgj2R7aLa 6xJTQ1MgPj1Q2tnyq8Mo+4tw1pNGnYy1hYSXOcAFQ5ks1/6CbkvK7ahfFFrxUJWqSpR1 6ze3R/slEzX9SOdTXWIoR0P/7Yzruc16cUfuRs4amYMtXWbixeIMFb03bSJ8ZgGttPS7 sbEw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si1185719plz.379.2018.07.03.07.21.46; Tue, 03 Jul 2018 07:22:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753461AbeGCOU7 (ORCPT + 99 others); Tue, 3 Jul 2018 10:20:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:54962 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753036AbeGCOU5 (ORCPT ); Tue, 3 Jul 2018 10:20:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 95FA6B055; Tue, 3 Jul 2018 14:20:56 +0000 (UTC) Date: Tue, 3 Jul 2018 16:20:54 +0200 From: Michal Hocko To: Mike Rapoport Cc: Geert Uytterhoeven , Greg Ungerer , Sam Creasey , linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] m68k/page_no.h: force __va argument to be unsigned long Message-ID: <20180703142054.GL16767@dhcp22.suse.cz> References: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> <1530613795-6956-3-git-send-email-rppt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530613795-6956-3-git-send-email-rppt@linux.vnet.ibm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 03-07-18 13:29:54, Mike Rapoport wrote: > Add explicit casting to unsigned long to the __va() parameter Why is this needed? > Signed-off-by: Mike Rapoport > --- > arch/m68k/include/asm/page_no.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h > index e644c4d..6bbe520 100644 > --- a/arch/m68k/include/asm/page_no.h > +++ b/arch/m68k/include/asm/page_no.h > @@ -18,7 +18,7 @@ extern unsigned long memory_end; > #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE > > #define __pa(vaddr) ((unsigned long)(vaddr)) > -#define __va(paddr) ((void *)(paddr)) > +#define __va(paddr) ((void *)((unsigned long)(paddr))) > > #define virt_to_pfn(kaddr) (__pa(kaddr) >> PAGE_SHIFT) > #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT) > -- > 2.7.4 -- Michal Hocko SUSE Labs