From patchwork Sun Mar 4 14:08:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 130592 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1671441lja; Sun, 4 Mar 2018 06:08:40 -0800 (PST) X-Google-Smtp-Source: AG47ELsp53rKKz7A/PxGZXTPgJGmi3HSWppGGXqQoj/32crh91+sy1vNw+VoqcFip7upsNoP7BF4 X-Received: by 10.98.212.80 with SMTP id u16mr12178574pfl.58.1520172520666; Sun, 04 Mar 2018 06:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520172520; cv=none; d=google.com; s=arc-20160816; b=Lh67Hcz2mdf1QDFyeIdixy5nnYGSGZKrYBJaOXdcu8EDKJspjrpqCgkgsQSeL61zWM SDCUKu/t8gYEo/y10GwzMvpZMj5YnPkaNcSsqiB9FS+nWhGVlYyqF8YCQk1Fejy1rssY V51jCymoKei/9ITDPEYxdzaYJ8cOQXMsZGdASkvmBGzK32r89ZQo2zLWf2RxWAGc9p9s 61vHBnQAxWaqkhr59k1WHKvYFu4emCRXwEDZIaWuxIHerPcPWa4R/0O0fmfl4+uJLjiR j6RrGY3wAydlHGBNh979SgH+d+er8Di1A7MVHJZSjKWEEKjk0Fw9v69aVsUZjfXdcVAm sKSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=jbMH+nVVZ8Pp7VHjNnVdyVcKRhn2elzzLU+nc1/Cwdk=; b=e1WThv0nIkS5eubfjpgM/b44UAk6jGcOzKkJrJhI0Geh150cLC8VBHTGW+H3vCsRKE pFX3hDgIPCf2ioqMBZXsrTDKMBjEv3z9kajNxK1XMXAQlVldITo3d33ey1qDhsgPKJnb oxSAG21xMTOFeflWgmAi2BICx0I7mvLbfkQBvKjxSBTbVCD+HJoJkKf23kG6uTXndWCF JsZxKVkWfwkd6Hw9Luycf/lfkPfqvCtxFrG9IvasW7zxnhbh/Hps2DNHd5octTzG1wqC LuGYCTEWjACQo74GhVT1Oj+Mu7nyWqXkx023e0zi2Qmrbkjy+PVRoFhVOpLNGXmV89Xx ahkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=Stc5nyK6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18si6986314pgn.669.2018.03.04.06.08.40; Sun, 04 Mar 2018 06:08:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=Stc5nyK6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751878AbeCDOIj (ORCPT + 6 others); Sun, 4 Mar 2018 09:08:39 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:44372 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752543AbeCDOIj (ORCPT ); Sun, 4 Mar 2018 09:08:39 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-12.nifty.com with ESMTP id w24E86Ko019071; Sun, 4 Mar 2018 23:08:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w24E86Ko019071 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520172487; bh=DEsuu8Y2FICOkNLhEJnVsyv3iiLcrD1h9HGSDGQvEdA=; h=From:To:Cc:Subject:Date:From; b=Stc5nyK6j6u/MhB3wA97uVHJzraOS7ehxAILYLwxw//jfy10LtBxIFaYJ3EaZAAy9 Hns2WtObOUhKcCYGrUHEGpLE8Oovqsq7oLMUktBUauooxYhMVkX8k1LY7Fy8GJC4Xe mbPvFKLu13hBZUClbcgkTh9wXIlx/V3Kj8PP2eTVHAC8SbFfYfiomPiKZ1DR10O/NQ wGxkf1Gg/4GT2Yrfy9hAKcRokfjVtV4R8jye/bMeDeLsAQsvcs1i509abyhePuIEnU Jy2lJpfa8zSW3Vh1plHRBFA8oEcur1NQ4hAWHe24D5zNpzNpyUtmpXGTrcmzqExoyA u2SYG5hqyaWjw== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: devicetree-compiler@vger.kernel.org, David Gibson Cc: Rob Herring , devicetree@vger.kernel.org, Masahiro Yamada Subject: [PATCH] libfdt: include "..." instead of <...> from libfdt.h Date: Sun, 4 Mar 2018 23:08:04 +0900 Message-Id: <1520172484-26867-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Assuming fdt.h, libfdt.h, and libfdt_env.h will be installed to the same directory, it wouldn't hurt to use #include "..." for inclusion among installed headers. This change is useful for cases where those headers do not reside in the header search paths. For example, Linux kernel edits these two lines when importing libfdt (see scripts/dtc/update-dtc-source.sh) It is needed for kernel because include/linux/libfdt.h is a wrapper of scripts/dtc/libfdt/libfdt.h, and scripts/dtc/libfdt is not contained in the header search paths. Signed-off-by: Masahiro Yamada --- libfdt/libfdt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h index c8c00fa..1e27780 100644 --- a/libfdt/libfdt.h +++ b/libfdt/libfdt.h @@ -51,8 +51,8 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include -#include +#include "libfdt_env.h" +#include "fdt.h" #define FDT_FIRST_SUPPORTED_VERSION 0x02 #define FDT_LAST_SUPPORTED_VERSION 0x11