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 39DF7C433EF for ; Mon, 20 Sep 2021 14:30:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2219260E76 for ; Mon, 20 Sep 2021 14:30:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236949AbhITOcV (ORCPT ); Mon, 20 Sep 2021 10:32:21 -0400 Received: from verein.lst.de ([213.95.11.211]:51729 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237053AbhITOcU (ORCPT ); Mon, 20 Sep 2021 10:32:20 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 3D66A68AFE; Mon, 20 Sep 2021 16:30:47 +0200 (CEST) Date: Mon, 20 Sep 2021 16:30:46 +0200 From: Christoph Hellwig To: Geert Uytterhoeven Cc: Christoph Hellwig , Bartosz Golaszewski , Joel Becker , Shuah Khan , Linus Walleij , Andy Shevchenko , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Kent Gibson , Jonathan Corbet , Greg Kroah-Hartman , Al Viro , Jack Winch , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , "open list:DOCUMENTATION" Subject: Re: [PATCH v5 2/8] configfs: use BIT() for internal flags Message-ID: <20210920143046.GA26163@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:29:30PM +0200, Geert Uytterhoeven wrote: > Hi Christoph, > > 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. > > Care to explain why it is a stupid macro? Please look at the previous thread. I'm tired of this discussion.