False positives for non octal permissions in the kernel

From: Dwaipayan Ray
Date: Sun Jul 11 2021 - 04:05:05 EST


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.