public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Possible false positive in checkpatch
@ 2008-08-12 14:25 Alan Stern
  2008-08-12 15:29 ` Krzysztof Halasa
  2008-08-15 21:58 ` H. Peter Anvin
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Stern @ 2008-08-12 14:25 UTC (permalink / raw)
  To: Andy Whitcroft, Randy Dunlap, Joel Schopp; +Cc: Kernel development list

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?

Alan Stern


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-16 15:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 14:25 Possible false positive in checkpatch Alan Stern
2008-08-12 15:29 ` Krzysztof Halasa
2008-08-12 17:18   ` Andy Whitcroft
2008-08-12 18:01     ` Krzysztof Halasa
2008-08-15 21:58 ` H. Peter Anvin
2008-08-16 15:26   ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox