login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
19
Re: latest checkpatch
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andy Whitcroft <apw@...>
To: Avi Kivity <avi@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: latest checkpatch
Date: Friday, October 19, 2007 - 5:01 am
On Thu, Oct 18, 2007 at 10:51:47PM +0200, Ingo Molnar wrote:
quoted text
> > * Avi Kivity <avi@qumranet.com> wrote: > > > >> if (foo) > > >> bar(); > > >> baz(); > > >> one(); > > >> > > > > > > detecting that would be awesome - it's often the sign of a real bug > > > because the intent is often to have bar() and baz() in the conditional > > > block. > > > > This is more useful operating on an entire file, so the script can see > > all the context. > > there's "checkpatch --file" for complete files, so it can see the full > context if the user passes it in.
Indeed so. checkpatch uses all the context it can when making a decision. Often 3 lines carries enough history to figure this out. -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:
[PATCH] checkpatch: Fix line number reporting
, Mike D. Day
, (Fri Oct 12, 3:26 pm)
Re: [PATCH] checkpatch: Fix line number reporting
, Andy Whitcroft
, (Fri Oct 12, 3:37 pm)
Re: [PATCH] checkpatch: Fix line number reporting
, Erez Zadok
, (Sat Oct 13, 2:35 pm)
Re: [PATCH] checkpatch: Fix line number reporting
, Andy Whitcroft
, (Mon Oct 15, 2:21 pm)
Re: [PATCH] checkpatch: Fix line number reporting
, Erez Zadok
, (Tue Oct 16, 1:59 pm)
Re: [PATCH] checkpatch: Fix line number reporting
, Andy Whitcroft
, (Wed Oct 17, 12:39 pm)
latest checkpatch
, Ingo Molnar
, (Thu Oct 18, 7:13 am)
Re: latest checkpatch
, Andy Whitcroft
, (Thu Oct 18, 3:25 pm)
Re: latest checkpatch
, Andy Whitcroft
, (Thu Oct 18, 3:43 pm)
Re: latest checkpatch
, Ingo Molnar
, (Thu Oct 18, 4:00 pm)
Re: latest checkpatch
, Ingo Molnar
, (Thu Oct 18, 3:39 pm)
Re: latest checkpatch
, Ilpo Järvinen
, (Fri Oct 19, 5:12 am)
Re: latest checkpatch
, Avi Kivity
, (Thu Oct 18, 4:02 pm)
Re: latest checkpatch
, Andi Kleen
, (Thu Oct 18, 7:16 pm)
Re: latest checkpatch
, Ingo Molnar
, (Thu Oct 18, 4:51 pm)
Re: latest checkpatch
, Andy Whitcroft
, (Fri Oct 19, 5:01 am)
Re: latest checkpatch
, Jeff Garzik
, (Thu Oct 18, 4:57 pm)
Re: latest checkpatch
, Randy Dunlap
, (Thu Oct 18, 6:25 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Len Brown
[PATCH 05/85] ACPI: Add "acpi.power_nocheck=1" to disable power state check in pow...
Andi Kleen
[PATCH] [2/50] x86_64: use core id bits for apicid_to_node initialization
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Andrew Morton
2.6.23-rc1-mm1
git
:
linux-netdev
:
Gregory Haskins
[RFC PATCH 06/17] ioq: Add basic definitions for a shared-memory, lockless queue
Arjan van de Ven
Re: [GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: mac80211 truesize bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
9 users
and
955 guests
online.
Online users
inversoresnego
jkovats
liposukcja
tomsmith037
edmondpogi
rebelmoneymaker
playford
flooritduh02
playford
Syndicate