From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laxman Dewangan Subject: Re: [PATCH] of: base: Export symbol of __of_find_all_nodes() Date: Thu, 3 Nov 2016 10:54:27 +0530 Message-ID: <581ACA0B.3010107@nvidia.com> References: <1477654092-12406-1-git-send-email-ldewangan@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rob Herring Cc: Frank Rowand , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: devicetree@vger.kernel.org On Thursday 03 November 2016 09:09 AM, Rob Herring wrote: > On Fri, Oct 28, 2016 at 6:28 AM, Laxman Dewangan wrote: >> The function __of_find_all_nodes() is used in the public header >> linux/of.h and if any driver developed using this API then >> it reports error as unknown symbol if compiled as module. >> >> Export this APIs using EXPORT_SYMBOL() so that it can be used >> from driver compiled as module. > What driver needs this? This isn't really a function I'd expect drivers to use. > I am using the for loop for each node using the macro for_each_of_allnodes_from() which is define as #define for_each_of_allnodes_from(from, dn) \ for (dn = __of_find_all_nodes(from); dn; dn = __of_find_all_nodes(dn)) and this is using the above APIs. ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ----------------------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html