From patchwork Thu Oct 5 19:44:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 114987 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp958032qgn; Thu, 5 Oct 2017 12:44:35 -0700 (PDT) X-Received: by 10.98.245.74 with SMTP id n71mr24753457pfh.102.1507232674940; Thu, 05 Oct 2017 12:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507232674; cv=none; d=google.com; s=arc-20160816; b=zJVeAoQUOEsjdA7p5WTKUrT7unXXoWP6aOfKgCHuO6ivt0hPIpnEse36YKmKhoXEKo bacqu4iV1kbTWK/LNgWtRckbsmim6tAd/dQqGlb0X/tbPOEGXJ1El07jsp5ZYFAtV1mi BdibkZ2BW7J2Ps70EeEUGiBXDw4HUzJZ2/x8viuwUnRU8B1IQVd2+VtNxJLMKRjA5Upz rwNvcAFINzCfqpjUE4PAUGVIrXQ/7m/9xH1azAasYshSYnfOZRlrMKKv518w6yfZRY85 mJ7QDFWbMySQ6XGyXNgvgqiPscWVGmmsEe/bxynJV2QRbvXbf1qQnKe62YckLHTGiRcD mbVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=h/KYuSxJwmfJCiJs0+VRzZFBXjM5dyJpE1bvZ6WNx0Y=; b=VVu0ggo/uZm2gqX9EmeKD1jtusgUEwHMxeXgCNcymtnwdCs0qcV+3jWmEAP2yp/YCq 5yVYOyt/oagP5+3aCL0h6c00+MNDi36TH+sS1UGUBril76k5xAtgoEFgUKvXIhqWpwiR lqXwJxi8AZ0ZoMeMVlCfZE2LVj9QYrulDRwk4Ruc9K9MYFBUGQo42kDVuqk2tvK2ZeCk 4NL56Sq3agm7xBlGbD36gEPvNTv0D0inxa/2t+H3EgF54Dr49fHr2ByTC80z5cXtQUf8 9CGRmyWE+MPufQMrZjHHwcan8Caj1CvZ9KeGZgyZzG4ceUruOTg+KVesuOBboz+RQnkO QMrQ== ARC-Authentication-Results: i=1; mx.google.com; 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 s2si13652021pfi.348.2017.10.05.12.44.34; Thu, 05 Oct 2017 12:44:34 -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; 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 S1752132AbdJEToc (ORCPT + 26 others); Thu, 5 Oct 2017 15:44:32 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:37433 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbdJETo3 (ORCPT ); Thu, 5 Oct 2017 15:44:29 -0400 Received: by mail-oi0-f66.google.com with SMTP id h9so9087066oia.4; Thu, 05 Oct 2017 12:44:29 -0700 (PDT) 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; bh=h/KYuSxJwmfJCiJs0+VRzZFBXjM5dyJpE1bvZ6WNx0Y=; b=Tivsx2UtRko7Lp6nPEcHMPbpr3Dw9XgjDOVNL+3YJDDJYPc/AZSetyRt/bL/renIce LTDbHkA487xIR397fQxelEvV8AMKy2rsXjUu+XDxM62hPBG1TWIcVqoiX+vjsdKOFGcq Hn/8M9JXkS1i8t/SDmenJCtyTVvoiMn5nwnx+K1daSCpW1fEiv3RekDe9fxT3/wxgoHQ G82Fs3qTqXapSgAkDp+/wvSM8xbDygnn/Wsh/CSdpRvm7WBV3A/40SBgKWa4NRU/lYMI W+9Y9/I1X8RvcU07YVIGRB0q9QYoa/zok7VSb3c4hVnIg5U8mUkQ4NAfbD/HUuPb1OgU pqBg== X-Gm-Message-State: AMCzsaUVzWBq6pH7eGiasWTgNvfRqmpaxtyP0IOq5Rs3mJZHbvMtgTe/ lz8bciAO2kMlAyy0oqBWfbJKaWI= X-Google-Smtp-Source: AOwi7QDwHTwb0s8FnwGUnkCej5CX6/oWpd5DJHbFFtziy6Mcer2nesoFC23YOHo1WlyZMIi3resmgg== X-Received: by 10.157.65.207 with SMTP id v15mr12058343oti.452.1507232668434; Thu, 05 Oct 2017 12:44:28 -0700 (PDT) Received: from localhost.localdomain (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id b73sm9011795oii.1.2017.10.05.12.44.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Oct 2017 12:44:27 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Nicolas Pitre , Frank Rowand , Grant Likely Subject: [PATCH 2/6] of: remove struct property.unique_id for FDT Date: Thu, 5 Oct 2017 14:44:18 -0500 Message-Id: <20171005194422.26224-3-robh@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171005194422.26224-1-robh@kernel.org> References: <20171005194422.26224-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Only Sparc uses unique_id, so remove it for FDT builds and shrink struct property a bit making the unflattened DT less of a memory hog. Cc: Nicolas Pitre Cc: Frank Rowand Signed-off-by: Rob Herring --- include/linux/of.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.11.0 Acked-by: Grant Likely diff --git a/include/linux/of.h b/include/linux/of.h index cfc34117fc92..8f9e96752837 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -38,7 +38,9 @@ struct property { void *value; struct property *next; unsigned long _flags; +#if defined(CONFIG_OF_PROMTREE) unsigned int unique_id; +#endif struct bin_attribute attr; };