Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298125
| Path | csiph.com!feeder.erje.net!2.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Toshi Kani <toshi.kani@hpe.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 15/16] checkpatch: Add warning on deprecated walk_iomem_res |
| Date | Fri, 25 Dec 2015 23:20:01 +0100 |
| Message-ID | <qJISl-Rm-5@gated-at.bofh.it> (permalink) |
| References | <qJISl-Rm-3@gated-at.bofh.it> |
| X-Original-To | akpm@linux-foundation.org, bp@alien8.de |
| X-Mailer | git-send-email 2.4.3 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andy Whitcroft <apw@canonical.com>, Joe Perches <joe@perches.com>, Toshi Kani <toshi.kani@hpe.com> |
| X-Original-Date | Fri, 25 Dec 2015 15:09:24 -0700 |
| X-Original-Message-ID | <1451081365-15190-15-git-send-email-toshi.kani@hpe.com> |
| X-Original-References | <1451081365-15190-1-git-send-email-toshi.kani@hpe.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1298125 |
Show key headers only | View raw
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 <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Cc: Borislav Petkov <bp@alien8.de>
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
---
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 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/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 15/16] checkpatch: Add warning on deprecated walk_iomem_res Toshi Kani <toshi.kani@hpe.com> - 2015-12-25 23:20 +0100
Re: [PATCH v2 15/16] checkpatch: Add warning on deprecated walk_iomem_res Joe Perches <joe@perches.com> - 2015-12-26 01:10 +0100
Re: [PATCH v2 15/16] checkpatch: Add warning on deprecated walk_iomem_res Toshi Kani <toshi.kani@hpe.com> - 2015-12-27 02:00 +0100
csiph-web