Re: [PATCH v2] checkpatch: add several Kconfig default value tests

2019-07-04 Thread Miles Chen
On Thu, 2019-07-04 at 11:49 -0700, Joe Perches wrote: > On Thu, 2019-07-04 at 17:40 +0800, Miles Chen wrote: > > This change adds 3 Kconfig default value tests: > [] > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > [] > > @@ -3005,6 +3005,27 @@ sub process { > >

Re: [PATCH v2] checkpatch: add several Kconfig default value tests

2019-07-04 Thread Joe Perches
On Thu, 2019-07-04 at 17:40 +0800, Miles Chen wrote: > This change adds 3 Kconfig default value tests: [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3005,6 +3005,27 @@ sub process { >"Use of boolean is deprecated, please use bool > instead.\n"

[PATCH v2] checkpatch: add several Kconfig default value tests

2019-07-04 Thread Miles Chen
This change adds 3 Kconfig default value tests: 1. discourage default n cases: e.g., default n 2. discourage default "[ynm]" cases: e.g., arch/powerpc/Kconfig: default "y" if PPC_POWERNV arch/powerpc/Kconfig: default "y" if PPC_POWERNV arch/powerpc/Kconfig: default "n" drivers/auxdisplay/Kc