Skip to content

Commit 8adf628

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 <alexander.mikhalitsyn@virtuozzo.com> Cc: Alexey Gladkov <legion@kernel.org> Cc: Christoph Lameter <cl@linux.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Dennis Zhou <dennis@kernel.org> Cc: "Eric W . Biederman" <ebiederm@xmission.com> Cc: Jiebin Sun <jiebin.sun@intel.com> Cc: Manfred Spraul <manfred@colorfullife.com> Cc: Shakeel Butt <shakeelb@google.com> Cc: Tejun Heo <tj@kernel.org> Cc: Tim Chen <tim.c.chen@linux.intel.com> Cc: Vasily Averin <vasily.averin@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 509d162 commit 8adf628

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: ipc/msg.c

+4-4
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

Diff for: ipc/util.h

+1-1
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)