Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp570716imm; Wed, 4 Jul 2018 02:06:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdpPqNdIHsoHfdHmw+8qWTpg5NEkwZITVwLDa6emPeCup24Q0KfLqnQiFsrttx0fQeCNqU5 X-Received: by 2002:a17:902:581:: with SMTP id f1-v6mr1289749plf.48.1530695164876; Wed, 04 Jul 2018 02:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530695164; cv=none; d=google.com; s=arc-20160816; b=hVOEJY2fDed/L44UrnXZTkQYa4AdnnmADGiaYw+Lh5ByJ9Atro4b9tiY/7BSx6N9oS ihKPG7srd7sUhzlLm84Qdbrwxnj+B4u7GnHpmEvs+uYrs2+SUkUO3YI612TdM82BRnDp 8M7uNHXBrrRl6jK1FJlP1X3mfI6728gSaZWqbtxFzNLPK5FUEDuCw+guwM7sMwNsI7zD sINzdiLqAdmi1EL8TCRS5/A5MwX7AB196j2FIONkULAuRBEaqR73NWfYZhOTJd340DgB rNZ3GnR71VbMBvCXYGCDOSHHntuoJo6UPDyIWyqkBI2bl7XKb5xKRAWBPiiO+8EgFAUw sNBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=EmKM+Rcvtc4dbhFBkwZMN1Xcpu5FG6FIpqYwBlD5LuY=; b=cHCs+SCBjHQny5+H1JA5EiThrjB3YQ07LgXlTtfZctogCukIyMWf0YWcGd/bik1PAD Y3+usRG8SjCl9PgfEa4z4DHMpC0I5TpgGLvBcPjj8X+RKX+OIvGoy2c4TZNuN2vTZq13 c1MRmYfhJwNwFT9iQJxIEk+1RiWT6QZYenOcpO/0vnrlu9NV0885t0O/H6MLVfJuYOr9 lEQ5ZwxGaXDlw7udMeCpBfA1dPBc6NjmQSEVbgJrvFZILqTHkaWeEh1AjoBCtz4u64AP oX4hApVs2x+EJzZWyxnRmhr/gvA/E9Km436zeL0qEE4ArFu4QK4FZGa54InB8i1510KH 3gjA== 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 o5-v6si2992957plk.25.2018.07.04.02.05.50; Wed, 04 Jul 2018 02:06:04 -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 S934274AbeGDJEu (ORCPT + 99 others); Wed, 4 Jul 2018 05:04:50 -0400 Received: from smtprelay0082.hostedemail.com ([216.40.44.82]:57700 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932376AbeGDJEs (ORCPT ); Wed, 4 Jul 2018 05:04:48 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 927161800B451; Wed, 4 Jul 2018 09:04:47 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:334:355:368:369:379:541:599:800:960:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2689:2693:2828:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:4321:5007:7576:7903:9545:10004:10400:10848:10967:11026:11232:11658:11914:12043:12438:12555:12663:12740:12760:12895:12986:13069:13161:13229:13311:13357:13439:14181:14659:14721:21080:21324:21365:21433:21451:21627:30012:30054:30079:30089:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: gate60_c83badddf347 X-Filterd-Recvd-Size: 3055 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA; Wed, 4 Jul 2018 09:04:45 +0000 (UTC) Message-ID: <8dc61092669356f5417bc275e3b7c69ce637e63e.camel@perches.com> Subject: Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate From: Joe Perches To: Sergey Senozhatsky , Mike Rapoport Cc: Andrew Morton , linux-mm , lkml , Michal Hocko , Matthew Wilcox , Linus Torvalds Date: Wed, 04 Jul 2018 02:04:44 -0700 In-Reply-To: <20180704072308.GA458@jagdpanzerIV> References: <1530637506-1256-1-git-send-email-rppt@linux.vnet.ibm.com> <20180703125722.6fd0f02b27c01f5684877354@linux-foundation.org> <063c785caa11b8e1c421c656b2a030d45d6eb68f.camel@perches.com> <20180704070305.GB4352@rapoport-lnx> <20180704072308.GA458@jagdpanzerIV> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-07-04 at 16:23 +0900, Sergey Senozhatsky wrote: > On (07/04/18 10:03), Mike Rapoport wrote: > > > %p[Ff] got deprecated by commit 04b8eb7a4ccd9ef9343e2720ccf2a5db8cfe2f67 > > > > > > I think it'd be simplest to just convert > > > all the %pF and %pf uses all at once. > > > > > > $ git grep --name-only "%p[Ff]" | \ > > > xargs sed -i -e 's/%pF/%pS/' -e 's/%pf/%ps/' > > > > > > and remove the appropriate Documentation bit. > > > > > > > Something like this: > > > > From 0d3e7cf494123c2640b9a892160d2e2430787004 Mon Sep 17 00:00:00 2001 > > From: Mike Rapoport > > Date: Wed, 4 Jul 2018 09:55:50 +0300 > > Subject: [PATCH] treewide: retire '%pF/%pf' > > > > %p[Ff] got deprecated by commit 04b8eb7a4ccd9ef9343e2720ccf2a5db8cfe2f67 > > ("symbol lookup: introduce dereference_symbol_descriptor()") > > > > Replace their uses with %p[Ss] with > > > > $ git grep --name-only "%p[Ff]" | \ > > xargs sed -i -e 's/%pF/%pS/' -e 's/%pf/%ps/' > > > Sorry, NACK on lib/vsprintf.c part > > I definitely didn't want to do this tree-wide pf->ps conversion when > I introduced my patch set. pf/pF should have never existed, true, > but I think we must support pf/pF in vsprintf(). Simply because it > has been around for *far* too long. And? checkpatch warns about %p[Ff] uses. > People tend to develop "habits", > you know, I'm quite sure ppc/hppa/etc folks still do [and will] use > pf/pF occasionally. There's this saying about habits made to be broken. This is one of those habits. I'd expect more people probably get the %pS or %ps wrong than use %pF. And most people probably look for examples in code and copy instead of thinking what's correct, so removing old and deprecated uses from existing code is a good thing.