From patchwork Thu Nov 14 05:15:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 179366 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp10573103ilf; Wed, 13 Nov 2019 21:14:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyBAU2vbAh8+XuT8R+UZ6XGa3It41BlQmPxC+bi5nLrVwCKzB0soWBPw6vvEE5lT5/15Bop X-Received: by 2002:aa7:c887:: with SMTP id p7mr7737754eds.268.1573708490318; Wed, 13 Nov 2019 21:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573708490; cv=none; d=google.com; s=arc-20160816; b=00xszXtSKCphAXMA6NLbh3AbtMDEA4z/nTiSvUleSRdDjHkZkaBgaoSXhGBbWIHiLp hv1kjryKKpo9FW+k++JmdKn9mFZ3I2SqBQ0hRLxuWCXpkGm/X7rjK68iFGIena6hBrlL T8ZAI0pJYtcRE8G9aAyxjlU6JVa3IQh2jHoTdZAG6hiWMskDVsGNgTrv5X3+60RiN6UE rIBAW3T+vdI5FzkdxcfxzglSKQJYKWN4mxYXgLdPL7mbcEtIJWXp7VVyFWMCHPV/3jux 8QBVIMYCghrWEmM8yjN4BxqM+j5VQPC7ZiWyeF1K/nKoWO0dj1NRcv2mkRgtInhCE0XK hXPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zfaZ7B1OIQM+O5UvJ/wV2ZCp71JUGqq5m81NfGqahU8=; b=HcBE6qf4snmFywskDgQQEKDVoa5PS9wJfA/V4iWEW+GM7cOJblQgSPuAoqFA3tQpXP iLvKhNf84EQLtphcSxQE4tNFCtUTQ43qx5BbyVVUgM2Q8uOb07l1VS3ti1yxSXnJK5e7 tu/6fRtQRz8EFlcmk4S6WfRW8xKienNEtHwm4V6Eab6AhoPN7kAL1BQUl0crD1R1tAaK 5qOO3JJYZL8PFEsS9Nmogm+5m0DEqbOhYerpVFfBzpkbbMVIkAwGaZ21Asd7YBl9smLf rWMYc7wjE2DK4WbPSczl1z4EmHXlf1cYS6HI6oubTw9wehx3bqFhk6LzmzaklwBR9W/B 6FGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s7vJIIec; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f25si2649605ejw.85.2019.11.13.21.14.50; Wed, 13 Nov 2019 21:14:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s7vJIIec; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727387AbfKNFOs (ORCPT + 26 others); Thu, 14 Nov 2019 00:14:48 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36960 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfKNFOq (ORCPT ); Thu, 14 Nov 2019 00:14:46 -0500 Received: by mail-pl1-f195.google.com with SMTP id bb5so2090126plb.4 for ; Wed, 13 Nov 2019 21:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zfaZ7B1OIQM+O5UvJ/wV2ZCp71JUGqq5m81NfGqahU8=; b=s7vJIIecua6jio8GHP1SNLsWbrutJhjvfgoslAJdyNfzmy2b9kqOYLOYM2io59i57Q jHqssXPr1DHovyseaLXmzWBud240mH+UczZjWG9GydYicchKzi4Wla8GgBJHMEh5oRFF jQvFs0JkSiGRkjFe88ooLL/JT+Hcmel4OTYtA2+A/YQTZhpxB2FKtIWwxw0Tx8vuDky2 7NVZHUujA72FiD4PpVq1EJDZEi7D2Vek7s0SsAE0g+DcZjJtNS7cFcPUdPZpqUkJeRoO a+gl4l0qGEmtluToROVonxdeXyD5qmLzG9MHlYvsMuFXNqsAfIOUCp7J05JVm7W5ZCVd Tu7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zfaZ7B1OIQM+O5UvJ/wV2ZCp71JUGqq5m81NfGqahU8=; b=SwAu+5myLx+JQW9r5bAqmK7bDsLbf9HEyax+YmXsJxPiJF9oUd+Vqb/MXnDiq7C3NY 9WUQvqgEHUiOJZjCfSS6vG732Iaza+ibWk0vACNklcBu4u5zG1htZUY3djHuHZsyG/Eq 6OFfDsszs6RF2OxTyGPgTBG0fM71aqFp5yNdtd8EAbBEQQe++Jp3KXaUiiHRQn3zYMj8 shOv7ZylFd/SrwhyVzBONoiHJDXzIrEMnI9h5txB0b5zzh1wx1mv4LO+JDI0AomhyXvn Y7cZZ+QKmxCg3sLtQsU+rx/Xc8w694DUVI5240L+f1ytnwPyNdKKFunKVw0yLk+UjCd4 pXqw== X-Gm-Message-State: APjAAAXzkbr3w6QzlUW/6wpvhYfMAC+E/8T3doUqLsoy7wbgiQ04ApWF mamHR2IDfY7BEAkX5KFlvt2fpA== X-Received: by 2002:a17:902:7892:: with SMTP id q18mr7731002pll.171.1573708484192; Wed, 13 Nov 2019 21:14:44 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id ay16sm9718758pjb.2.2019.11.13.21.14.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Nov 2019 21:14:43 -0800 (PST) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, frowand.list@gmail.com Cc: james.morse@arm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro Subject: [PATCH v2 2/3] libfdt: include fdt_addresses.c Date: Thu, 14 Nov 2019 14:15:09 +0900 Message-Id: <20191114051510.17037-3-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191114051510.17037-1-takahiro.akashi@linaro.org> References: <20191114051510.17037-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the implementation of kexec_file_loaded-based kdump for arm64, fdt_appendprop_addrrange() will be needed. So include fdt_addresses.c in making libfdt. Signed-off-by: AKASHI Takahiro Cc: Rob Herring Cc: Frank Rowand --- lib/Makefile | 2 +- lib/fdt_addresses.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 lib/fdt_addresses.c -- 2.21.0 diff --git a/lib/Makefile b/lib/Makefile index c5892807e06f..1587a2de99c6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -220,7 +220,7 @@ KASAN_SANITIZE_stackdepot.o := n KCOV_INSTRUMENT_stackdepot.o := n libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \ - fdt_empty_tree.o + fdt_empty_tree.o fdt_addresses.o $(foreach file, $(libfdt_files), \ $(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt)) lib-$(CONFIG_LIBFDT) += $(libfdt_files) diff --git a/lib/fdt_addresses.c b/lib/fdt_addresses.c new file mode 100644 index 000000000000..23610bcf390b --- /dev/null +++ b/lib/fdt_addresses.c @@ -0,0 +1,2 @@ +#include +#include "../scripts/dtc/libfdt/fdt_addresses.c"