Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp640265ybv; Wed, 5 Feb 2020 11:48:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyHnAl0bxw0+NwhQkYctuWq0eKrlUGF8bn5sUXtiCLbDvotDy55U27qlk0/j0smjNRoFVa5 X-Received: by 2002:aca:d6c8:: with SMTP id n191mr4394764oig.103.1580932083063; Wed, 05 Feb 2020 11:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580932083; cv=none; d=google.com; s=arc-20160816; b=WZ3uAsf6z3W+Zj6gvJudS6tGEQzWzaifwBIyDyIh5pH9kAAk233T0DO5avEh6a61X+ wjxIDmSHhxcGwe3c+mAn4cniaYXX7Te5+DadgaigGJ16gA7MaKgHmo0juJgRuMHMOQnU R6CcKNiqOojsHOH8PWVaZjPESVWNBln3DioVj1XDN6yFoV1I+ERM/laBy5UV9kAZRNUs zGjQYuDGYZem0Xj4kfVrSZ8+wF5/Q9+XXMpQYP19BWfF1NrZf/PIVJUznbhHXX1BfBq5 YK0+mV8szlaj8jB/nBJdFa00l5oYsSwZ+8/QFuCbPbQD9yVSg2xt09gNRZnhUz6AzYMh 77Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Oes1kIKb6EY0kgUvOxJAuCZD18qk1xpIJCNPP0790aM=; b=dI1kok4Qgw5Gv8wzG+ahEKN5zivE04vylFSeKwHPhGn2Yy1umNxsG3kINcPV2vHI5B QoDI5bvxXpMHWQFthhmO1XDNX5Uf3YlBk3CUre3l55us44gaQZzK/Z2sHSkplraqqNyL l0cQr17BXKiVOKsrQW9rTuOjtZjv0JWN1Uk681+SAFUNoaaNFDk8+areRE6AL36rYxp5 fKMjMZLZ8ZmU+gBDuuuwJFqhfSJzHyP6VFBchk5VtuD9EuXcFX/OYsE3nsmrXEPEdCzG 4h80MN7jomnqLC1pp229nFTHt/kraI1rIQj/FmVKmysaqN9odi70l/6dZ/K+7AYRwyHJ 4Z1A== 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 z21si295066oti.199.2020.02.05.11.47.48; Wed, 05 Feb 2020 11:48:03 -0800 (PST) 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 S1727361AbgBETqx (ORCPT + 99 others); Wed, 5 Feb 2020 14:46:53 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:42704 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727085AbgBETqw (ORCPT ); Wed, 5 Feb 2020 14:46:52 -0500 Received: from ramsan ([84.195.182.253]) by andre.telenet-ops.be with bizsmtp id z7mq2100S5USYZQ017mqLj; Wed, 05 Feb 2020 20:46:51 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1izQdO-000127-Ou; Wed, 05 Feb 2020 20:46:50 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1izQdO-00089i-Lt; Wed, 05 Feb 2020 20:46:50 +0100 From: Geert Uytterhoeven To: Rob Herring , Frank Rowand , Michael Turquette , Stephen Boyd Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] of: clk: Make self-contained Date: Wed, 5 Feb 2020 20:46:49 +0100 Message-Id: <20200205194649.31309-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Depending on include order: include/linux/of_clk.h:11:45: warning: ‘struct device_node’ declared inside parameter list will not be visible outside of this definition or declaration unsigned int of_clk_get_parent_count(struct device_node *np); ^~~~~~~~~~~ include/linux/of_clk.h:12:43: warning: ‘struct device_node’ declared inside parameter list will not be visible outside of this definition or declaration const char *of_clk_get_parent_name(struct device_node *np, int index); ^~~~~~~~~~~ include/linux/of_clk.h:13:31: warning: ‘struct of_device_id’ declared inside parameter list will not be visible outside of this definition or declaration void of_clk_init(const struct of_device_id *matches); ^~~~~~~~~~~~ Fix this by adding forward declarations for struct device_node and struct of_device_id. Signed-off-by: Geert Uytterhoeven --- Noticed when cleaning up some platform code. I am not aware of this being triggered in upstream, but this will become a dependency for these cleanups. include/linux/of_clk.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/of_clk.h b/include/linux/of_clk.h index b27da9f164cbd221..c86fcad23fc21725 100644 --- a/include/linux/of_clk.h +++ b/include/linux/of_clk.h @@ -6,6 +6,9 @@ #ifndef __LINUX_OF_CLK_H #define __LINUX_OF_CLK_H +struct device_node; +struct of_device_id; + #if defined(CONFIG_COMMON_CLK) && defined(CONFIG_OF) unsigned int of_clk_get_parent_count(struct device_node *np); -- 2.17.1