Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp615648ybi; Wed, 3 Jul 2019 01:59:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPHVh1Ts7qAoittggoQP+txoUHWFIWbePYH9sQnPrBKgcaHdASJDkmH/oU4q58s59uvTLs X-Received: by 2002:a17:90a:3310:: with SMTP id m16mr11231203pjb.7.1562144375172; Wed, 03 Jul 2019 01:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562144375; cv=none; d=google.com; s=arc-20160816; b=gdkhk6riaOWtoqhfY7P9Wzi3HoMF1xeQtiIIDpJB07ijCwJY19vfS9lMm/iGO/bRTC BSyV1dd0HJ3yJuWfXlrUhG+ZxKT2gQkNGAPYnm77AYx2L/5x/n+dpLDKv+jzese0I9N7 n710to2oIHOA7EVML86anKL11bXLXPD/es766ny7P/Ec+fKvx4xEG4q09IwQqnbXJ2QX gSmScMsnc39PwWZloNnP9qG3u0Vce8Kk2k3dZvBEoNjJt2h3/ou4fzSUoU1GLlLWWWX/ faYPsFyTFUPguJcn/k4c3gjUWFnqpqoaUE7N3CmT12A2NSuUqiyhlfRJdNxirVih5XNs Q2Qg== 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=FrXQpxjDz0cdFZOi6g7nbYITummiKQFhEOtsTkz+UJM=; b=dCK99cFLAbHZYYdl2hluIuw+6PwhXNsE7tjYsLL5+l4MUslhrJnxEOlGwF5ZXTIx+o dQnoyfnMHRfqkvA5rq+HMJ4SNuyNl21bDkR04uGYr8RKenU2iG/2FTBRPFCNyRQKR38h fH5t9T/sanpYMlIseFCit2kj7f39l1zQDlqnATfrsoWkRWG0XTQIJCYpgMiuwWgVB4Mb jfMIts8DbJsSqQQ1mlKDyV3vk5yx8Q1J04TwIKYL8Z4dx5xF0n/emg32SpkzVcocJG+q +K54Kzh3Lli8ZYTBvBii91OdfpQMAblz7d/h/pgncjLIUhU4dIIo56h5Q0iag0Nbg4eK SUqg== 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 u6si1728438pga.360.2019.07.03.01.59.19; Wed, 03 Jul 2019 01:59:35 -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 S1727281AbfGCI6d (ORCPT + 99 others); Wed, 3 Jul 2019 04:58:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:9794 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726400AbfGCI6c (ORCPT ); Wed, 3 Jul 2019 04:58:32 -0400 X-UUID: 97317b77af48444da774bf30f62fe1a9-20190703 X-UUID: 97317b77af48444da774bf30f62fe1a9-20190703 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 122301073; Wed, 03 Jul 2019 16:58:27 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 3 Jul 2019 16:58:25 +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 16:58:25 +0800 Message-ID: <1562144305.3550.0.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 16:58:25 +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 I've sent similar patch in 2016, my version won't complain about these. https://lkml.org/lkml/2016/4/22/580 Joe.C