All of lore.kernel.org
 help / color / mirror / Atom feed
* False positives for non octal permissions in the kernel
@ 2021-07-11  8:04 Dwaipayan Ray
  0 siblings, 0 replies; only message in thread
From: Dwaipayan Ray @ 2021-07-11  8:04 UTC (permalink / raw)
  To: Joe Perches; +Cc: Lukas Bulwahn, linux-kernel

Hi,
A recent checkpatch run on the kernel detected a total of 26
ERROR:NON_OCTAL_PERMISSIONS violations.

20 of them seem to be false positives which are all from
drivers/staging/iio.

Example:
ERROR: Use 4 digit octal (0777) not decimal permissions
#331: FILE: drivers/staging/iio/frequency/ad9834.c:331:
+static IIO_DEV_ATTR_PHASESYMBOL(0, 0200, NULL, ad9834_write, AD9834_PSEL);

ERROR: Use 4 digit octal (0777) not decimal permissions
#334: FILE: drivers/staging/iio/frequency/ad9834.c:334:
+static IIO_DEV_ATTR_PINCONTROL_EN(0, 0200, NULL,
+       ad9834_write, AD9834_PIN_SW);

ERROR: Use 4 digit octal (0777) not decimal permissions
#336: FILE: drivers/staging/iio/frequency/ad9834.c:336:
+static IIO_DEV_ATTR_OUT_ENABLE(0, 0200, NULL, ad9834_write, AD9834_RESET);

and more such..

Thanks,
Dwaipayan.

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

only message in thread, other threads:[~2021-07-11  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-11  8:04 False positives for non octal permissions in the kernel Dwaipayan Ray

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.