linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh/mm: Fix a build failure via adding a missing bracket
@ 2020-04-20  6:47 Anshuman Khandual
  0 siblings, 0 replies; only message in thread
From: Anshuman Khandual @ 2020-04-20  6:47 UTC (permalink / raw)
  To: linux-mm
  Cc: Anshuman Khandual, Yoshinori Sato, Rich Felker, Logan Gunthorpe,
	Andrew Morton, linux-sh, linux-kernel

This just adds a missing round bracket. Earlier it had caused the following
build failure.

arch/sh/mm/init.c: In function 'arch_add_memory':
arch/sh/mm/init.c:416:3: error: expected ')' before 'return'
   return -EINVAL;

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: Logan Gunthorpe <logang@deltatee.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Cc: linux-sh@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

Fixes: bfeb022f8fe4 ("mm/memory_hotplug: add pgprot_t to mhp_params")
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
---
 arch/sh/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index b9de2d4..8d2a68a 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -412,7 +412,7 @@ int arch_add_memory(int nid, u64 start, u64 size,
 	unsigned long nr_pages = size >> PAGE_SHIFT;
 	int ret;
 
-	if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot)
+	if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot))
 		return -EINVAL;
 
 	/* We only have ZONE_NORMAL, so this is easy.. */
-- 
2.7.4



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

only message in thread, other threads:[~2020-04-20  6:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  6:47 [PATCH] sh/mm: Fix a build failure via adding a missing bracket Anshuman Khandual

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).