Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3135691pxf; Mon, 15 Mar 2021 02:15:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFsecl5scSZk1gKMlskKU+/xu3HSVmiXjIw3accMeiT4Puk5Qmr9Toj/51DaMcj3lqJP89 X-Received: by 2002:a50:fa04:: with SMTP id b4mr29263746edq.293.1615799758520; Mon, 15 Mar 2021 02:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615799758; cv=none; d=google.com; s=arc-20160816; b=zrtT2o+2I6HOd+pNUVqrayFjcQk+lhAs1iazAj8KkGqawsThZ5XTCyNDtbn42TKn6U nB6NKDyo7vwtLv82o9KDAh3lBvmq+PW8RoQIZRlWYX8P8Mww6YuLkeT+L+Vg9nOMHHvT 6KxTYHxfdhOXhcwiJf35R63YRQLCSp+a/9rjFalp6itJui6Guf5w12P23PtsSqeh41l5 AG291VWRQa/ybq7wwY+LEqOrAyRNzfmILlE2U5vqVG74YXAbbkjpxD9BiVa2QfHv+XB+ KyygsrsWjQMcQfHFSJNTEhFEr7ITlCBlU4KPVlczUT3HMR9HWn+hmzndVg5pZjJ44l3J Ny3A== 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=k4SxFZ2/z04LDFxgHqyBoGQvdfw+6RqGbZM8dagLyJw=; b=XoBWGGE9z22ZutnUFAazot7g+8ghaJN/rKkoQPMZfBt5zXkA0e32To6oGFxucR5d+2 +8W1540iut86QbcIJEDKWoDAHUqDU/1MJ5t1zswS5pqNi/uaU4E5WDXz1xF6fNxCI9j3 drw/irp/3b1gtwvpIwE7bNXSFkJE0cShnSNhnygK8+8JBlXixukqOLdCwc97IAG7334Q 8z8iHHG1hT6WwYHYZIUSO22JpM2SKrVjuVkKsjo9pMajpJYukWcRobhIirTcXL3/2nw1 G88yWBb3OUGWr148SaL+ZLB9kWF/xCQ3OFIKwR8thd6qogMjQt/2S4DWT6c41Nwd/HeR R54Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=MMCOFZNi; 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 bs6si10401875edb.145.2021.03.15.02.15.35; Mon, 15 Mar 2021 02:15:58 -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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=MMCOFZNi; 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 S229696AbhCOJOh (ORCPT + 99 others); Mon, 15 Mar 2021 05:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbhCOJOK (ORCPT ); Mon, 15 Mar 2021 05:14:10 -0400 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 CF09FC061762 for ; Mon, 15 Mar 2021 02:14:09 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id e9so5281366wrw.10 for ; Mon, 15 Mar 2021 02:14:09 -0700 (PDT) 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=MMCOFZNijZ6BqZJip7OELTgyUa/YPCPJPKzz7iWl/F27ZDpuX1elMirYsMb6RL0QIi ysUpX8LVdt0a+8zRmxdvwIlcUE5zlbyRFM10kavUmYZ9JxnshhSzUWgnRuYrGZX0JIQx AnWdSvQqSm+cody+GG/FVnJ7DbW55owvtwbGFQqt0QRBoRu4b+xMDwoZWUm91LI8hUrb nw54SmHtxWHERf6/BCCQwMcYjFdoIHTZKsFsoh3HL/hRIKuiBhuh7ZVKwp10+ZZRWGo9 FtMEpxZbCRS36HKv5Rm0K9kQ11/Q2xanNy752T+O+ESOusPjMnCZeGwpSZQenzqtQAWA 2M0g== 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=qwHKBmsU+D/g+cvhmwSheWvGpQ9xn8KXsLA6oiGi61eNocDNLZYzIEMCrNAoEvJ3Ta z67aKZn6RzylAsFjKA2vrUGxu36xTnHQwRLU8NSJ6dQO3x/4lcuiP8hyRp0HlSBauEfE 1njQfWAqYuqMflCpv5XeDwG9pLSkhwuuxeFic5yl/LFyhDRfmV85jurVyV5e5GfHW6ye BQYwbE1as951Id6zJNEbYD9gvxuIrrgwegzKTVL0PtsB1sqtlQNs3kBLsUtprLx/+2B6 vN5rs43X0fsGb1ToEpAn8VrnR3O72zoW2Ghs8iwSYCy03f2rQ8TuNnjeEWqWWdvmgSJv omYA== X-Gm-Message-State: AOAM5310nYukTmuXQx77RoEKYeXOCYaPCZCsDmO3xnXl4vw19K7M95br 9tK5LMGeVNnEcD3vIMzyqg0Vvg== X-Received: by 2002:a5d:4e85:: with SMTP id e5mr26905142wru.218.1615799648564; Mon, 15 Mar 2021 02:14:08 -0700 (PDT) Received: from debian-brgl.home (lfbn-nic-1-149-6.w2-15.abo.wanadoo.fr. [2.15.231.6]) by smtp.gmail.com with ESMTPSA id z3sm17978822wrw.96.2021.03.15.02.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 02:14:08 -0700 (PDT) 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 , Greg Kroah-Hartman Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v5 02/11] configfs: use (1UL << bit) for internal flags Date: Mon, 15 Mar 2021 10:13:51 +0100 Message-Id: <20210315091400.13772-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210315091400.13772-1-brgl@bgdev.pl> References: <20210315091400.13772-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.30.1