From patchwork Thu Jan 14 04:33:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 101166 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3773366lbb; Wed, 13 Jan 2016 20:33:37 -0800 (PST) X-Received: by 10.66.90.133 with SMTP id bw5mr2971634pab.22.1452746017449; Wed, 13 Jan 2016 20:33:37 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pz7si6547373pab.216.2016.01.13.20.33.37; Wed, 13 Jan 2016 20:33:37 -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; 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 S1752464AbcANEdc (ORCPT + 6 others); Wed, 13 Jan 2016 23:33:32 -0500 Received: from conuserg010.nifty.com ([202.248.44.36]:53722 "EHLO conuserg010-v.nifty.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751402AbcANEdb (ORCPT ); Wed, 13 Jan 2016 23:33:31 -0500 Received: from beagle.diag.org (p14090-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.90]) (authenticated) by conuserg010-v.nifty.com with ESMTP id u0E4WY3I027629; Thu, 14 Jan 2016 13:32:35 +0900 X-Nifty-SrcIP: [153.142.97.90] From: Masahiro Yamada To: devicetree@vger.kernel.org Cc: Peter Hurley , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Rob Herring , Masahiro Yamada , Frank Rowand , Rob Herring , linux-kernel@vger.kernel.org, Grant Likely Subject: [PATCH] of: drop symbols declared by _OF_DECLARE() from modules Date: Thu, 14 Jan 2016 13:33:06 +0900 Message-Id: <1452745987-22146-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The users of this macro (OF_EARLYCON_DECLARE, CLK_OF_DECLARE, IRQCHIP_DECLARE, etc.) are only parsed in the early boot stage. Such symbols contained in modules are never used. Signed-off-by: Masahiro Yamada --- OF_EARLYCON_DECLARE() is declared in several tristate drivers. This patch makes each low-level driver be free from taking care of it. See this patch https://patchwork.kernel.org/patch/8028771/ include/linux/of.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- 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 Acked-by: Arnd Bergmann diff --git a/include/linux/of.h b/include/linux/of.h index dd10626..dc6e396 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -929,7 +929,7 @@ static inline int of_get_available_child_count(const struct device_node *np) return num; } -#ifdef CONFIG_OF +#if defined(CONFIG_OF) && !defined(MODULE) #define _OF_DECLARE(table, name, compat, fn, fn_type) \ static const struct of_device_id __of_table_##name \ __used __section(__##table##_of_table) \