From patchwork Mon May 4 10:33:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jungseung Lee X-Patchwork-Id: 6325031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AE9C5BEEE1 for ; Mon, 4 May 2015 10:36:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3F06202C8 for ; Mon, 4 May 2015 10:36:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 24EAF2010B for ; Mon, 4 May 2015 10:36:24 +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 1YpDhp-0002Km-Rf; Mon, 04 May 2015 10:34:33 +0000 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YpDhi-00028e-Hj for linux-arm-kernel@lists.infradead.org; Mon, 04 May 2015 10:34:27 +0000 Received: by pabsx10 with SMTP id sx10so157206584pab.3 for ; Mon, 04 May 2015 03:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=nGsSPU8tGjWRClQtB3TtfOR19V+yWNtdaUnzp39wsaI=; b=oMlZF9SXxasmSJiBjuUdDYsjik//mo9WDgpdPMM9LnrLqYEzZUs956JRjojfIGZqRG Y1ULhZQYoKXIlRBGwwe7I41vW5vhDJTR2c+Fs3+uVL1WitE/AmYEU/hCSACeZLR3o36K gwD5DEJwup7c++LbROHhtygIjdLK0HrZoGE8Fe/gtUZbBAadVVGmcPXRkC45nhzrH5TQ MGf3qKl+NgHsk8kmVcRLqHYT9qZLCnIa/f/xhJNnr6bX/SURnTAv7SWh/rWtt5QDk66D sMsgeHXjFuXMf6sv2TEPlcob7cOcTm7zyFEqIzm8UqQ2QBl/yt6atHGh6Yp9luN5af6b 6muA== X-Received: by 10.68.222.198 with SMTP id qo6mr21382120pbc.149.1430735644633; Mon, 04 May 2015 03:34:04 -0700 (PDT) Received: from localhost.localdomain ([165.132.120.156]) by mx.google.com with ESMTPSA id jz10sm12374491pbc.48.2015.05.04.03.34.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 May 2015 03:34:04 -0700 (PDT) From: Jungseung Lee To: Catalin Marinas , Will Deacon , Mark Rutland , Steve Capper , Steven Capper , Laura Abbott , Mark Brown , Jungseung Lee , linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: mm: Fix build error with CONFIG_SPARSEMEM_VMEMMAP disabled Date: Mon, 4 May 2015 19:33:48 +0900 Message-Id: <1430735628-14455-1-git-send-email-js07.lee@gmail.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150504_033426_659415_0B3C32FA X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 This fix the below build error: arch/arm64/mm/dump.c: In function ‘ptdump_init’: arch/arm64/mm/dump.c:331:18: error: ‘VMEMMAP_START_NR’ undeclared (first use in this function) address_markers[VMEMMAP_START_NR].start_address = ^ arch/arm64/mm/dump.c:331:18: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/mm/dump.c:333:18: error: ‘VMEMMAP_END_NR’ undeclared (first use in this function) address_markers[VMEMMAP_END_NR].start_address = ^ Signed-off-by: Jungseung Lee Acked-by: Laura Abbott --- arch/arm64/mm/dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/mm/dump.c b/arch/arm64/mm/dump.c index 74c2567..f3d6221 100644 --- a/arch/arm64/mm/dump.c +++ b/arch/arm64/mm/dump.c @@ -328,10 +328,12 @@ static int ptdump_init(void) for (j = 0; j < pg_level[i].num; j++) pg_level[i].mask |= pg_level[i].bits[j].mask; +#ifdef CONFIG_SPARSEMEM_VMEMMAP address_markers[VMEMMAP_START_NR].start_address = (unsigned long)virt_to_page(PAGE_OFFSET); address_markers[VMEMMAP_END_NR].start_address = (unsigned long)virt_to_page(high_memory); +#endif pe = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL, &ptdump_fops);