Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3391227pxf; Mon, 15 Mar 2021 08:33:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe1O0fEZIL+11BEC2MqwtEQhNg0bUCr5BAamViN0i2A6F2xVfR5Ig1zN4L55a1iTE7Ru3D X-Received: by 2002:a50:fa04:: with SMTP id b4mr31133928edq.293.1615822428547; Mon, 15 Mar 2021 08:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615822428; cv=none; d=google.com; s=arc-20160816; b=upa9r1d+O+PCRVSBKYXNPctQxXFmJVphidzOi+7wRS+k0aq+Hcdxg3yDAY8FvBxNJA 32h+5Q8UVi71cIXUalcmlrV6bMTNAgq7+Mz82gziqa1CH7L7Iy+jA3w28HfAfWLQ5PaU x3XlDwI6fRM2IuI7fEW2vu3S0W4N+HSTqyzUbOXOpleQ85+flor9FjR+tPZIeWH8Hrnn oQAqEuaOFOxsSJbsWpKNRFguwsT+j+FfNJFBzqh0bfK+jh8ymIGCUQL8iG6x22VjpKDw oZkPnG6vxdq3+8HgODynxlOL3v8Ofyc5yeQD5PPjlOxVD9fwMBFqPcGcKE0gB7DjzEYw /ebQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=0YIJAtImQDNNBe1ZUzmq7BXlUZWvY1HQthVb5g41d/E=; b=YdvKrPQu7Q5MShjkI+f46jAq2UQNj89dcIvxP/0KATn3KSbxLk6GVOXAOjXwmp93Q0 fwUx82ak5h//EUJZClCzguPT/af8Vjy6CM3NDQWfiKJA+CaDVojq8hQOo6B/Tdg5p+VD 0zSspQZjX5fDJl0a9o8p3iy0x4EUDZkWKh7d7KfAMnzW/ATBHchKHU9w6PxRK09Es2dZ +JPiGHzJESpnaBnDVjvJ3GiQ6j37pyTuRZjtjK3zsm8xZlpIWMSg9cdOkaZOPy2lOBiQ g1HIomr3x4ghTKQTU+3nxDrTQKRsXxJQP+Q0JsBopGOkpEUPFujhcHDyhrvc35/RN7ZY RjJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si11571397edy.138.2021.03.15.08.33.26; Mon, 15 Mar 2021 08:33:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231579AbhCOPbo convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 Mar 2021 11:31:44 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:31517 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231741AbhCOPbh (ORCPT ); Mon, 15 Mar 2021 11:31:37 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-267-YYshquLuNiyLYx0KEZ2_ng-1; Mon, 15 Mar 2021 15:31:34 +0000 X-MC-Unique: YYshquLuNiyLYx0KEZ2_ng-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Mar 2021 15:31:27 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.012; Mon, 15 Mar 2021 15:31:27 +0000 From: David Laight To: 'Bartosz Golaszewski' , Joel Becker , Christoph Hellwig , Shuah Khan , Linus Walleij , Andy Shevchenko , =?iso-8859-1?Q?Uwe_Kleine-K=F6nig?= , Geert Uytterhoeven , Kent Gibson , Jonathan Corbet , "Greg Kroah-Hartman" CC: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , Bartosz Golaszewski Subject: RE: [PATCH v5 02/11] configfs: use (1UL << bit) for internal flags Thread-Topic: [PATCH v5 02/11] configfs: use (1UL << bit) for internal flags Thread-Index: AQHXGXuz8CFTZTXyV0K3e3EZ1vnDeKqFLTtg Date: Mon, 15 Mar 2021 15:31:27 +0000 Message-ID: <6bc83972093a4be4ad163069a437ec25@AcuMS.aculab.com> References: <20210315091400.13772-1-brgl@bgdev.pl> <20210315091400.13772-3-brgl@bgdev.pl> In-Reply-To: <20210315091400.13772-3-brgl@bgdev.pl> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski > Sent: 15 March 2021 09:14 > > From: Bartosz Golaszewski > > For better readability and maintenance: use the (1UL << bit) for flag > definitions. If the values ever get printed in hex the hex definitions are actually more useful. David ... > -#define CONFIGFS_ROOT 0x0001 > -#define CONFIGFS_DIR 0x0002 > -#define CONFIGFS_ITEM_ATTR 0x0004 > -#define CONFIGFS_ITEM_BIN_ATTR 0x0008 > -#define CONFIGFS_ITEM_LINK 0x0020 > -#define CONFIGFS_USET_DIR 0x0040 > -#define CONFIGFS_USET_DEFAULT 0x0080 > -#define CONFIGFS_USET_DROPPING 0x0100 > -#define CONFIGFS_USET_IN_MKDIR 0x0200 > -#define CONFIGFS_USET_CREATING 0x0400 > +#define CONFIGFS_ROOT (1UL << 0) > +#define CONFIGFS_DIR (1UL << 1) > +#define CONFIGFS_ITEM_ATTR (1UL << 2) > +#define CONFIGFS_ITEM_BIN_ATTR (1UL << 3) > +#define CONFIGFS_ITEM_LINK (1UL << 5) > +#define CONFIGFS_USET_DIR (1UL << 6) > +#define CONFIGFS_USET_DEFAULT (1UL << 7) > +#define CONFIGFS_USET_DROPPING (1UL << 8) > +#define CONFIGFS_USET_IN_MKDIR (1UL << 9) > +#define CONFIGFS_USET_CREATING (1UL << 10) > #define CONFIGFS_NOT_PINNED (CONFIGFS_ITEM_ATTR | CONFIGFS_ITEM_BIN_ATTR) > > extern struct mutex configfs_symlink_mutex; > -- > 2.30.1 - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)