Skip to contentSkip to conversation

ipc/util.h: Move opening brace to next line for function definition

PATCH New Malkoot Khan 1 participant 1 message Dec 28, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipc/util.h: Move opening brace to next line for function definition

The Linux kernel coding style prescribes that the opening brace '{' for function definitions should be on the next line. This patch adjusts the opening brace of a function in ipc/util.h to conform to this style. Moving the brace to the next line rectifies a coding style issue observed during review and aligns the code with kernel coding standards.

---
 ipc/util.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ipc/util.h +2 -1
index 67bdd2aa2c28..94c167847628 100644
@@ -244,7 +244,8 @@ int ipcget(struct ipc_namespace *ns, struct ipc_ids *ids,
 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,
 		void (*free)(struct ipc_namespace *, struct kern_ipc_perm *));
 
-static inline int sem_check_semmni(struct ipc_namespace *ns) {
+static inline int sem_check_semmni(struct ipc_namespace *ns)
+{
 	/*
 	 * Check semmni range [0, ipc_mni]
 	 * semmni is the last element of sem_ctls[4] array
Signature · 1 line
2.34.1