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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 0C44DC4332F for ; Mon, 20 Sep 2021 14:15:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DCF89610CE for ; Mon, 20 Sep 2021 14:15:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235599AbhITORD (ORCPT ); Mon, 20 Sep 2021 10:17:03 -0400 Received: from verein.lst.de ([213.95.11.211]:51673 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235337AbhITORC (ORCPT ); Mon, 20 Sep 2021 10:17:02 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id EE75367373; Mon, 20 Sep 2021 16:15:30 +0200 (CEST) Date: Mon, 20 Sep 2021 16:15:30 +0200 From: Christoph Hellwig To: Bartosz Golaszewski Cc: Christoph Hellwig , Joel Becker , Shuah Khan , Linus Walleij , Andy Shevchenko , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Geert Uytterhoeven , Kent Gibson , Jonathan Corbet , Greg Kroah-Hartman , Al Viro , Jack Winch , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linux-doc Subject: Re: [PATCH v5 2/8] configfs: use BIT() for internal flags Message-ID: <20210920141530.GA25156@lst.de> References: <20210920140509.5177-1-brgl@bgdev.pl> <20210920140509.5177-3-brgl@bgdev.pl> <20210920140938.GA24424@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Mon, Sep 20, 2021 at 04:13:37PM +0200, Bartosz Golaszewski wrote: > On Mon, Sep 20, 2021 at 4:09 PM Christoph Hellwig wrote: > > > > On Mon, Sep 20, 2021 at 04:05:03PM +0200, Bartosz Golaszewski wrote: > > > For better readability and maintenance: use the BIT() macro for flag > > > definitions. > > > > NAK. BIT() is the stupidest macro in the kernel and shall not be used > > ever. And I'm pretty sure we had this discussion a few times. > > Yep and the general consensus among the kernel developers still is to > use the BIT() macro. Even for this patch there were three separate > comments from high-profile developers to use BIT(). > > Also: this really is bikeshedding at this point, given that the core > subject of this series is elsewhere. Given that we had this dicussion before I'll gladly tell you that your any seris with a BIT() conversion will go stright to /dev/null after the first warning from now on. You had more than one warning.