Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp476269imm; Wed, 4 Jul 2018 00:03:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd07+VVqP3z49ZKmXmX8BrSeXF9G1DYx3RThgRo7F7RYMfPGqqAmqgcs/D4TjbWpY0l6Vj3 X-Received: by 2002:a17:902:a5cb:: with SMTP id t11-v6mr902244plq.71.1530687804130; Wed, 04 Jul 2018 00:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530687804; cv=none; d=google.com; s=arc-20160816; b=WYhKgJFC6ejzKkcd0XgwrUmZ9F2WFW8Ch9GWEtooODeo59JwKj5KxWYI3kObL13coP iMO5KS2JEJQxK/uw5RKEgRih5LMGFLaEM8dkIXIsuucZKyyej/GmJzYCJX9lMesdp8H8 HX2DEXIyXvevHiWPn9Xqh8aK7r4d7GtIYD6XVeyhIB7eEWhApSpjjLEaKpFTynRbn1am /2YwzEXwbZONpVMqNKqvuSFfg8pkJdhS4IqopVOQZ4kBMew4SWl3CaVpBdpNWHzXNP+k mQ8msoVTxfvF2uQ2fHMFe5173kj3KrHMpaQa/UFCsVzV1FoSwchrd/DL8PhLdcElFHWp wG5A== 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=WWuaklC1WvGHCmepBU9RvfpgawpqpDQ6DTbTT0HXh9U=; b=OPa/t/2RlqC+tbqWchNl7m1ZpSaHoHLL/TgeX5IbLDdQs9RFLunsbdI2lSNs7E4ONp sKEWm/87ZBDPrHg0IkdgFIUBo+Iw+S2x6FWnz2UJFJDV0blKOO2JZux2+DRSrWBaODEH b2PYi/wuMFyirQgDWJcC6jFTi/d8Frxxt7fIvEkmqJQrSEx+lM0MNOf3mOQz4Om8fIYV mz0nnc3FAUwRhKM+oFrqw2jW5mg3mOFeyRc7DtrN5zfvK0UvhqVtW26788hiyOwamnv9 Cf5zTvoGGvPEgEILXYMFXR0jJ+cZJ2v8pChtKLpHc48Fh+bil1CrGf+O0TaZrUzciBnO CMyw== 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 x127-v6si2616782pgb.618.2018.07.04.00.03.09; Wed, 04 Jul 2018 00:03:24 -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 S1753607AbeGDHCZ (ORCPT + 99 others); Wed, 4 Jul 2018 03:02:25 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41186 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbeGDHCY (ORCPT ); Wed, 4 Jul 2018 03:02:24 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w646x320057291 for ; Wed, 4 Jul 2018 03:02:24 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k0n98gceb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Jul 2018 03:02:23 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jul 2018 08:02:21 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) 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) Wed, 4 Jul 2018 08:02:18 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6472Hkp34144498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Jul 2018 07:02:17 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E6AB4AE064; Wed, 4 Jul 2018 10:02:18 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7BFB6AE045; Wed, 4 Jul 2018 10:02:18 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.160]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 4 Jul 2018 10:02:18 +0100 (BST) Date: Wed, 4 Jul 2018 10:02:14 +0300 From: Mike Rapoport To: Andrew Morton Cc: linux-mm , lkml , Michal Hocko , Matthew Wilcox Subject: Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate References: <1530637506-1256-1-git-send-email-rppt@linux.vnet.ibm.com> <20180703125722.6fd0f02b27c01f5684877354@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703125722.6fd0f02b27c01f5684877354@linux-foundation.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18070407-0012-0000-0000-000002868EDA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070407-0013-0000-0000-000020B80F46 Message-Id: <20180704070214.GA4352@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-04_02:,, 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=890 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807040084 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 12:57:22PM -0700, Andrew Morton wrote: > On Tue, 3 Jul 2018 20:05:06 +0300 Mike Rapoport wrote: > > > Most functions in memblock already use phys_addr_t to represent a physical > > address with __memblock_free_late() being an exception. > > > > This patch replaces u64 with phys_addr_t in __memblock_free_late() and > > switches several format strings from %llx to %pa to avoid casting from > > phys_addr_t to u64. > > > > ... > > > > @@ -1343,9 +1343,9 @@ void * __init memblock_virt_alloc_try_nid_raw( > > { > > void *ptr; > > > > - memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=0x%llx max_addr=0x%llx %pF\n", > > - __func__, (u64)size, (u64)align, nid, (u64)min_addr, > > - (u64)max_addr, (void *)_RET_IP_); > > + memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=%pa max_addr=%pa %pF\n", > > + __func__, (u64)size, (u64)align, nid, &min_addr, > > + &max_addr, (void *)_RET_IP_); > > > > Did you see all this checkpatch noise? > > : WARNING: Deprecated vsprintf pointer extension '%pF' - use %pS instead > : #54: FILE: mm/memblock.c:1348: > : + memblock_dbg("%s: %llu bytes align=0x%llx nid=%d from=%pa max_addr=%pa %pF\n", > : + __func__, (u64)size, (u64)align, nid, &min_addr, > : + &max_addr, (void *)_RET_IP_); > : ... > : Sorry, my bad... > * - 'S' For symbolic direct pointers (or function descriptors) with offset > * - 's' For symbolic direct pointers (or function descriptors) without offset > * - 'F' Same as 'S' > * - 'f' Same as 's' > > I'm not sure why or when all that happened. > > I suppose we should do that as a separate patch sometime. > -- Sincerely yours, Mike.