From patchwork Mon Apr 20 06:47:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 11498139 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D93714B4 for ; Mon, 20 Apr 2020 06:48:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6E4C12080C for ; Mon, 20 Apr 2020 06:48:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725930AbgDTGsl (ORCPT ); Mon, 20 Apr 2020 02:48:41 -0400 Received: from foss.arm.com ([217.140.110.172]:43960 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbgDTGsl (ORCPT ); Mon, 20 Apr 2020 02:48:41 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 324F8C14; Sun, 19 Apr 2020 23:48:40 -0700 (PDT) Received: from p8cg001049571a15.arm.com (unknown [10.163.1.15]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A5E083F6CF; Sun, 19 Apr 2020 23:48:34 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Yoshinori Sato , Rich Felker , Logan Gunthorpe , Andrew Morton , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sh/mm: Fix a build failure via adding a missing bracket Date: Mon, 20 Apr 2020 12:17:50 +0530 Message-Id: <1587365270-5046-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org 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 Cc: Rich Felker Cc: Logan Gunthorpe Cc: Andrew Morton 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 --- 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.. */