Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp601603ybi; Wed, 3 Jul 2019 01:43:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4eCKVvESj5w/wyGrWrLbN/4hGQ3TL8NLECmCwUhsMzTOZbtj86+OxNs33JugKUaPuMWa8 X-Received: by 2002:a17:90a:3247:: with SMTP id k65mr11261012pjb.49.1562143426125; Wed, 03 Jul 2019 01:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562143426; cv=none; d=google.com; s=arc-20160816; b=hBfZMNoMEyce6Mz461pJr4r9Y6QAfSxV9m3lwR+bEfq/dvm6AdUcApeptUbGHN2pm/ JceoRi7drusqSpmHRW5xpRMYS/ZZYKC/KZby5LaHEKcWc3xmcxEHxpqFfWU2X34Gb1dL Xu06mrf1onvQjze2vtDspJTMrQlNpBhcrAQ+eblHpg+rz40kaAwj1dA33zGNotP6t0aP W8EmU5ZDEZIiW8RfGvG25WJ/M3VxPRT4g9DKiD94MEP7IHyp0jTEyaW7WvgM6I2oPCl+ Ks+KYM2qLEmj1DWHmKrKc61S9LkCxfOvSrmVE3QIgZdLy/q5r2lyIIm18AFmsV1af08i 6rlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=tOnTw510PcBQ88U8lTTYZxsQYiI758OHik5uG7tn6zQ=; b=glaIWXJmHgrAFdESDTlikDofo0cDpd+mQMu6GuVpiQXKo50mnn3WJgz+fCRPv1RI8H n/uLmiPfyJzRIwE9e2AZIfPAk7dFRd8y88pIjJz2Nz1oJ2nyoboYrq08BwnyRrzrT4II G+581Wc/liV/ptJpbDynJxhXVdWw3FhvFfAL9fiVtrE0mOLs7c3w2hd0x4KuA5tFBTWd 9RjGLrkTZcwqptlxy8CLGMFxb2/PqgQFXJYhSWDfMCGOwTWpfPt7faU3yzPlVRnQUP0s nmN+nuxrKXjzSGzLOsFG/6QjRpYuIXCO6c5s4ir7t9thQ12DNpNdSsvp7XvzSGsKWS9i MukQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j62si180362pgd.170.2019.07.03.01.43.31; Wed, 03 Jul 2019 01:43:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727217AbfGCIm7 (ORCPT + 99 others); Wed, 3 Jul 2019 04:42:59 -0400 Received: from smtprelay0035.hostedemail.com ([216.40.44.35]:35944 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726400AbfGCIm7 (ORCPT ); Wed, 3 Jul 2019 04:42:59 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 204E2283D; Wed, 3 Jul 2019 08:42:58 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:599:960:968:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3870:3871:3872:4321:4605:5007:7904:10004:10226:10400:10848:11232:11658:11914:12296:12297:12679:12740:12760:12895:13069:13311:13357:13439:14096:14097:14659:14721:21080:21451:21627:30054:30070:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.14.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: wing47_36df97e909a43 X-Filterd-Recvd-Size: 1658 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Wed, 3 Jul 2019 08:42:56 +0000 (UTC) Message-ID: Subject: Re: [PATCH] checkpatch: avoid default n From: Joe Perches To: Miles Chen , Andy Whitcroft Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com Date: Wed, 03 Jul 2019 01:42:55 -0700 In-Reply-To: <20190703083031.2950-1-miles.chen@mediatek.com> References: <20190703083031.2950-1-miles.chen@mediatek.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-07-03 at 16:30 +0800, Miles Chen wrote: > This change reports a warning when "default n" is used. > > I have seen several "remove default n" patches, so I think > it might be helpful to add this test in checkpatch. > > tested: > WARNING: 'default n' is the default value, no need to write it explicitly. > + default n I don't think this is reasonable as there are several uses like: default y default n if For instance: arch/alpha/Kconfig-config ALPHA_WTINT arch/alpha/Kconfig- bool "Use WTINT" if ALPHA_SRM || ALPHA_GENERIC arch/alpha/Kconfig- default y if ALPHA_QEMU arch/alpha/Kconfig: default n if ALPHA_EV5 || ALPHA_EV56 || (ALPHA_EV4 && !ALPHA_LCA) arch/alpha/Kconfig: default n if !ALPHA_SRM && !ALPHA_GENERIC