From patchwork Tue Mar 9 20:59:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 396322 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=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 3C243C43333 for ; Tue, 9 Mar 2021 21:00:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1529165279 for ; Tue, 9 Mar 2021 21:00:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231941AbhCIU7k (ORCPT ); Tue, 9 Mar 2021 15:59:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231806AbhCIU7g (ORCPT ); Tue, 9 Mar 2021 15:59:36 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFA9AC061760 for ; Tue, 9 Mar 2021 12:59:35 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id i9so3814452wml.0 for ; Tue, 09 Mar 2021 12:59:35 -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=k4SxFZ2/z04LDFxgHqyBoGQvdfw+6RqGbZM8dagLyJw=; b=L4BejmRSHgDZSn8N12ZHnNzdgeSoEDt4vOykZhpWhx440GQv5dOnJt34x47tqczDaF gzoTCE488MYjF34Z9QnNryJEvJ9SNJBkvULvd/g9rGsXvWtbA+x/yUp+2zp+yPP9/0Ib nI8LBOm11NfYDQuYjd0okoexmC4W0+JUFXfafEaOIJPdJQrJFFGfjJEzpbpzNsHRcMdn xjesV4J7/0t4/rPiF7DE2c55RoWAz2H17qnysa3+JqXPRTJdUTKCkHODW7tVaWjc944M 1HKf53909HWuoNNPGT1nOmEwCaGMNWLIUGhRSzL1xscuenYL46MCYbdnF8McYxcmTt6b eliA== 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=k4SxFZ2/z04LDFxgHqyBoGQvdfw+6RqGbZM8dagLyJw=; b=HmrYEHui50XjEZUdDCZIgEZlWMogos1/2mgfH9OrqoDY8KQIlwSPh7a3W8Lv9xqrTh Ys7CbaISre9CqWo14BcUWKXR+kv9BiRbQqWejbn+EP/9Q5wiv2HwqZCDLcJvu7XuuG4e 42lmlFZmNUVH8679aN4YWdnbzsCjt4u40COdMrJawuaghCAYRLrxj2LxEftbvdD6F0+n i4u8kyHVMFUG08LE156T7HgZtkzfKQqaYDG2byJvomMu1WZYpveYNUHZ4AATHZwG9XEA rnUyqhKfLEAjHGY5ZiFIOgk+sE11o7t0DCaoMrTDwW5mwgYv2LM5/yc4JNmwdhwGx9+p 5AJw== X-Gm-Message-State: AOAM530wkZ4iy7Khw1SyD2H1NbmpdxD953mkZrrev+kUluHn5bYsFJap NNeWPiBeuB9bURsDhW52gfp9Tg== X-Google-Smtp-Source: ABdhPJweiTl/D6VcjUWfy+BDY7phoLsGYzyRRMJlqLOPRA8opETaoT3ZRwzeh/aYsPF5+QWewx5eYw== X-Received: by 2002:a05:600c:214d:: with SMTP id v13mr6097678wml.162.1615323574516; Tue, 09 Mar 2021 12:59:34 -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 j6sm5501305wmq.16.2021.03.09.12.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 12:59:34 -0800 (PST) From: Bartosz Golaszewski To: Joel Becker , Christoph Hellwig , Shuah Khan , Linus Walleij , Andy Shevchenko , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , 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: [PATCH v3 02/11] configfs: use (1UL << bit) for internal flags Date: Tue, 9 Mar 2021 21:59:12 +0100 Message-Id: <20210309205921.15992-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210309205921.15992-1-brgl@bgdev.pl> References: <20210309205921.15992-1-brgl@bgdev.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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;