Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1606782pxb; Thu, 4 Mar 2021 16:10:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm3e4cJoApYrAabRbwq+yE9xTFQYPrGpDn8xzJz1XB8d/9S0ldsC1XOHDPL9KE71oCZfcF X-Received: by 2002:a6b:f401:: with SMTP id i1mr5643666iog.142.1614903036933; Thu, 04 Mar 2021 16:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614903036; cv=none; d=google.com; s=arc-20160816; b=dbZuvf+NcUCUlH0vwYqCFI2MmgO4fzEQ5LY2xLfkfnGaZP3WKcn8f4ClZ0qmB9OshR t/2RvVFoJW6UYhfID+jafxtVcUzEz7A9vMtfRrttsL/3AiDSFR/uPGYDkxm/Y0oDGIdr 4UzhwH5ms0VScnnjE8aPGW21kIP8PEn4t8kSSxc4ql/5W6JPoDSduKGSAdm1uGK5LKsx zrLASpamvSJZnR6LtyFFqPmDF0EzvRHR2Ng5klXSMndPdF1NFWJHHdmuvsNoJDZnqjw+ FnLCBVZjM4glrWSk9lmj9iloOaQ8vJ2EI3mTFqnZREA0lPCeDYx44UVlsbgDDYYJdPhx ZDvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VTVqUZIbWOBx2vi73M7W0VDXvAw3I3R3JVZHB7Sln/A=; b=O/vPnQ5ts75spB8yasHA4YK5wLqGq/IjsNKLcVFYWWvWm02tTPWk8CA8L5qZsy+S/q s3D1ItAkG6WuNdoY9vTQWXUERttKFzexSrIqEWhzJ3XhhZita+fXqxXCvVP03JddARC+ +SyCtLBwNDobbyIj68MtNJk3pf9Yjn0XQZeG4QLEltxjucki+wUm6zMZY1Q3M0dEduLP n/xP+O6wqFw7awkC0HXCH32pdqCZ5YwZA8ORK/TCXfAyqiGbaPMHALKkhNvKvS8U9/NJ lqTaVCy0bC8hsgY61oegWOOaIL3bi1s6NE5dV8Rw9uB+LnmZVD34/MoKfh7jlrornZ9z oAWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=jqFcOBFm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si654556ili.15.2021.03.04.16.10.22; Thu, 04 Mar 2021 16:10:36 -0800 (PST) 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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=jqFcOBFm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238596AbhCDKb7 (ORCPT + 99 others); Thu, 4 Mar 2021 05:31:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238519AbhCDKb2 (ORCPT ); Thu, 4 Mar 2021 05:31:28 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25DCFC061764 for ; Thu, 4 Mar 2021 02:30:09 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id b18so20548285wrn.6 for ; Thu, 04 Mar 2021 02:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VTVqUZIbWOBx2vi73M7W0VDXvAw3I3R3JVZHB7Sln/A=; b=jqFcOBFmBW6OGc8pMVCLj1b0qqQuqt+YCkzk+Q27uBMQbo1iaTw6oEMoEV0AkHeBzR dWlkMEhqAPzVj08vhy2rqL3OqLGUdGOghAKhuAUT6MI+okAPLhtoAOucsEYnH2zbLaT3 9QMIOIg3wAPG++RHWS8WI+guEtK0StMdFlXIwa4Izj6Mp8z65Bh214qQsC8XcaUfdihR qFmhsDb26mfxrcaKHalzQtvIQQaAr8Too5zk0OPZW/tS96T7iFF8XoJdx6gLx55GKPCg Txiytv9H5miJ9VWDuZpIXpO/YYqrze0SMaethq2N5T5iiDXao32SdTfEkfL/ZmtLs1cH mHFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VTVqUZIbWOBx2vi73M7W0VDXvAw3I3R3JVZHB7Sln/A=; b=HMGvt1otVe6EBfA4afmFlRv4fXq6/JRQAYowPaCiLJ9kLFWPYgx7a+nh6q86dnZgWh dImuXH5874gKlvvw8chXPoKobCkLmXMg/SBk7PeSTkwRqCpYOY++SaCk0BT2pdFU6p1A 2cVwzHW+NitvMMdL0vLedZV1subCQ8ShDYsP6N+tkCiRE0rGKjotuSTxoV3jkzxoQy30 +Kffg/FutnxsoBDpCMDszbftD4F1Wwzc3YWdDy3WWcSCfNuKm8RWruybIk8Y8FQjg+uO FyumkHgawIj3rnj0evj2x/INf0iKZ9ex8N5TSrnYlOTbp3IsWwc7qe8g7uNSwPuZ9k6V EzVQ== X-Gm-Message-State: AOAM530+wG9OaN/Tf6WaBVXI7maX3QgtgbDqlaTlAbYq67xxwHW2ZzjB Fhve7xjxi8X7IYs+GU2AuZl6Hw== X-Received: by 2002:a05:6000:1803:: with SMTP id m3mr2828509wrh.50.1614853807980; Thu, 04 Mar 2021 02:30:07 -0800 (PST) Received: from debian-brgl.home (amarseille-656-1-4-167.w90-8.abo.wanadoo.fr. [90.8.158.167]) by smtp.gmail.com with ESMTPSA id f7sm35501854wre.78.2021.03.04.02.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 02:30:07 -0800 (PST) From: Bartosz Golaszewski To: Joel Becker , Christoph Hellwig , Shuah Khan , Linus Walleij , Andy Shevchenko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Geert Uytterhoeven , Kent Gibson , Jonathan Corbet Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 02/12] configfs: use (1UL << bit) for internal flags Date: Thu, 4 Mar 2021 11:24:42 +0100 Message-Id: <20210304102452.21726-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20210304102452.21726-1-brgl@bgdev.pl> References: <20210304102452.21726-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski For better readability and maintenance: use the (1UL << bit) for flag definitions. Signed-off-by: Bartosz Golaszewski Acked-by: Linus Walleij --- fs/configfs/configfs_internal.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fs/configfs/configfs_internal.h b/fs/configfs/configfs_internal.h index 9a3aed249692..b495c9f043d4 100644 --- a/fs/configfs/configfs_internal.h +++ b/fs/configfs/configfs_internal.h @@ -46,16 +46,16 @@ struct configfs_dirent { struct configfs_fragment *s_frag; }; -#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.29.1