Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp224061ybx; Fri, 1 Nov 2019 02:26:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfwE+ZL06FZJAFncWnwdpg9vETEtvgSee/enEUub1zXpTgHqZoO12zmAdJJP28dXjGFhzm X-Received: by 2002:a17:907:40bd:: with SMTP id nu21mr8796817ejb.190.1572600379809; Fri, 01 Nov 2019 02:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572600379; cv=none; d=google.com; s=arc-20160816; b=iQcjG0hu3fRSRQxMNH3UbwUH8C9uly4Psrdt5al7HzkU0uc+MRzTZeX/DiBB74hGRv vATpXSj2A///Es9Xwefv2zD7EFQZqp6E6aJsjB+WVqTkRqtCH33IERe+4GYPMQzhGjvN Ad1+LRjZ1ZuloFd+3QuEHpVx3CtSfLLZjcF4kfBUzHuZ1RYK5jQ9eXMlri1FtfxdXlzv ETh3WkisUBqQTYH2p7/CDwwRVbP5T/9oDTv+pn6QcyhgzuvXTFFT2DqdZ3Ut7HhYZnV0 AKgMN78fI3rXTm9j1DkiYNVb3F63AJlq71q17jA+CcwPdFJTdHr0ucolO2f3RU0+eMp0 k6Dw== 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=s5TW0F5kiM6Ii1qhgS3EYy+jvOIj8HD4h2NhZklMb0E=; b=F/+mogc+VgHiLJC6R+/ADtZcJAqBS/AKl/qFwM9ZVxOXzRBc3YrH5AvZ/5TDLwrwQd e400yaz/AocYeHIkyaPpn1KW9hXjL+ddnE9On41lW7OB4prFp2czEhATVIBvUPMLD85Z k7J1ttWxrvGcwwxqJSm2Rdlyk6JDJyvBhnk5/iZH86BA0VWQphKXHFPrMtSG7xALk6qc uwt342GMKP0J/jvBGrCHkDCUuf+er6aPgGoJw9taH7QWExXFPFyif/9WLeL/kx/ejyI1 2EncD0qFpKsiCm4Cj3SY1KiQsEoE/3TGNOV6uzJ4guYEkGfhjQ1bFBkShFYBjzqzPn/n 3z9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ULfIUbNv; 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 d10si6482347edb.226.2019.11.01.02.25.56; Fri, 01 Nov 2019 02:26:19 -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=ULfIUbNv; 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 S1730303AbfKAIN4 (ORCPT + 99 others); Fri, 1 Nov 2019 04:13:56 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:32262 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730277AbfKAINz (ORCPT ); Fri, 1 Nov 2019 04:13:55 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id xA18BsBN023869; Fri, 1 Nov 2019 17:11:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com xA18BsBN023869 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1572595915; bh=s5TW0F5kiM6Ii1qhgS3EYy+jvOIj8HD4h2NhZklMb0E=; h=From:To:Cc:Subject:Date:From; b=ULfIUbNvYDv8iOxNWNrQODXFHJ4+Xh0h93HMEG2YAkA9aQIpqyPE+lSmIfcmFP1gV LQcduXM9YsFhX3YMdpvz5RNrPHvsT9GB+qC+DuB7saSq7w2Nkzqy5Yqfb6liAIpNdd Q+taUATi98kBcFlhNMQnMGl2oN3kv//phjwjNZqdGTZlh3s/sUOa4tdRyQm6ecdIli b7ObC94Ixlnk3jvUbbQ4Cqht33jsI4gO7zg7PjCM4pzZ2IJLBQTv4nkiGyeu7kKxmT 0MQE8G9t5XcoMxfxIwHGHtmDov2eOBM2HSb1qtRe/HGlfcLXv87vRuF288Y1eMgS7J 8DBgfkRs9abIw== 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 v2 0/3] libfdt: prepare for (U)INT32_MAX addition Date: Fri, 1 Nov 2019 17:11:45 +0900 Message-Id: <20191101081148.23274-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 Changes in v2: - Fix ppc 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