All of lore.kernel.org
 help / color / mirror / Atom feed
* checkpatch false positive
@ 2010-03-17 11:00 Richard Kennedy
  2010-03-17 11:53 ` Andy Whitcroft
  2010-03-17 15:25 ` Joe Perches
  0 siblings, 2 replies; 20+ messages in thread
From: Richard Kennedy @ 2010-03-17 11:00 UTC (permalink / raw)
  To: Andy Whitcroft; +Cc: lkml

I'm getting this error from checkpatch which is a false positive AFAICT.
I don't see any other way to code this macro so maybe this rule
shouldn't apply?.

	ERROR: space prohibited before open square bracket '['
	#24: FILE: drivers/staging/wlan-ng/p80211wext.c:1685:
	+#define IW_IOCTL(x) [(x)-SIOCSIWCOMMIT]

regards
Richard


^ permalink raw reply	[flat|nested] 20+ messages in thread
* checkpatch false positive.
@ 2010-08-11 16:35 Dave Jones
  0 siblings, 0 replies; 20+ messages in thread
From: Dave Jones @ 2010-08-11 16:35 UTC (permalink / raw)
  To: apw; +Cc: Linux Kernel

I just got this from a patch I merged..

ERROR: need consistent spacing around '*' (ctx:WxV)
#121: FILE: arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c:113:
+static struct pcc_cpu __percpu *pcc_cpu_info;
                                ^
which doesn't seem right.

	Dave


^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <54461602.4000705@redhat.com>]
* Checkpatch: False positive
@ 2015-07-16 10:55 Viresh Kumar
  2015-07-16 15:35 ` Joe Perches
  0 siblings, 1 reply; 20+ messages in thread
From: Viresh Kumar @ 2015-07-16 10:55 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches; +Cc: linux-kernel

Hi Andy/Joe,

I got a warning today for my cover-letter, and it looked like a false
positive. Please have a look, based of v4.2-rc2.

-----------------------
0000-cover-letter.patch
-----------------------
WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#31: 
 arch/x86/kernel/hpet.c         | 198 ++++++++++++++++++++++++++---------------

-- 
viresh

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Checkpatch False positive
@ 2018-08-20 20:21 Jeff Kirsher
  2018-08-20 20:22 ` Matthew Wilcox
  0 siblings, 1 reply; 20+ messages in thread
From: Jeff Kirsher @ 2018-08-20 20:21 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches; +Cc: netdev, Linux Docs

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

Checkpatch.pl should probably exclude *.rst files from the SPDX License
Identifier check, since they are documentational files, like *.txt. 
Here is the warning message I got on a recent documentation patch I
created.

WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
#28: FILE: Documentation/networking/fm10k.rst:1:
+Linux* Base Driver for Intel(R) Ethernet Multi-host Controller

total: 0 errors, 1 warnings, 0 checks, 162 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-
inplace.

.apply/v4-Documentation-fm10k-Add-kernel-documentation.patch has style
problems, please review.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* Checkpatch false positive
@ 2026-10-29 15:50 Dave Stevenson
  0 siblings, 0 replies; 20+ messages in thread
From: Dave Stevenson @ 2026-10-29 15:50 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches; +Cc: LKML

Hi Andy and Joe.

Checkpatch is giving the error

ERROR: missing sentinel in ID array
#1455: FILE: drivers/media/i2c/sony-starvis2.c:1450:
+static const struct of_device_id starvis2_of_match[] = {
 { .compatible = "XXXXXXXXXXXXXXXX", .data = &imx678_aamr_info },
 { .compatible = "XXXXXXXXXXXXXXXX", .data = &imx678_aaqr_info },

on patch https://lore.kernel.org/linux-media/20261022-media-starvis2-v6-1-374343f55fd3@raspberrypi.com/

The sentinel is there, but just not in that hunk that renames the
struct of_device_id. That counts as a false positive to me, hence I'm
reporting it to you as requested.

Thanks
  Dave

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

end of thread, other threads:[~2026-10-29 15:50 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-17 11:00 checkpatch false positive Richard Kennedy
2010-03-17 11:53 ` Andy Whitcroft
2010-03-17 15:25 ` Joe Perches
2010-03-17 15:40   ` Richard Kennedy
2010-03-17 16:05     ` [PATCH] wireless.h: Add STD_IW_HANDLER macro Joe Perches
2010-03-17 16:08       ` Johannes Berg
2010-03-17 17:46         ` [PATCH 1/2] net/wireless/wext_core.c: Use IW_IOCTL_IDX macro Joe Perches
2010-03-17 17:48           ` [PATCH 2/2] net/wireless/wext_core.c: Use IW_EVENT_IDX macro Joe Perches
  -- strict thread matches above, loose matches on Subject: below --
2010-08-11 16:35 checkpatch false positive Dave Jones
     [not found] <54461602.4000705@redhat.com>
2014-10-21  8:28 ` Joe Perches
2014-10-21  9:27   ` Hans de Goede
2015-07-16 10:55 Checkpatch: False positive Viresh Kumar
2015-07-16 15:35 ` Joe Perches
2015-07-16 15:43   ` Andy Whitcroft
2015-07-16 15:58     ` Joe Perches
2015-07-16 17:21       ` Andy Whitcroft
2018-08-20 20:21 Checkpatch " Jeff Kirsher
2018-08-20 20:22 ` Matthew Wilcox
2018-08-20 20:32   ` Jeff Kirsher
2026-10-29 15:50 Checkpatch false positive Dave Stevenson

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.