Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp623422ybi; Wed, 3 Jul 2019 02:05:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyZEqpyV2RBAp2zOh329OXj5ptc5+UgFOXLkNcqqv2dV0PfB0/c60Rpw6ntNCtbciAvM9a X-Received: by 2002:a17:90a:206a:: with SMTP id n97mr11484297pjc.10.1562144751244; Wed, 03 Jul 2019 02:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562144751; cv=none; d=google.com; s=arc-20160816; b=czpH1GrYe2/YITJPAoIZU2wIFYojTF3meb6HJxzO3OccuWGlK3QR376tLAsRk3ub1k QpZLEOVl6IA22yVCwXYDQ0rnVkEF1mIkKiJfxt9uVhSqhZobhHW1JtKDWIQER9zJ/wOc eydyneYgHqmbD9mXp7a6n2yCBwdhP5WmNtV/WACFjIB4J9YAMoYuS88uy6TI90rJCesw au24tt/7nqwZOljKFjG72cADGLoYHtM8BbahPqUq/5lyf3KREyusFhvi2Oc5x9G/V6XK 3maKRPjhK2LrJadrUGNllCkYloAfimuoHW3iuOl96ZcWcI6UB6fG4SS6aVVzgRlvunkF iLnQ== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=NR2Dr8TrIjV1IeYAxhKzRVLNo1Im/KaC4nK/F8//sHg=; b=QftcJbn2wbX2qJC9BrqZzeSwXyYHtgLqXWl/9d/7aav8MUr5Vnk3snEA/nzyzqaGtV 8lqn/0PlXmhGY/YWP4QY0Plbg6v5RPfatSRbKThFFAuYtPwyMNUhkgxR2vlyMGQeyRPQ zkiNUCtXgdyQCKvyVPIO8B5UW1LNlr8/bGcRYAQcpghDlhO5MfL6BxMY6u2L8EhgcrBF oBi9LLzQpJ4CAYdbG6Ki/gBNecpv3SUU2PYiQsFRsC32oFrchKxCAhI+qfEb05nBpPPj Iz+cTP0llpetFlEoSAI4T4JfhtekKK1lkT/yaGSsa7EX9Hb4voqUDU26c4hSDy7rTxP2 fn1A== 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 33si1773364pli.144.2019.07.03.02.05.35; Wed, 03 Jul 2019 02:05:51 -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 S1727251AbfGCJDu (ORCPT + 99 others); Wed, 3 Jul 2019 05:03:50 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:16231 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726670AbfGCJDu (ORCPT ); Wed, 3 Jul 2019 05:03:50 -0400 X-UUID: 1d1dccf0f76246f68129117300f117fb-20190703 X-UUID: 1d1dccf0f76246f68129117300f117fb-20190703 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 746527483; Wed, 03 Jul 2019 17:03:45 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 3 Jul 2019 17:03:44 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 3 Jul 2019 17:03:44 +0800 Message-ID: <1562144624.3550.1.camel@mtksdaap41> Subject: Re: [PATCH] checkpatch: avoid default n From: Yingjoe Chen To: Joe Perches CC: Miles Chen , Andy Whitcroft , , , Date: Wed, 3 Jul 2019 17:03:44 +0800 In-Reply-To: References: <20190703083031.2950-1-miles.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N 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 01:42 -0700, Joe Perches wrote: > 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 Hi, I've sent similar patch in 2016, my version won't complain about these. https://lkml.org/lkml/2016/4/22/580 Joe.C