From patchwork Thu Mar 31 08:49:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12796904 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D799C433FE for ; Thu, 31 Mar 2022 08:49:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 61EBE8D0001; Thu, 31 Mar 2022 04:49:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5A9256B0075; Thu, 31 Mar 2022 04:49:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3AB9E8D0001; Thu, 31 Mar 2022 04:49:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0114.hostedemail.com [216.40.44.114]) by kanga.kvack.org (Postfix) with ESMTP id 2D73C6B0074 for ; Thu, 31 Mar 2022 04:49:57 -0400 (EDT) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id DD494182A6241 for ; Thu, 31 Mar 2022 08:49:56 +0000 (UTC) X-FDA: 79304058792.26.9F9C671 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf16.hostedemail.com (Postfix) with ESMTP id 6854018000C for ; Thu, 31 Mar 2022 08:49:56 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 82C3561983; Thu, 31 Mar 2022 08:49:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61C72C340F3; Thu, 31 Mar 2022 08:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648716594; bh=mhNQddazJ57El0uDfD+vnjahyTMel63pDkcF/sZlYJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lUKrG6KbH+d6+/fi/GJcPOEQ04Us+14PmaAuJ1LOSr/dR/AX2stY96oA5srZE7fjC M/2JDAssLyDltKcpn+PoFYajJz9u1p6h3ttCjJfTEnkfr6qIojs7SIE0yzY9KVzcB0 s6cGHyKL80oBdtysj05KGEPVUOjOVAWes8uq5W6ldByvKKBFCZgFwzh4ewPp+ztoqu YAfX9on6rUCX1Bmy77iQb1HjToi3XrzCcxQPnyzcxTIJ3dMZSbRRJUnIS83nYcUSd3 U5vSD29IRUPUHDeNC6N/EW4Y9kN6BAtxhsXH+jy6gHaL62RoVqzVERkeH2G993Vrly 8rz5OQePku/nQ== From: SeongJae Park To: akpm@linux-foundation.org Cc: andreyknvl@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH for-mm 2/3] arch/arm64/kernel/irq: Include missed header file Date: Thu, 31 Mar 2022 08:49:38 +0000 Message-Id: <20220331084939.26749-3-sj@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220331084939.26749-1-sj@kernel.org> References: <20220331084939.26749-1-sj@kernel.org> X-Stat-Signature: 84e9eu1dwztpexi8hf14c5177dq9763j Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=lUKrG6Kb; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf16.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 6854018000C X-HE-Tag: 1648716596-736035 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Commit da4561bd9c6b ("arm64, scs: save scs_sp values per-cpu when switching stacks") of -mm is moving declaration of irq_shadow_call_stack_ptr to scs.h of arm64 for !SHADOW_CALL_STACK, but didn't include it in irq.c of arm64. As a result, we show below build error when SHADOW_CALL_STACK is unset. linux/arch/arm64/kernel/irq.c: In function 'init_irq_scs': linux/arch/arm64/kernel/irq.c:44:11: error: 'irq_shadow_call_stack_ptr' undeclared (first use in this function) 44 | per_cpu(irq_shadow_call_stack_ptr, cpu) = | ^~~~~~~~~~~~~~~~~~~~~~~~~ This commit fixes the build error by including the header file. [1] https://lore.kernel.org/all/f75c58b17bfaa419f84286cd174e3a08f971b779.1648049113.git.andreyknvl@google.com/ Fixes: da4561bd9c6b ("arm64, scs: save scs_sp values per-cpu when switching stacks") of -mm Signed-off-by: SeongJae Park --- arch/arm64/kernel/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c index 4199f900714a..9f7de9d5ee9b 100644 --- a/arch/arm64/kernel/irq.c +++ b/arch/arm64/kernel/irq.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include