[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f5f72f6.936.18b2322e256.Coremail.chenguohua@jari.cn>
Date: Thu, 12 Oct 2023 17:06:10 +0800 (GMT+08:00)
From: chenguohua@...i.cn
To: dhowells@...hat.com, jarkko@...nel.org
Cc: keyrings@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] KEYS: Clean up errors in key.h
Fix the following errors reported by checkpatch:
ERROR: space required before the open parenthesis '('
Signed-off-by: GuoHua Cheng <chenguohua@...i.cn>
---
include/linux/key.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/include/linux/key.h b/include/linux/key.h
index 938d7ecfb495..48a43c9efaed 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -503,18 +503,18 @@ extern void key_init(void);
#define key_validate(k) 0
#define key_serial(k) 0
#define key_get(k) ({ NULL; })
-#define key_revoke(k) do { } while(0)
-#define key_invalidate(k) do { } while(0)
-#define key_put(k) do { } while(0)
-#define key_ref_put(k) do { } while(0)
+#define key_revoke(k) do { } while (0)
+#define key_invalidate(k) do { } while (0)
+#define key_put(k) do { } while (0)
+#define key_ref_put(k) do { } while (0)
#define make_key_ref(k, p) NULL
#define key_ref_to_ptr(k) NULL
#define is_key_possessed(k) 0
-#define key_fsuid_changed(c) do { } while(0)
-#define key_fsgid_changed(c) do { } while(0)
-#define key_init() do { } while(0)
-#define key_free_user_ns(ns) do { } while(0)
-#define key_remove_domain(d) do { } while(0)
+#define key_fsuid_changed(c) do { } while (0)
+#define key_fsgid_changed(c) do { } while (0)
+#define key_init() do { } while (0)
+#define key_free_user_ns(ns) do { } while (0)
+#define key_remove_domain(d) do { } while (0)
#endif /* CONFIG_KEYS */
#endif /* __KERNEL__ */
--
2.17.1
Powered by blists - more mailing lists