linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [REPORT] False positive errors found while using scripts/checkpatch.pl
@ 2020-06-28 14:00 B K Karthik
  2020-06-28 14:53 ` Joe Perches
  0 siblings, 1 reply; 2+ messages in thread
From: B K Karthik @ 2020-06-28 14:00 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches, linux-kernel

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

The following are reported while using checkpatch.pl on 
drivers/staging/fbtft/fbtft-bus.c

ERROR: space prohibited before that close parenthesis ')'
#65: FILE: drivers/staging/fbtft/fbtft-bus.c:65:
+define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )

ERROR: space prohibited before that close parenthesis ')'
#67: FILE: drivers/staging/fbtft/fbtft-bus.c:67:
+define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )

These are false positives as correcting these issues breaks the build.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [REPORT] False positive errors found while using scripts/checkpatch.pl
  2020-06-28 14:00 [REPORT] False positive errors found while using scripts/checkpatch.pl B K Karthik
@ 2020-06-28 14:53 ` Joe Perches
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2020-06-28 14:53 UTC (permalink / raw)
  To: B K Karthik, Andy Whitcroft, linux-kernel

On Sun, 2020-06-28 at 10:00 -0400, B K Karthik wrote:
> The following are reported while using checkpatch.pl on 
> drivers/staging/fbtft/fbtft-bus.c
> 
> ERROR: space prohibited before that close parenthesis ')'
> #65: FILE: drivers/staging/fbtft/fbtft-bus.c:65:
> +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )
> 
> ERROR: space prohibited before that close parenthesis ')'
> #67: FILE: drivers/staging/fbtft/fbtft-bus.c:67:
> +define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )
> 
> These are false positives as correcting these issues breaks the build.

Thanks, there's no capability to recognize this in checkpatch.
checkpatch is not a compiler.

Perhaps a reasonable solution is to add a comment around the
macro uses that show it's an unusual case.




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

end of thread, other threads:[~2020-06-28 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28 14:00 [REPORT] False positive errors found while using scripts/checkpatch.pl B K Karthik
2020-06-28 14:53 ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).