From patchwork Fri Nov 1 06:14:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 178247 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp37537ill; Thu, 31 Oct 2019 23:16:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4KOr97abb2N5H6Hm9n9EvYTSVSo4Qo/MVkJ+TbKBdAeaHsPNp9zpnAfFWOsJPIp1is5u6 X-Received: by 2002:a50:f096:: with SMTP id v22mr10862055edl.149.1572589002716; Thu, 31 Oct 2019 23:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572589002; cv=none; d=google.com; s=arc-20160816; b=0OD0pxKqOXEvatPJ0dtMh5p0KIe3P/qgRitPUm8QEQ8zqRVpydZhLW7T4vesrXnHej U7mrQQICTzYtL+Tdco1QldEY9xpmtq3i7ocW/eELZnzfczbFce1wGb4VH/uSmIH/BjcF oWVi2jBIns5EQgXh3v61n9aqim8DXHNgmvVnGDDLjMXD7STLSI7DXKRYo9GYKzEHI90N ZWsw3fBddghU6wQxJrONkgs45cV2ohiUSqYW8u4caEhho9458/Sq/72gUkcPVFhLSsFJ mczp4G9GPSXk3KTwm+ErOxKOvOwP1hkVOmqx2Cpn6NUZrESgjoVbHuNlhZPQlUg+DXeO U1cg== 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; bh=pGYwt8aksICDvlfvWj0tCkyuHYQwW0lnnIiz1OylTcI=; b=WpocnJ5LzVJMFYmQDLsMqM6cHsGCfVWdB6WXrkrwrtqSyass9+JlfGGxSEq2trI/We 2Yx5uKs7yvyd+ebLWh3jjLW0dXfa3Puwp+t7Rse7VtDsMqUwcgDEf0M3WDa3L3H1DTOf WtEqTgCaUKEMNZRACeypIKhUep5ke9QQNTcteQKLYmhF5Pn+qI1YnSn0Gni/IkFLhD8a pvP5DdErwMJrgzjS1crjESVwSMX1ice2RQX7NiTUpalTLIFMpWTGnJaDDx6MHEEo0W5B v3k4Ami4l8egrSVt6EZHPe8z2b2ihPuTrsStY5MxWoW2FgvVRaEpRzvSCLTVrR/p3ID9 5Qvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2LEyL1aA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x28si6042866edd.427.2019.10.31.23.16.42; Thu, 31 Oct 2019 23:16:42 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=2LEyL1aA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729841AbfKAGQl (ORCPT + 26 others); Fri, 1 Nov 2019 02:16:41 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:46719 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbfKAGQk (ORCPT ); Fri, 1 Nov 2019 02:16:40 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id xA16ELBc016348; Fri, 1 Nov 2019 15:14:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com xA16ELBc016348 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1572588862; bh=pGYwt8aksICDvlfvWj0tCkyuHYQwW0lnnIiz1OylTcI=; h=From:To:Cc:Subject:Date:From; b=2LEyL1aAf04dKzfo3G9K86up2BmcPt/JstqCUtoJLk02MXaqrTW2WCd7ZztvVKMci 6ppe5upzfBLZZiHGY1Dqe0D/K+HksAM7zA/EpQouymBiw10cn2BioTABxASWR60hqj HHMOi9eEjk5rFEvUxS2H6fFJ+nSD5tw/6A73Ct+7tpkrTXEw6P+l/qLzNsCXW9+a6W SN06S6NH39f52zTMVPcCrqrMNTijLq14u+I6NZ+cinTJeciVQV8nzBtxISTvaTKpU4 A/3DTOPAyvWAC5IXMGxN88SERT9Fj1HDyF9cNHz+MUUnLGgHhpIqCkwmXDiYAVRhif FyeF756FCdaeg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: devicetree@vger.kernel.org, Rob Herring , Frank Rowand Cc: linux-arm-kernel@lists.infradead.org, David Gibson , linuxppc-dev@lists.ozlabs.org, Masahiro Yamada , Benjamin Herrenschmidt , Michael Ellerman , Paul Mackerras , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] libfdt: prepare for (U)INT32_MAX addition Date: Fri, 1 Nov 2019 15:14:08 +0900 Message-Id: <20191101061411.16988-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As you may know, libfdt in the upstream DTC project added referenced to (U)INT32_MAX. The kernel code has three files to adjust: include/linux/libfdt_env.h arch/powerpc/boot/libfdt_env.h arch/arm/boot/compressed/libfdt_env.h Instead of fixing arch/arm/boot/compressed/libfdt_env.h, it is pretty easy to refactor the ARM decompressor to reuse So, 2/3 simplifies the Makefile and deletes its own libfdt_env.h On the other hand, the PPC boot-wrapper is a can of worms. I give up refactoring it. Let's keep it closed, and just update arch/powerpc/boot/libfdt_env.h Masahiro Yamada (3): libfdt: add SPDX-License-Identifier to libfdt wrappers ARM: decompressor: simplify libfdt builds libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h arch/arm/boot/compressed/.gitignore | 9 ------- arch/arm/boot/compressed/Makefile | 33 +++++++------------------ arch/arm/boot/compressed/atags_to_fdt.c | 1 + arch/arm/boot/compressed/fdt.c | 2 ++ arch/arm/boot/compressed/fdt_ro.c | 2 ++ arch/arm/boot/compressed/fdt_rw.c | 2 ++ arch/arm/boot/compressed/fdt_wip.c | 2 ++ arch/arm/boot/compressed/libfdt_env.h | 22 ----------------- arch/powerpc/boot/libfdt_env.h | 2 ++ include/linux/libfdt_env.h | 3 +++ lib/fdt.c | 1 + lib/fdt_empty_tree.c | 1 + lib/fdt_ro.c | 1 + lib/fdt_rw.c | 1 + lib/fdt_strerror.c | 1 + lib/fdt_sw.c | 1 + lib/fdt_wip.c | 1 + 17 files changed, 30 insertions(+), 55 deletions(-) create mode 100644 arch/arm/boot/compressed/fdt.c create mode 100644 arch/arm/boot/compressed/fdt_ro.c create mode 100644 arch/arm/boot/compressed/fdt_rw.c create mode 100644 arch/arm/boot/compressed/fdt_wip.c delete mode 100644 arch/arm/boot/compressed/libfdt_env.h -- 2.17.1