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: 467553 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 246F514028F for ; Mon, 4 May 2015 20:36:34 +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=oMlZF9SX; dkim-atps=neutral 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-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c03:0:0:0:234 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (js07.lee[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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);