From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1479FC4320A for ; Wed, 28 Jul 2021 21:30:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB71C60ED4 for ; Wed, 28 Jul 2021 21:30:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231827AbhG1Va7 (ORCPT ); Wed, 28 Jul 2021 17:30:59 -0400 Received: from smtprelay0175.hostedemail.com ([216.40.44.175]:43824 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230156AbhG1Va6 (ORCPT ); Wed, 28 Jul 2021 17:30:58 -0400 Received: from omf03.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id B560E180D0797; Wed, 28 Jul 2021 21:30:55 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA id 640A113D99; Wed, 28 Jul 2021 21:30:55 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 28 Jul 2021 14:30:54 -0700 From: Joe Perches To: Randy Dunlap Cc: linux-kernel-mentees@lists.linuxfoundation.org, LKML , kernel-janitors Subject: Re: patch suggestion: Kconfig symbols In-Reply-To: <09db53b9-7edf-44fc-c6b7-7c4e9198a2d4@infradead.org> References: <295b8f8c-4264-9f32-6723-9d2d574021ac@infradead.org> <09db53b9-7edf-44fc-c6b7-7c4e9198a2d4@infradead.org> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <733d2747b67a8a172333b51bacbf77fe@perches.com> X-Sender: joe@perches.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Stat-Signature: 1rkzgomx86n88r4rw5msropwwmhpsboi X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: 640A113D99 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/hNJ9eNNNyc+Lzlm6mkIzHlx1pO20mbns= X-HE-Tag: 1627507855-712796 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-07-28 12:41, Randy Dunlap wrote: > On 7/28/21 8:37 AM, Joe Perches wrote: >> On Mon, 2021-07-26 at 17:21 -0700, Randy Dunlap wrote: >>> Running scripts/checkkconfigsymbols.py reports several hundred (maybe >>> thousand) >>> Kconfig symbols that are used questionably. Lots of these are false >>> positives >>> but lots of the remainder could use some cleaning up. >> [] >>> False positive example: >>> >>> XCHOFFLD_MEM >>> Referencing files: drivers/scsi/qla2xxx/qla_mbx.c >>> Similar symbols: OF_PMEM, CXL_MEM, CXL_PMEM >>> >>> The Referencing source file does this: >>> #define CONFIG_XCHOFFLD_MEM 0x3 >>> >>> which is legitimate, so no change is needed. >> >> Legitimate is perhaps dubious. >> >> It might be better if Kconfig has exclusive use of CONFIG_ naming >> so >> renaming all the other existing CONFIG_ defines might be >> appropriate. > > I would prefer that as well -- maybe 15 years ago. > But I think it's too invasive to make that change now. I do not think it's that invasive. It's something that doesn't have to be done immediately either. It's not too many macro defines and not too many uses of those defines.