Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1293185imm; Tue, 3 Jul 2018 08:40:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLzDPNH/k/oBB6//lzLFIQnbbfMwd1Cox1oOG9pfaw7o53TUGrSLFy57ahxdddeUHki+7wa X-Received: by 2002:a63:8c51:: with SMTP id q17-v6mr26684410pgn.236.1530632434211; Tue, 03 Jul 2018 08:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530632434; cv=none; d=google.com; s=arc-20160816; b=l9N7QSYBAQ3E+MbamFuJzVXRfsfwT4Gzzec5fLzfgvN32HJZpLOcBTNpi+5TvE0XPk Gu9PbsjRvgFlJOPWFQYyQxP0swMEwLhAbxUT3VMv8AMu/hIaACZ9Xgt/slM/QOBBKm6M MMD4JIVVHdXeXFfS6wKJV5t66W+pCRBGvfBEJ0uXzQC0uQ9a6yi1I15/tzXEB37MqQ6D qiYhLlXCVVCuKzb9mDHkeTcuWH65xHjj6w93FAf9Fdl6+nZF5Rs3AypWVLeeB/YgfbcS UfiOeR/VHZU/w92E41jrx8SLIYzXAuovAxkakUb0a84+6FqU1CVrDjZPYcSIJMFIuaca eSCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=zh5b7r8rhy2zlXd0xJ9nrBk+oyUmM8AWl+qelUGMaQA=; b=NAM0W5UO2dCBJGUb3DoDLzcSpjlW9r381y5Y4GvgX0X47pw0NPSQ3Ks3CxrENO0a1c 7uh/T5JNs8re4O2aJ1OV/Cn1sFVzMawidL54nP0LXxlBZylG6e/fo2aJ1pcL9yYO+3PJ 403CK3NILU4xHrMxjiOcaZse34eH1ARXyUAVdfst1E+f6+2cX0DJ5hIL07J2r0DnlkZI nX9Z+YBRMT5hmXWkcS3e+DQ2RtUZmvomko/kThpxf+rr3z0TOdXwW0bAFY+Wa76ftAgL oDjmBufGRmfA+m++L4mJi3v5/PegbjAS72DYAiNXNkof+5bhHb5L3ZMbDTlYPJHaqwi4 susA== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91-v6si1351647ple.308.2018.07.03.08.40.19; Tue, 03 Jul 2018 08:40: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933292AbeGCPjn (ORCPT + 99 others); Tue, 3 Jul 2018 11:39:43 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40878 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932273AbeGCPjm (ORCPT ); Tue, 3 Jul 2018 11:39:42 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63FdXD8137990 for ; Tue, 3 Jul 2018 11:39:41 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k0a3hnxxu-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 11:39:41 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 16:39:40 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 3 Jul 2018 16:39:37 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63FdapZ37683206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 15:39:36 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A89C7A404D; Tue, 3 Jul 2018 18:40:01 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ACEE5A4053; Tue, 3 Jul 2018 18:40:00 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.206.209]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 3 Jul 2018 18:40:00 +0100 (BST) Date: Tue, 3 Jul 2018 18:39:33 +0300 From: Mike Rapoport To: Michal Hocko Cc: Matthew Wilcox , 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 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> <20180703151401.GQ16767@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703151401.GQ16767@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18070315-0012-0000-0000-0000028659B4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070315-0013-0000-0000-000020B7D727 Message-Id: <20180703153932.GE4809@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=860 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807030178 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 05:14:01PM +0200, Michal Hocko wrote: > 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. Heh, that's what we have: ~/git/linux $ git grep 'define __va.*\(unsigned long\)' | wc -l 22 > -- > Michal Hocko > SUSE Labs > -- Sincerely yours, Mike.