All of lore.kernel.org
 help / color / mirror / Atom feed
* + ia64-mca-drop-redundant-spinlock-initialization.patch added to mm-nonmm-unstable branch
@ 2022-05-10 22:30 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-05-10 22:30 UTC (permalink / raw)
  To: mm-commits, akpm, baihaowen, akpm


The patch titled
     Subject: ia64: mca: Drop redundant spinlock initialization
has been added to the -mm mm-nonmm-unstable branch.  Its filename is
     ia64-mca-drop-redundant-spinlock-initialization.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/ia64-mca-drop-redundant-spinlock-initialization.patch

This patch will later appear in the mm-nonmm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Haowen Bai <baihaowen@meizu.com>
Subject: ia64: mca: Drop redundant spinlock initialization

mlogbuf_rlock has declared and initialized by DEFINE_SPINLOCK,
so we don't need to spin_lock_init again, drop it.

Link: https://lkml.kernel.org/r/1652176897-4754-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/ia64/kernel/mca.c |    1 -
 1 file changed, 1 deletion(-)

--- a/arch/ia64/kernel/mca.c~ia64-mca-drop-redundant-spinlock-initialization
+++ a/arch/ia64/kernel/mca.c
@@ -290,7 +290,6 @@ static void ia64_mlogbuf_finish(int wait
 {
 	BREAK_LOGLEVEL(console_loglevel);
 
-	spin_lock_init(&mlogbuf_rlock);
 	ia64_mlogbuf_dump();
 	printk(KERN_EMERG "mlogbuf_finish: printing switched to urgent mode, "
 		"MCA/INIT might be dodgy or fail.\n");
_

Patches currently in -mm which might be from baihaowen@meizu.com are

ia64-mca-drop-redundant-spinlock-initialization.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-10 22:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-10 22:30 + ia64-mca-drop-redundant-spinlock-initialization.patch added to mm-nonmm-unstable branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.