All of lore.kernel.org
 help / color / mirror / Atom feed
* checkpatch: false positives for __.*const
@ 2009-06-12 11:00 Wolfram Sang
  0 siblings, 0 replies; only message in thread
From: Wolfram Sang @ 2009-06-12 11:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: apw, w.sang

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

Hi,

init.h defines some attributes starting with '__' and ending with const, like
'__devinitconst'. They produce false positives with checkpatch:

ERROR: "fooconst bar" should be "foo const bar"
#154: FILE: drivers/uio/uio_of_genirq.c:70:
+static const struct of_device_id __devinitconst uio_of_genirq_match[] = {

like caused by this patch:

http://patchwork.kernel.org/patch/29664/

I investigated a bit but I am not sure if this should be fixed in the regexp
responsible for this error or, more general, in $Attributes.

Regards

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-12 11:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-12 11:00 checkpatch: false positives for __.*const Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.