login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
1
Re: false negative in checpatch for asm/ vs. linux/
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Andy Whitcroft <apw@...>
To: Nishanth Aravamudan <nacc@...>
Cc: LKML <linux-kernel@...>
Subject:
Re: false negative in checpatch for asm/ vs. linux/
Date: Thursday, May 1, 2008 - 6:24 am
On Tue, Apr 29, 2008 at 09:49:18AM -0700, Nishanth Aravamudan wrote:
quoted text
> Hi Andy, > > I think the following: > > #warn if <asm/foo.h> is #included and <linux/foo.h> is available (uses RAW line) > if ($tree && $rawline =~ m{^.\#\s*include\s*\<asm\/(.*)\.h\>}) { > my $checkfile = "$root/include/linux/.h"; > if (-f $checkfile && ne 'irq') { > WARN("Use #include <linux/.h> instead of <asm/.h>\n" . > $herecurr); > } > } > > in checkpatch.pl can lead to false positives for asm/ includes from within > linux/ files? e.g., I have a patch which moves the asm/hugetlb.h #include up to > the top of include/linux/hugetlb.h, but I get: > > [09:46:27]nacc@arkanoid:~/linux/views/linux-2.6-work$ git show HEAD | ./scripts/checkpatch.pl - > WARNING: Use #include <linux/hugetlb.h> instead of <asm/hugetlb.h> > #17: FILE: include/linux/hugetlb.h:8: > +#include <asm/hugetlb.h>
Yes, clearly stupid and trivial to detect. Will be sorted in the 0.19. Thanks for the report. -apw --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
false negative in checpatch for asm/ vs. linux/
, Nishanth Aravamudan
, (Tue Apr 29, 12:49 pm)
Re: false negative in checpatch for asm/ vs. linux/
, Andy Whitcroft
, (Thu May 1, 6:24 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Paul Jackson
Re: cpuset-remove-sched-domain-hooks-from-cpusets
James Bruce
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Hidehiro Kawai
[PATCH 0/5] jbd: possible filesystem corruption fixes (take 2)
git
:
linux-netdev
:
Paul E. McKenney
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
Gerrit Renker
[PATCH 34/37] dccp: Auto-load (when supported) CCID plugins for negotiation
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Alexey Dobriyan
Re: [GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
7 users
and
1002 guests
online.
Online users
womensclothesn
strcmp
Jeremy
whitneygot852
seosoftwareans
designerjewell
kitesfri
Syndicate