From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH] of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS Date: Wed, 19 Dec 2012 09:12:59 -0600 Message-ID: <50D1D97B.1020309@gmail.com> References: <1355578062-21876-1-git-send-email-jogo@openwrt.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1355578062-21876-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Jonas Gorski Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On 12/15/2012 07:27 AM, Jonas Gorski wrote: > Fixes the following warning: > > include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default] > include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] > > Signed-off-by: Jonas Gorski > --- It seems like this never made it to the list, so hopefully this reply will. Rob > include/linux/of_platform.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h > index b47d204..3863a4d 100644 > --- a/include/linux/of_platform.h > +++ b/include/linux/of_platform.h > @@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root, > > #if !defined(CONFIG_OF_ADDRESS) > struct of_dev_auxdata; > +struct device; > static inline int of_platform_populate(struct device_node *root, > const struct of_device_id *matches, > const struct of_dev_auxdata *lookup, >