From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toshi Kani Subject: [PATCH v2 15/16] checkpatch: Add warning on deprecated walk_iomem_res Date: Fri, 25 Dec 2015 15:09:24 -0700 Message-ID: <1451081365-15190-15-git-send-email-toshi.kani@hpe.com> References: <1451081365-15190-1-git-send-email-toshi.kani@hpe.com> Return-path: In-Reply-To: <1451081365-15190-1-git-send-email-toshi.kani@hpe.com> Sender: owner-linux-mm@kvack.org To: akpm@linux-foundation.org, bp@alien8.de Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andy Whitcroft , Joe Perches , Toshi Kani List-Id: linux-arch.vger.kernel.org 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. Cc: Andy Whitcroft Cc: Joe Perches Cc: Borislav Petkov Signed-off-by: Toshi Kani --- scripts/checkpatch.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 2b3c228..07a2dbe 100755 --- 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/ && -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g4t3428.houston.hp.com ([15.201.208.56]:24988 "EHLO g4t3428.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754485AbbLYWKe (ORCPT ); Fri, 25 Dec 2015 17:10:34 -0500 From: Toshi Kani Subject: [PATCH v2 15/16] checkpatch: Add warning on deprecated walk_iomem_res Date: Fri, 25 Dec 2015 15:09:24 -0700 Message-ID: <1451081365-15190-15-git-send-email-toshi.kani@hpe.com> In-Reply-To: <1451081365-15190-1-git-send-email-toshi.kani@hpe.com> References: <1451081365-15190-1-git-send-email-toshi.kani@hpe.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: akpm@linux-foundation.org, bp@alien8.de Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andy Whitcroft , Joe Perches , Toshi Kani Message-ID: <20151225220924.rOoktJ1OdIglSufkO2S62FF2LCUN6P9xZeFcA8F6Zs8@z> 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. Cc: Andy Whitcroft Cc: Joe Perches Cc: Borislav Petkov Signed-off-by: Toshi Kani --- scripts/checkpatch.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 2b3c228..07a2dbe 100755 --- 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/ &&