login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
16
Re: Possible false positive in checkpatch
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Alan Stern
Subject:
Re: Possible false positive in checkpatch
Date: Saturday, August 16, 2008 - 8:26 am
On Fri, 15 Aug 2008, H. Peter Anvin wrote:
quoted text
> Alan Stern wrote: > > The following appears to be a false positive in checkpatch: > > > > ERROR: space prohibited after that '*' (ctx:BxW) > > #163: FILE: drivers/usb/core/usb.c:304: > > +#define usb_device_pm_ops (* (struct pm_ops *) 0) > > ^ > > > > Certainly this is a rather uncommon code construction, but similar > > ones might occur elsewhere. To my eyes, > > > > (* (type *) ptr) > > > > looks better than > > > > (*(type *) ptr) > > > > or > > > > (*(type *)ptr) > > > > or even > > > > (*(type*)ptr) > > > > but of course this is a matter of opinion. Is there any strong feeling > > about this in the kernel community? > > > > Personally, I rather strongly prefer (*(type *)ptr).
It's probably safe to say that this is one of those gray areas where one need not adhere strictly to checkpatch's recommendations. Alan Stern --
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:
Possible false positive in checkpatch
, Alan Stern
, (Tue Aug 12, 7:25 am)
Re: Possible false positive in checkpatch
, Krzysztof Halasa
, (Tue Aug 12, 8:29 am)
Re: Possible false positive in checkpatch
, Andy Whitcroft
, (Tue Aug 12, 10:18 am)
Re: Possible false positive in checkpatch
, Krzysztof Halasa
, (Tue Aug 12, 11:01 am)
Re: Possible false positive in checkpatch
, H. Peter Anvin
, (Fri Aug 15, 2:58 pm)
Re: Possible false positive in checkpatch
, Alan Stern
, (Sat Aug 16, 8:26 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
: