* [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 @ 2013-04-02 16:28 Guennadi Liakhovetski 2013-04-02 16:30 ` Arnd Bergmann 0 siblings, 1 reply; 7+ messages in thread From: Guennadi Liakhovetski @ 2013-04-02 16:28 UTC (permalink / raw) To: Linux Media Mailing List Cc: Sylwester Nawrocki, devicetree-discuss, Grant Likely, Rob Herring Currently modular V4L2 build with enabled OF is broken dur to the of_get_next_parent() function being unavailable to modules. Export it to fix the build. Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> --- This is for 3.10 drivers/of/base.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 321d3ef..1733081 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -382,6 +382,7 @@ struct device_node *of_get_next_parent(struct device_node *node) raw_spin_unlock_irqrestore(&devtree_lock, flags); return parent; } +EXPORT_SYMBOL(of_get_next_parent); /** * of_get_next_child - Iterate a node childs -- 1.7.2.5 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 2013-04-02 16:28 [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 Guennadi Liakhovetski @ 2013-04-02 16:30 ` Arnd Bergmann 2013-04-02 16:42 ` Guennadi Liakhovetski 0 siblings, 1 reply; 7+ messages in thread From: Arnd Bergmann @ 2013-04-02 16:30 UTC (permalink / raw) To: devicetree-discuss Cc: Guennadi Liakhovetski, Linux Media Mailing List, Rob Herring, Sylwester Nawrocki On Tuesday 02 April 2013, Guennadi Liakhovetski wrote: > Currently modular V4L2 build with enabled OF is broken dur to the > of_get_next_parent() function being unavailable to modules. Export it to > fix the build. > > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Looks good to me, but shouldn't this be EXPORT_SYMBOL_GPL? Arnd ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 2013-04-02 16:30 ` Arnd Bergmann @ 2013-04-02 16:42 ` Guennadi Liakhovetski 2013-04-17 14:07 ` Guennadi Liakhovetski 0 siblings, 1 reply; 7+ messages in thread From: Guennadi Liakhovetski @ 2013-04-02 16:42 UTC (permalink / raw) To: Arnd Bergmann Cc: devicetree-discuss, Linux Media Mailing List, Rob Herring, Sylwester Nawrocki On Tue, 2 Apr 2013, Arnd Bergmann wrote: > On Tuesday 02 April 2013, Guennadi Liakhovetski wrote: > > Currently modular V4L2 build with enabled OF is broken dur to the > > of_get_next_parent() function being unavailable to modules. Export it to > > fix the build. > > > > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> > > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> > > Looks good to me, but shouldn't this be EXPORT_SYMBOL_GPL? "grep EXPORT_SYMBOL drivers/of/base.c" doesn't give a certain answer, but it seems to fit other of_get_* functions pretty well: EXPORT_SYMBOL(of_get_parent); +EXPORT_SYMBOL(of_get_next_parent); EXPORT_SYMBOL(of_get_next_child); EXPORT_SYMBOL(of_get_next_available_child); EXPORT_SYMBOL(of_get_child_by_name); Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 2013-04-02 16:42 ` Guennadi Liakhovetski @ 2013-04-17 14:07 ` Guennadi Liakhovetski 2013-04-17 14:53 ` Compilation breakage on drivers/media due to OF patches - was: " Mauro Carvalho Chehab 0 siblings, 1 reply; 7+ messages in thread From: Guennadi Liakhovetski @ 2013-04-17 14:07 UTC (permalink / raw) To: Arnd Bergmann Cc: devicetree-discuss, Linux Media Mailing List, Rob Herring, Sylwester Nawrocki, Grant Likely Hi all On Tue, 2 Apr 2013, Guennadi Liakhovetski wrote: > On Tue, 2 Apr 2013, Arnd Bergmann wrote: > > > On Tuesday 02 April 2013, Guennadi Liakhovetski wrote: > > > Currently modular V4L2 build with enabled OF is broken dur to the > > > of_get_next_parent() function being unavailable to modules. Export it to > > > fix the build. > > > > > > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> > > > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> > > > > Looks good to me, but shouldn't this be EXPORT_SYMBOL_GPL? > > "grep EXPORT_SYMBOL drivers/of/base.c" doesn't give a certain answer, but > it seems to fit other of_get_* functions pretty well: Ping, could this patch be pushed to -next asap, please? Without it the current V4L2 -next doesn't compile. Also, I think, ro avoid breaking the mainline, we should try to have this patch pulled in before the media tree, could that be done? Thanks Guennadi > EXPORT_SYMBOL(of_get_parent); > +EXPORT_SYMBOL(of_get_next_parent); > EXPORT_SYMBOL(of_get_next_child); > EXPORT_SYMBOL(of_get_next_available_child); > EXPORT_SYMBOL(of_get_child_by_name); --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Compilation breakage on drivers/media due to OF patches - was: Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 2013-04-17 14:07 ` Guennadi Liakhovetski @ 2013-04-17 14:53 ` Mauro Carvalho Chehab 2013-04-17 15:08 ` Grant Likely 0 siblings, 1 reply; 7+ messages in thread From: Mauro Carvalho Chehab @ 2013-04-17 14:53 UTC (permalink / raw) To: Rob Herring, Grant Likely Cc: Guennadi Liakhovetski, Arnd Bergmann, devicetree-discuss, Linux Media Mailing List, Sylwester Nawrocki Hi Grant/Rob, Our tree is currently _broken_ with OT, because of the lack of exporting of_get_next_parent. The developer that submitted the patches that added V4L2 OF support forgot to test to compilation with MODULES support enabled. So, we're now having: ERROR: "of_get_next_parent" [drivers/media/v4l2-core/videodev.ko] undefined! if compiled with OF enabled and media as module. As those patches were applied at my master branch and there are lots of other patches on the top of the patches that added V4L2 OF support, I prefer to avoid reverting those patches. On the other hand, I can't send the patches upstream next week (assuming that -rc7 is the final one), without having this patch applying before the media tree. So, please help me solving this issue as soon as possible. Thank you! Mauro Em Wed, 17 Apr 2013 16:07:49 +0200 (CEST) Guennadi Liakhovetski <g.liakhovetski@gmx.de> escreveu: > Hi all > > On Tue, 2 Apr 2013, Guennadi Liakhovetski wrote: > > > On Tue, 2 Apr 2013, Arnd Bergmann wrote: > > > > > On Tuesday 02 April 2013, Guennadi Liakhovetski wrote: > > > > Currently modular V4L2 build with enabled OF is broken dur to the > > > > of_get_next_parent() function being unavailable to modules. Export it to > > > > fix the build. > > > > > > > > Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> > > > > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> > > > > > > Looks good to me, but shouldn't this be EXPORT_SYMBOL_GPL? > > > > "grep EXPORT_SYMBOL drivers/of/base.c" doesn't give a certain answer, but > > it seems to fit other of_get_* functions pretty well: > > Ping, could this patch be pushed to -next asap, please? Without it the > current V4L2 -next doesn't compile. Also, I think, ro avoid breaking the > mainline, we should try to have this patch pulled in before the media > tree, could that be done? > > Thanks > Guennadi > > > EXPORT_SYMBOL(of_get_parent); > > +EXPORT_SYMBOL(of_get_next_parent); > > EXPORT_SYMBOL(of_get_next_child); > > EXPORT_SYMBOL(of_get_next_available_child); > > EXPORT_SYMBOL(of_get_child_by_name); > > --- > Guennadi Liakhovetski, Ph.D. > Freelance Open-Source Software Developer > http://www.open-technology.de/ > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Cheers, Mauro ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compilation breakage on drivers/media due to OF patches - was: Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 2013-04-17 14:53 ` Compilation breakage on drivers/media due to OF patches - was: " Mauro Carvalho Chehab @ 2013-04-17 15:08 ` Grant Likely 2013-04-17 15:24 ` Mauro Carvalho Chehab 0 siblings, 1 reply; 7+ messages in thread From: Grant Likely @ 2013-04-17 15:08 UTC (permalink / raw) To: Mauro Carvalho Chehab, Rob Herring Cc: Guennadi Liakhovetski, Arnd Bergmann, devicetree-discuss, Linux Media Mailing List, Sylwester Nawrocki On Wed, 17 Apr 2013 11:53:57 -0300, Mauro Carvalho Chehab <mchehab@redhat.com> wrote: > Hi Grant/Rob, > > Our tree is currently _broken_ with OT, because of the lack of > exporting of_get_next_parent. The developer that submitted the patches > that added V4L2 OF support forgot to test to compilation with MODULES > support enabled. > > So, we're now having: > ERROR: "of_get_next_parent" [drivers/media/v4l2-core/videodev.ko] undefined! > > if compiled with OF enabled and media as module. > > As those patches were applied at my master branch and there are lots of > other patches on the top of the patches that added V4L2 OF support, > I prefer to avoid reverting those patches. > > On the other hand, I can't send the patches upstream next week (assuming > that -rc7 is the final one), without having this patch applying before > the media tree. The fix needs to be applied to your tree then. Go ahead and apply it with my ack: Acked-by: Grant Likely <grant.likely@linaro.org> It is no good to apply it to the devicetree -next branch because that will still leave your branch broken, even if device tree gets merged first. g. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Compilation breakage on drivers/media due to OF patches - was: Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 2013-04-17 15:08 ` Grant Likely @ 2013-04-17 15:24 ` Mauro Carvalho Chehab 0 siblings, 0 replies; 7+ messages in thread From: Mauro Carvalho Chehab @ 2013-04-17 15:24 UTC (permalink / raw) To: Grant Likely Cc: Rob Herring, Guennadi Liakhovetski, Arnd Bergmann, devicetree-discuss, Linux Media Mailing List, Sylwester Nawrocki Em Wed, 17 Apr 2013 16:08:43 +0100 Grant Likely <grant.likely@secretlab.ca> escreveu: > On Wed, 17 Apr 2013 11:53:57 -0300, Mauro Carvalho Chehab <mchehab@redhat.com> wrote: > > Hi Grant/Rob, > > > > Our tree is currently _broken_ with OT, because of the lack of > > exporting of_get_next_parent. The developer that submitted the patches > > that added V4L2 OF support forgot to test to compilation with MODULES > > support enabled. > > > > So, we're now having: > > ERROR: "of_get_next_parent" [drivers/media/v4l2-core/videodev.ko] undefined! > > > > if compiled with OF enabled and media as module. > > > > As those patches were applied at my master branch and there are lots of > > other patches on the top of the patches that added V4L2 OF support, > > I prefer to avoid reverting those patches. > > > > On the other hand, I can't send the patches upstream next week (assuming > > that -rc7 is the final one), without having this patch applying before > > the media tree. > > The fix needs to be applied to your tree then. Go ahead and apply it with my ack: > > Acked-by: Grant Likely <grant.likely@linaro.org> Thank you! > It is no good to apply it to the devicetree -next branch because that > will still leave your branch broken, even if device tree gets merged > first. True. Thanks, Mauro ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-04-17 15:24 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-04-02 16:28 [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2 Guennadi Liakhovetski 2013-04-02 16:30 ` Arnd Bergmann 2013-04-02 16:42 ` Guennadi Liakhovetski 2013-04-17 14:07 ` Guennadi Liakhovetski 2013-04-17 14:53 ` Compilation breakage on drivers/media due to OF patches - was: " Mauro Carvalho Chehab 2013-04-17 15:08 ` Grant Likely 2013-04-17 15:24 ` Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).