Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1268825imm; Tue, 3 Jul 2018 08:16:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjS57C6uU2Bd+mysb4k6I2XeDdgMkdMijvoxqI1HAU5w15vApUeut213Iq+/6XNU1aXCFk X-Received: by 2002:a17:902:d218:: with SMTP id t24-v6mr23171409ply.63.1530630992606; Tue, 03 Jul 2018 08:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530630992; cv=none; d=google.com; s=arc-20160816; b=qSTg0PrbKV4xxBdPrFitS7eJW55E0Ro2tR5tGfBqB0e1PUFImmOl1HGBi7ysdBc2tJ W5OH+noARP9QrzwB0aY6vGbrPHnxrRoiY7CJR654tuVLshveCUqlcKybeqHtpry1RO3V gD7/pF3sHz7vwXB3R6Jz3xUf3asgRhr5mgzS2yDLIWOLpEZrp2w9GaitE2YtAocJ1oQz zhfrPlBCgFAHMTaCLgyRppT8k5Zkm9i+ock1zr5E+0LhqnNzQv7UNwvLdTRMJo3Z1fOJ dC1rmVj/pK3A8ucyZUy/4y8z+ID/Gzb073BivrsOquhK4JCyob/1eUS7045VpY6AMNnm 9Rgg== 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=+LM8BtKkrKu17iuoKztyMssmh1UqzWm+RcvraaE1g7w=; b=bwxWJMQYeRwhv7UwXxhCGWHe5VLCZQdNRF+lkzXo/yvbJ803vUoboEUuvqApEzj06f asBSF8hk4IWXfniD9nu+wx1cPglnVc/Njq5JiRF7dEA8TY07FCdJm/BK3pnmtonFyRDw c/rduHgywgt71vNU7davV3vFdS8gHA4lKDQqU0mGbFB6x84SxjdKjIP5gkuD4DiTaoky +6jPAvyxO5a6R/9b3rLJTd83RyB29O1TGs+Ntssa578jqwKEqiXgzdUM4O/eaftPMRgm bJncdWB1BrRgrJpcR999mj1PtYMH35Xdt2nK/TV9DzhQNTjhE8OqhZNyYbbbYRqRKMhz Su3g== 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 x33-v6si1273424plb.512.2018.07.03.08.16.17; Tue, 03 Jul 2018 08:16:32 -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 S933937AbeGCPOI (ORCPT + 99 others); Tue, 3 Jul 2018 11:14:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:37524 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933181AbeGCPOE (ORCPT ); Tue, 3 Jul 2018 11:14:04 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2EB3EAD30; Tue, 3 Jul 2018 15:14:03 +0000 (UTC) Date: Tue, 3 Jul 2018 17:14:01 +0200 From: Michal Hocko To: Matthew Wilcox Cc: Mike Rapoport , 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: <20180703151401.GQ16767@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> <20180703142054.GL16767@dhcp22.suse.cz> <20180703150315.GC4809@rapoport-lnx> <20180703150535.GA21590@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703150535.GA21590@bombadil.infradead.org> 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 08:05:35, Matthew Wilcox wrote: > On Tue, Jul 03, 2018 at 06:03:16PM +0300, Mike Rapoport wrote: > > On Tue, Jul 03, 2018 at 04:20:54PM +0200, Michal Hocko wrote: > > > 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? > > > > To make it consitent with other architecures and asm-generic :) > > > > But more importantly, __memblock_free_late() passes u64 to page_to_pfn(). > > Why does memblock work in terms of u64 instead of phys_addr_t? Yes, phys_addr_t was exactly that came to my mind as well. Casting physical address to unsigned long just screams for potential problems. -- Michal Hocko SUSE Labs