Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp763862pxb; Mon, 16 Aug 2021 17:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw0WsEkEJmb1mwwJKL7DBzBKVA88FRNrjvoo9aEYZTn60V5/C62JMPML4Dj2X5kMFNZ3+7 X-Received: by 2002:aa7:c6c3:: with SMTP id b3mr930739eds.217.1629160660381; Mon, 16 Aug 2021 17:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629160660; cv=none; d=google.com; s=arc-20160816; b=Lb4dRoLXdGsKAg1DP33YQnBbnI7rGfM3+lBFfoqTTLMC9czzpqadKfiXEwXeQ+r2jV Suyovhk3oVzq5QIcH6gqHhNfNF/NxfW4cFB0JAyyNe4/3HOjZHRpS4qoLOiY+CT9Wmoi n272qzz7DvATOvmoiLg2MllwT3epGxurdjsoQkprrrL98HVZwY1yyrT0UzaCT09Z+v50 7NOieqIqPzTcqWowtRvngjrDwFuVZwp3fhrUgTdIzgff/REl6gTuQPGsIxIcPjEEQvKJ EX3GG9GMLiP9Uw2+ujDUiZKKlVxNuafIZzUEBVsirWg0RVR7s3w50bHWLR4YSxnUhLMO 3xug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i5TMqSz5zpGsqUXEwL+a+nllmIYq9aVLbePAJCOGAss=; b=t111W0t1lB04/DXvn9rVZpdXJIqPjU+06rdTFwGl6e7Mua7s8vW2bf5IKVl4QZxu7m lDJBcYHoCd8MVBAli/CoDO8QjKTxFrrkQxzGJvJo8HzfSazC4UdevvqPM6IKbdiddArq l7uXk2lHTUL+3nsaeHIeZWyNeO9GjoQEcEzEpNCIsvqAtHHH9elRgDHhBXwDMX1pc0T9 bciKwDZuH8gqUJxZWZaSLDbANaPEN0Z/sir8SzgRBqrAn1WWCDlApDUX4V7QS02OJvm+ kGB6dQCtzbrxfJIvxr2XPHGL26JI0/wyMAmywBTZkoi51GejNr1CqcjDDKI8jmsQTD5z aIDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B3dxdqcB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si542653edv.401.2021.08.16.17.37.18; Mon, 16 Aug 2021 17:37:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B3dxdqcB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235969AbhHQAgX (ORCPT + 99 others); Mon, 16 Aug 2021 20:36:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:35032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235456AbhHQAgQ (ORCPT ); Mon, 16 Aug 2021 20:36:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5656260FD8; Tue, 17 Aug 2021 00:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629160544; bh=pNEVaHNSTAF9FTtkmNhvWOxrJ8J856+QCpy1TxVkvEE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B3dxdqcBN4bbSK1TB/yYGz4EH3Ptbjkecw4LTsnRgLPMy31a0XqWklVXeRtYAtgHk i/MUyRUFZcEFERzeTbDO6PMotpTeuhTjQQ56Rj8C8DvV39QNNKBRqwWamSRFiSLCgv PqhYFU7YkB9dif0N6TVIrDs4aQC5xZCYJbOOdTj8mRrtuch5Fbot/9z7dz+6r8aXDc 8Kg1wIMDi8ex5I0N+ZotEmPs1PoOg33aJBnuh0zIHF2NWMaiDCBmPntosOcNc2GnhY Li9mmV0jpFNfyCiB6NCAtRdOtvJGTqBqsQBvu5/E8FjvkvgsznzRZhMplD/h1LZf5l Lh6VMybTi02LA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Guenter Roeck , Vineet Gupta , Sasha Levin , linux-snps-arc@lists.infradead.org Subject: [PATCH AUTOSEL 5.13 05/12] ARC: Fix CONFIG_STACKDEPOT Date: Mon, 16 Aug 2021 20:35:29 -0400 Message-Id: <20210817003536.83063-5-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210817003536.83063-1-sashal@kernel.org> References: <20210817003536.83063-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guenter Roeck [ Upstream commit bf79167fd86f3b97390fe2e70231d383526bd9cc ] Enabling CONFIG_STACKDEPOT results in the following build error. arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x456): undefined reference to `__irqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x476): undefined reference to `__irqentry_text_end' arc-elf-ld: stackdepot.c:(.text+0x476): undefined reference to `__irqentry_text_end' arc-elf-ld: stackdepot.c:(.text+0x484): undefined reference to `__softirqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x484): undefined reference to `__softirqentry_text_start' arc-elf-ld: stackdepot.c:(.text+0x48c): undefined reference to `__softirqentry_text_end' arc-elf-ld: stackdepot.c:(.text+0x48c): undefined reference to `__softirqentry_text_end' Other architectures address this problem by adding IRQENTRY_TEXT and SOFTIRQENTRY_TEXT to the text segment, so do the same here. Signed-off-by: Guenter Roeck Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/kernel/vmlinux.lds.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/kernel/vmlinux.lds.S b/arch/arc/kernel/vmlinux.lds.S index e2146a8da195..529ae50f9fe2 100644 --- a/arch/arc/kernel/vmlinux.lds.S +++ b/arch/arc/kernel/vmlinux.lds.S @@ -88,6 +88,8 @@ SECTIONS CPUIDLE_TEXT LOCK_TEXT KPROBES_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT *(.fixup) *(.gnu.warning) } -- 2.30.2