Skip to content

Commit 88c8652

Browse files
committed
ipc-msg-mitigate-the-lock-contention-with-percpu-counter-checkpatch-fixes
WARNING: labels should not be indented torvalds#158: FILE: ipc/msg.c:1319: + fail_msg_hdrs: WARNING: labels should not be indented torvalds#160: FILE: ipc/msg.c:1321: + fail_msg_bytes: ERROR: space required after that ';' (ctx:VxV) torvalds#203: FILE: ipc/util.h:75: +static inline int msg_init_ns(struct ipc_namespace *ns) { return 0;} ^ total: 1 errors, 2 warnings, 144 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/ipc-msg-mitigate-the-lock-contention-with-percpu-counter.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Alexander Mikhalitsyn <[email protected]> Cc: Alexey Gladkov <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Dennis Zhou <[email protected]> Cc: "Eric W . Biederman" <[email protected]> Cc: Jiebin Sun <[email protected]> Cc: Manfred Spraul <[email protected]> Cc: Shakeel Butt <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Tim Chen <[email protected]> Cc: Vasily Averin <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6927ae9 commit 88c8652

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ipc/msg.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,10 +1316,10 @@ int msg_init_ns(struct ipc_namespace *ns)
13161316
ipc_init_ids(&ns->ids[IPC_MSG_IDS]);
13171317
return 0;
13181318

1319-
fail_msg_hdrs:
1320-
percpu_counter_destroy(&ns->percpu_msg_bytes);
1321-
fail_msg_bytes:
1322-
return ret;
1319+
fail_msg_hdrs:
1320+
percpu_counter_destroy(&ns->percpu_msg_bytes);
1321+
fail_msg_bytes:
1322+
return ret;
13231323
}
13241324

13251325
#ifdef CONFIG_IPC_NS

ipc/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void msg_exit_ns(struct ipc_namespace *ns);
7272
void shm_exit_ns(struct ipc_namespace *ns);
7373
#else
7474
static inline void sem_init_ns(struct ipc_namespace *ns) { }
75-
static inline int msg_init_ns(struct ipc_namespace *ns) { return 0;}
75+
static inline int msg_init_ns(struct ipc_namespace *ns) { return 0; }
7676
static inline void shm_init_ns(struct ipc_namespace *ns) { }
7777

7878
static inline void sem_exit_ns(struct ipc_namespace *ns) { }

0 commit comments

Comments
 (0)