Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932451AbbLZAFO (ORCPT ); Fri, 25 Dec 2015 19:05:14 -0500 Received: from smtprelay0075.hostedemail.com ([216.40.44.75]:46507 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753788AbbLZAFL (ORCPT ); Fri, 25 Dec 2015 19:05:11 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:968:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:4321:5007:6119:6261:10004:10400:10848:11026:11232:11658:11783:11914:12517:12519:12740:13069:13161:13229:13311:13357:13894:14659:21060:21080:30012:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: meat94_2cef565873a1c X-Filterd-Recvd-Size: 1821 Message-ID: <1451088307.12498.3.camel@perches.com> Subject: Re: [PATCH v2 15/16] checkpatch: Add warning on deprecated walk_iomem_res From: Joe Perches To: Toshi Kani , akpm@linux-foundation.org, bp@alien8.de Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andy Whitcroft Date: Fri, 25 Dec 2015 16:05:07 -0800 In-Reply-To: <1451081365-15190-15-git-send-email-toshi.kani@hpe.com> References: <1451081365-15190-1-git-send-email-toshi.kani@hpe.com> <1451081365-15190-15-git-send-email-toshi.kani@hpe.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.3-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 29 On Fri, 2015-12-25 at 15:09 -0700, Toshi Kani wrote: > Use of walk_iomem_res() is deprecated in new code.??Change > checkpatch.pl to check new use of walk_iomem_res() and suggest > to use walk_iomem_res_desc() instead. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3424,6 +3424,12 @@ sub process { > ? } > ? } > ? > +# check for uses of walk_iomem_res() > + if ($line =~ /\bwalk_iomem_res\(/) { > + WARN("walk_iomem_res", > + ?????"Use of walk_iomem_res is deprecated, please use walk_iomem_res_desc instead\n" . $herecurr) > + } > + > ?# check for new typedefs, only function parameters and sparse annotations > ?# make sense. > ? if ($line =~ /\btypedef\s/ && There are 6 uses of this function in the entire kernel tree. Why not just change them, remove the function and avoid this? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/