[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1461259011.1918.23.camel@perches.com>
Date: Thu, 21 Apr 2016 10:16:51 -0700
From: Joe Perches <joe@...ches.com>
To: Yingjoe Chen <yingjoe.chen@...iatek.com>,
Andy Whitcroft <apw@...onical.com>
Cc: linux-kernel@...r.kernel.org, srv_heupstream@...iatek.com
Subject: Re: [PATCH 1/3] checkpatch: add Kconfig 'default n' test
On Thu, 2016-04-21 at 21:28 +0800, Yingjoe Chen wrote:
> If a Kconfig config option doesn't specify 'default', the default
> will be n. Adding 'default n' is unnecessary.
>
> Add a test to warn about this.
[]
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> @@ -2600,6 +2600,13 @@ sub process {
> "Use of boolean is deprecated, please use bool instead.\n" . $herecurr);
> }
>
> +# discourage the use of default n
> + if ($realfile =~ /Kconfig/ &&
> + $line =~ /^\+\s*\bdefault\b\s*n\s*$/) {
maybe line =~ /^\+\s*default\s+n/i
Also, there are some oddities like:
arch/mips/cavium-octeon/Kconfig: default "n"
and a dozen or so uses like
default n if <foo>
Powered by blists - more mailing lists