From patchwork Wed Jul 13 01:14:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hao X-Patchwork-Id: 647681 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rq1DT13jxz9sCt for ; Wed, 13 Jul 2016 11:18:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=RD9rAdo1; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3rq1DT00rSzDqLW for ; Wed, 13 Jul 2016 11:18:17 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=RD9rAdo1; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-yw0-x241.google.com (mail-yw0-x241.google.com [IPv6:2607:f8b0:4002:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rq18z39YPzDqFP for ; Wed, 13 Jul 2016 11:15:15 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=RD9rAdo1; dkim-atps=neutral Received: by mail-yw0-x241.google.com with SMTP id y188so2167338ywf.3 for ; Tue, 12 Jul 2016 18:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3Q57/L0249/+YcDP5mPEW/mTMzjua5Qu1Z3zSbxZSFY=; b=RD9rAdo1SSMWjRn2lzieYhSinWEqhwGVfI/0y1kdn/Gt7JGaHPAxczQW+nWhfMEAHa OhcQBePz8cqv7/1O143WnVGIPug0qmcOFtFeKwq7xkNwcqmBt+C5rnqn6UuCZSqqdovF zro7KMbxhog2mNM/uEoYv+0dp0eqg5sXIf6Pd0366Uq6hGzepIJtASKTknDpeXw5fNnc zyCVP8kbj8Xlq/x1ynA+JINZPzzZlUUbeQ8cwAGKyPJHilQOjxYsxOKnZMyK5+3vrLeB ZVnvghfWltOVJ3k/1P3QfHp5MEFDSt0y0Tk6EaqCVcKNuJBJsNqePvDTAetobd1SPC90 8Ykg== 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:in-reply-to :references; bh=3Q57/L0249/+YcDP5mPEW/mTMzjua5Qu1Z3zSbxZSFY=; b=COivsazdCh9ye+ViVAEOh4O8M5EIbDhiq9PnmIG4Gj5f+zNmM3bq9NE9PEOrvp8AN7 4VdMICyDn4OleQ7kOx9BKPu6dOkydD9N8jbIW6HwyO415x/m7aEI59ftqmCifZTmLnOX 5U2+sORVk34YmuEEwMWiY0oqQdUOU9ouYaanKr/xlazZ6+Zm8G9Bm86+2QQqCo0c4evo G1P6taR7NQEwLK6pNEyZ4fz525nP700prG4rhc6OL3RZqJ1EtrGSU8PV4geeshAnQeZa A8/IdcS0AMFxTOVWAohhqRxuLStTx/ILQPVkWZ0WJ0UmtgXBqx3+7f6fnwiwpyw0PDgD is1g== X-Gm-Message-State: ALyK8tIktQzG3JCy+A0Pr9ZrPDQ6m5oGXvw6lghI4o1h9avDWQYrKtjtdt8jEoBe86++Jw== X-Received: by 10.37.218.65 with SMTP id n62mr3722770ybf.68.1468372513664; Tue, 12 Jul 2016 18:15:13 -0700 (PDT) Received: from pek-khao-d1.wrs.com ([106.120.101.38]) by smtp.gmail.com with ESMTPSA id n18sm8418830ywn.36.2016.07.12.18.15.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 18:15:12 -0700 (PDT) From: Kevin Hao To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 1/3] powerpc32: booke: fix the build error when CRASH_DUMP is enabled Date: Wed, 13 Jul 2016 09:14:38 +0800 Message-Id: <1468372480-6453-2-git-send-email-haokexin@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1468372480-6453-1-git-send-email-haokexin@gmail.com> References: <1468372480-6453-1-git-send-email-haokexin@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Scott Wood , Paul Mackerras MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" In the current code, the RELOCATABLE will be forcedly enabled when enabling CRASH_DUMP. But for ppc32, the RELOCABLE also depend on ADVANCED_OPTIONS and select NONSTATIC_KERNEL. This will cause the following build error when CRASH_DUMP=y && ADVANCED_OPTIONS=n because the select of NONSTATIC_KERNEL doesn't take effect. arch/powerpc/include/asm/io.h: In function 'virt_to_phys': arch/powerpc/include/asm/page.h:113:26: error: 'virt_phys_offset' undeclared (first use in this function) #define VIRT_PHYS_OFFSET virt_phys_offset ^ It doesn't have any strong reasons to make the RELOCATABLE depend on ADVANCED_OPTIONS. So remove this dependency to fix this issue. Signed-off-by: Kevin Hao --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 0a4cea451cf2..cb7910b9f10f 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -952,7 +952,7 @@ config DYNAMIC_MEMSTART config RELOCATABLE bool "Build a relocatable kernel" - depends on ADVANCED_OPTIONS && FLATMEM && (44x || FSL_BOOKE) + depends on FLATMEM && (44x || FSL_BOOKE) select NONSTATIC_KERNEL help This builds a kernel image that is capable of running at the