From patchwork Mon Nov 9 18:09:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 7586171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E19AE9F2F7 for ; Mon, 9 Nov 2015 18:30:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F22DA20761 for ; Mon, 9 Nov 2015 18:30:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2881320751 for ; Mon, 9 Nov 2015 18:30:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZvrBN-00070z-Kf; Mon, 09 Nov 2015 18:28:45 +0000 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZvrBK-0006xQ-JH for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2015 18:28:43 +0000 Received: by pacdm15 with SMTP id dm15so182429920pac.3 for ; Mon, 09 Nov 2015 10:28:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=7ZtRA1Bxqxag45DVCqtmsQ0rttkVqOp+t6T22nhoWyQ=; b=IdTunomCJf9e0fm20t4FPpiGg0WUL4eyoAhkGQXFfFxLTKxiAJ+nwl29IULCVQtFna qSkTR7SLTwoulyJLepohny3kkDtMNo2QhZWVz0mvC/dniDqgLohTmkhxfYLu1gbYBR+f J3Zf49U2TVEDspdW/kFhXygMGt9sW90swoUEKVT3W5KtYPeeDaq9YI99o2m0JLu+mmZH 57FFHsCJQhdtKjuBAOo7QRRLlJ17v8cmDWiIzhko14YDcLwXRZ9ZI7IWBv4XcMjxO7uM E2cPrAeoW2V/qaMp9KTwkXP2sFk+Vk6OMoeUpVARHvgK13XriO5R8XRTAnJdg8H/NhGm 47rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7ZtRA1Bxqxag45DVCqtmsQ0rttkVqOp+t6T22nhoWyQ=; b=KfYMeuUXd9F1z5iXVrM9Iy0DUlCojb8L97nc5Wtml+08axxxnCx3llkX+/HmIecMGQ aCgLOwHDBtKGfOLxsjFE7n2t2ybkCjUN8YfTkRbNUQj1wQqWSQKLJ+4dB4kQWBRE/HMj xcj/AFsMAPJHMK6yQgaeLaH9QpPIH+RepX+a3y2QQyFcVIoLffBESNZ3a73wyiR90lae gd3Rb6w3lFCdSa0pWeIWkEBHKC9Z/E+e3cBxlbV/M1Dt7VVx19F2RmHvnzCBmtMSHuz3 ZDdes1T9CFfP1z9/cWqAOo/25FwAtCZV2jOGDvyeO381dg2kMLL8nbePUxeTMFOgNUDc ABDw== X-Gm-Message-State: ALoCoQkGBSlS5X3ovdwuXIaahVBpdF0jt4Zk4zGxnOG0NgXUgreUehDgXfbCuSH923ovh3220KKk X-Received: by 10.66.153.166 with SMTP id vh6mr42968781pab.83.1447093701711; Mon, 09 Nov 2015 10:28:21 -0800 (PST) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id qd2sm17653491pbb.68.2015.11.09.10.28.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Nov 2015 10:28:21 -0800 (PST) From: Yang Shi To: catalin.marinas@arm.com, will.deacon@arm.com, mark.rutland@arm.com Subject: [V3 PATCH] arm64: remove redundant FRAME_POINTER kconfig option and force to select it Date: Mon, 9 Nov 2015 10:09:55 -0800 Message-Id: <1447092595-12644-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151109_102842_673286_0911CB36 X-CRM114-Status: GOOD ( 11.53 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yang.shi@linaro.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to redefine it in arch/arm64/Kconfig.debug. Actually, the one defined in arm64 directory is never used. This adds a dependency on DEBUG_KERNEL for building with frame pointers. ARM64 depends on frame pointer to get correct stack backtrace and need FRAME_POINTER kconfig option enabled all the time. However, currect implementation makes it could be disabled, so force it to be selected by ARM64. Signed-off-by: Yang Shi --- change v3 --> v2: squash two patches into one. arch/arm64/Kconfig | 1 + arch/arm64/Kconfig.debug | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 440d906..b554da2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -27,6 +27,7 @@ config ARM64 select CPU_PM if (SUSPEND || CPU_IDLE) select DCACHE_WORD_ACCESS select EDAC_SUPPORT + select FRAME_POINTER select GENERIC_ALLOCATOR select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS_BROADCAST diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug index d6285ef..915dea7 100644 --- a/arch/arm64/Kconfig.debug +++ b/arch/arm64/Kconfig.debug @@ -2,10 +2,6 @@ menu "Kernel hacking" source "lib/Kconfig.debug" -config FRAME_POINTER - bool - default y - config ARM64_PTDUMP bool "Export kernel pagetable layout to userspace via debugfs" depends on DEBUG_KERNEL