summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorCanfeng Guo <guocanfeng@uniontech.com>2024-06-29 06:10:12 +0200
committerPaul Moore <paul@paul-moore.com>2024-07-02 17:41:05 +0200
commite123134b39dc40af94e8aec49227ae55b5e087a8 (patch)
treeae093a1e475f1eee096c74bd0153e35206f9cb3a /security
parentLinux 6.10-rc1 (diff)
downloadlinux-e123134b39dc40af94e8aec49227ae55b5e087a8.tar.xz
linux-e123134b39dc40af94e8aec49227ae55b5e087a8.zip
selinux: Use 1UL for EBITMAP_BIT to match maps type
This patch modifies the definition of EBITMAP_BIT in security/selinux/ss/ebitmap.h from 1ULL to 1UL to match the type of elements in the ebitmap_node maps array. This change does not affect the functionality or correctness of the code but aims to enhance code quality by adhering to good programming practices and avoiding unnecessary type conversions. Signed-off-by: Canfeng Guo <guocanfeng@uniontech.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/ss/ebitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/ebitmap.h b/security/selinux/ss/ebitmap.h
index 24d7d8b3cda3..ba2ac3da1153 100644
--- a/security/selinux/ss/ebitmap.h
+++ b/security/selinux/ss/ebitmap.h
@@ -29,7 +29,7 @@
sizeof(unsigned long))
#define EBITMAP_UNIT_SIZE BITS_PER_LONG
#define EBITMAP_SIZE (EBITMAP_UNIT_NUMS * EBITMAP_UNIT_SIZE)
-#define EBITMAP_BIT 1ULL
+#define EBITMAP_BIT 1UL
#define EBITMAP_SHIFT_UNIT_SIZE(x) \
(((x) >> EBITMAP_UNIT_SIZE / 2) >> EBITMAP_UNIT_SIZE / 2)