linux-next: build failure after merge of the v4l-dvb tree
Subsystems (3)
Hi all,
After merging the v4l-dvb tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
ERROR: modpost: "fwnode_get_name" [drivers/media/v4l2-core/v4l2-fwnode.ko] undefined!
Caused by commit
dfc22c073b78 ("media: v4l2-fwnode: add initial connector parsing support")
I have used the v4l-dvb tree from next-20200312 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the v4l-dvb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
Quoted 7 lines
ERROR: modpost: "
fwnode_get_name" [drivers/media/v4l2-core/v4l2-fwnode.ko] undefined!Caused by commit
dfc22c073b78("media: v4l2-fwnode: add initial connector parsing support")I have used the v4l-dvb tree from next-20200312 for today.
I'm sorry for that. I put my branch on our 0day to test most of the compile configs. Obviously this casae wasn't covered..
@Sakari
I will send a patch to fix this by adding:EXPORT_SYMBOL_GPL(fwnode_get_name).
Regards,
Marco
Mauro Carvalho Chehab
Acked-by Rafael J. WysockiEm Fri, 13 Mar 2020 07:48:07 +0100
Marco Felsch <[email protected]> escreveu:
Quoted 14 lines
Hi Stephen,
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the v4l-dvb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:ERROR: modpost: "
fwnode_get_name" [drivers/media/v4l2-core/v4l2-fwnode.ko] undefined!Caused by commit
dfc22c073b78("media: v4l2-fwnode: add initial connector parsing support")
Quoted 8 lines
Quoted 1 line
I have used the v4l-dvb tree from next-20200312 for today.
I'm sorry for that. I put my branch on our 0day to test most of the compile configs. Obviously this casae wasn't covered..
@Sakari
I will send a patch to fix this by adding:EXPORT_SYMBOL_GPL(fwnode_get_name).
There is already such patch at next-20200312:
$ git show a7914d1072fb8ddeb2ec87bba1d28812483a3565 commit a7914d1072fb8ddeb2ec87bba1d28812483a3565 Author: Heikki Krogerus <[email protected]> Date: Mon Mar 2 16:53:51 2020 +0300
device property: Export fwnode_get_name()
This makes it possible to take advantage of the function in the device drivers.
drivers/base/property.c +1 -0
@@ -566,6 +566,7 @@ const char *fwnode_get_name(const struct fwnode_handle *fwnode) {return fwnode_call_ptr_op (fwnode, get_name); } +EXPORT_SYMBOL_GPL (fwnode_get_name);/** * fwnode_get_name_prefix - Return the prefix of node for printing purposes
Thanks,
Mauro
Quoted 19 lines · Mauro Carvalho Chehab
Em Fri, 13 Mar 2020 07:48:07 +0100
Marco Felsch <[email protected]> escreveu:Quoted 16 lines
Hi Stephen,
Quoted 12 lines · Stephen Rothwell
Hi all,
After merging the v4l-dvb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:ERROR: modpost: "
fwnode_get_name" [drivers/media/v4l2-core/v4l2-fwnode.ko] undefined!Caused by commit
dfc22c073b78("media: v4l2-fwnode: add initial connector parsing support")I have used the v4l-dvb tree from next-20200312 for today.
Quoted 8 lines
Quoted 6 lines
I'm sorry for that. I put my branch on our 0day to test most of the compile configs. Obviously this casae wasn't covered..
@Sakari
I will send a patch to fix this by adding:EXPORT_SYMBOL_GPL(fwnode_get_name).There is already such patch at next-20200312:
You're right. This answers my question why I got no build errors..
Regards,
Marco
Quoted 33 lines
$ git show a7914d1072fb8ddeb2ec87bba1d28812483a3565 commit a7914d1072fb8ddeb2ec87bba1d28812483a3565 Author: Heikki Krogerus <[email protected]> Date: Mon Mar 2 16:53:51 2020 +0300device property: Export
fwnode_get_name()This makes it possible to take advantage of the function in the device drivers.
Signed-off-by Heikki Krogerus <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>drivers/base/property.c +1
-0@@ -566,6 +566,7 @@ const char *fwnode_get_name(const struct fwnode_handle *fwnode) {return fwnode_call_ptr_op (fwnode, get_name); } +EXPORT_SYMBOL_GPL (fwnode_get_name);/** * fwnode_get_name_prefix - Return the prefix of node for printing purposes Thanks,
Mauro
Em Fri, 13 Mar 2020 13:19:03 +1100
Stephen Rothwell <[email protected]> escreveu:
Quoted 5 lines
Hi all,
After merging the v4l-dvb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
Quoted 7 lines
ERROR: modpost: "
fwnode_get_name" [drivers/media/v4l2-core/v4l2-fwnode.ko] undefined!Caused by commit
dfc22c073b78("media: v4l2-fwnode: add initial connector parsing support")I have used the v4l-dvb tree from next-20200312 for today.
Hmm... I double-checked at next-20200312. This function is defined at linux/property.h header:
include/linux/property.h:const char *fwnode_get_name(const struct fwnode_handle *fwnode);
Its implementation is at drivers/base/property.c, and this is always built, according with drivers/base/Makefile:
obj-y := component.o core.o bus.o dd.o syscore.o \ driver.o class.o platform.o \ cpu.o firmware.o init.o map.o devres.o \ attribute_container.o transport_class.o \ topology.o container.o property.o cacheinfo.o \ devcon.o swnode.o
The v4l2-fwnode.c properly includes include/linux/property.h.
So, at least up to next-20200312, everything looks fine on my eyes.
The header is probably there, as the error happened at link stage.
Maybe there is some merge conflict caused by merging a patch from some other tree that might have renamed or removed its implementation after next-20200312, or changed from obj-y target?
Or maybe this changeset got reverted?
a7914d1072fb ("device property: Export fwnode_get_name()")Thanks,
Mauro
Hi Mauro,
Quoted 36 lines · On Fri, 13 Mar 2020 08:07:35 +0100 Mauro Carvalho Chehab <[email protected]>…
Em Fri, 13 Mar 2020 13:19:03 +1100
Stephen Rothwell <[email protected]> escreveu:Quoted 10 lines
After merging the v4l-dvb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:ERROR: modpost: "
fwnode_get_name" [drivers/media/v4l2-core/v4l2-fwnode.ko] undefined!Caused by commit
dfc22c073b78("media: v4l2-fwnode: add initial connector parsing support")I have used the v4l-dvb tree from next-20200312 for today.
Hmm... I double-checked at next-20200312. This function is defined at
linux/property.hheader:include/linux/property.h:const char *fwnode_get_name(const struct fwnode_handle *fwnode);Its implementation is at
drivers/base/property.c, and this is always built, according withdrivers/base/Makefile:obj-y := component.o core.o bus.o dd.o syscore.o \ driver.o class.o platform.o \ cpu.o firmware.o init.o map.o devres.o \ attribute_container.o transport_class.o \ topology.o container.o property.o cacheinfo.o \ devcon.o swnode.oThe
v4l2-fwnode.cproperly includesinclude/linux/property.h.So, at least up to next-20200312, everything looks fine on my eyes.
The header is probably there, as the error happened at link stage.
Quoted 7 lines
Maybe there is some merge conflict caused by merging a patch from some other tree that might have renamed or removed its implementation after next-20200312, or changed from obj-y target?
Or maybe this changeset got reverted?
a7914d1072fb ("device property: Export fwnode_get_name()")
Unfortunately, that commit is in the usb tree which I merge much later than the v4l-dvb tree. You should not develop against linux-next, and you should test your tree standalone as you do not know in which order the trees will be merged by Linus (or me). The solutions here include cherry-picking the commit into the v4l-dvb tree (since it is such a simple commit and should not cause any complex conflicts) or merge part of the usb tree into the v4l-dvb tree (which is possible since Greg never rebases his tree).
Signature · 2 lines
Cheers, Stephen Rothwell
Em Fri, 13 Mar 2020 08:07:35 +0100
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 20 lines
Em Fri, 13 Mar 2020 13:19:03 +1100
Stephen Rothwell <[email protected]> escreveu:Quoted 5 lines
Hi all,
After merging the v4l-dvb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:Quoted 7 lines
ERROR: modpost: "
fwnode_get_name" [drivers/media/v4l2-core/v4l2-fwnode.ko] undefined!Caused by commit
dfc22c073b78("media: v4l2-fwnode: add initial connector parsing support")I have used the v4l-dvb tree from next-20200312 for today.
Hmm... I double-checked at next-20200312. This function is defined at
linux/property.hheader:include/linux/property.h:const char *fwnode_get_name(const struct fwnode_handle *fwnode);
...
Quoted 11 lines
So, at least up to next-20200312, everything looks fine on my eyes.
The header is probably there, as the error happened at link stage.
Maybe there is some merge conflict caused by merging a patch from some other tree that might have renamed or removed its implementation after next-20200312, or changed from obj-y target?
Or maybe this changeset got reverted?
a7914d1072fb ("device property: Export fwnode_get_name()")
I ended by cherry-picking this patch, applying it today on my tree.
Hopefully, this would avoid build problems and won't cause non-trivial merge conflicts.
Thanks,
Mauro