mfd: simple-mfd-i2c: Fix linker error due to new mfd-core dependency
PATCH 1/1 mfd: simple-mfd-i2c: Fix linker error due to new mfd-core dependency
Select CONFIG_MFD_CORE from CONFIG_MFD_SIMPLE_MFD_I2C, now that simple-mfd-i2c.c calls devm_mfd_add_devices(), to fix the following linker error:
ld: drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1
--- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/mfd/Kconfig +1 -0
@@ -1194,6 +1194,7 @@ config MFD_SI476X_CORE config MFD_SIMPLE_MFD_I2C tristate depends on I2C + select MFD_CORE select REGMAP_I2C help This driver creates a single register map with the intention for it
Signature · 1 line
2.25.1
Quoted 11 lines · Tyler Hicks
Select
CONFIG_MFD_COREfromCONFIG_MFD_SIMPLE_MFD_I2C, now thatsimple-mfd-i2c.ccallsdevm_mfd_add_devices(), to fix the following linker error:ld:
drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1Fixes c753ea31781a ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")Cc [email protected] # 5.15.xSigned-off-by Tyler Hicks <[email protected]>
Alistair
Quoted 20 lines
---
drivers/mfd/Kconfig| 1 +1 file changed, 1 insertion(+)drivers/mfd/Kconfig +0
-0@@ -1194,6 +1194,7 @@ config MFD_SI476X_COREconfig
MFD_SIMPLE_MFD_I2C
tristate
depends on I2C
+ selectMFD_CORE
selectREGMAP_I2C
help
This driver creates a single register map with the intention for itSignature · 1 line
2.25.1
Quoted 8 lines · Tyler Hicks
Select
CONFIG_MFD_COREfromCONFIG_MFD_SIMPLE_MFD_I2C, now thatsimple-mfd-i2c.ccallsdevm_mfd_add_devices(), to fix the following linker error:ld:
drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1
Quoted 6 lines
Fixes c753ea31781a ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")Cc [email protected] # 5.15.xSigned-off-by Tyler Hicks <[email protected]>--- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)
Looks like the same change that has already been applied.
Could you rebase on top of the MFD tree please?
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 17 lines · Lee Jones
Quoted 8 lines · Tyler Hicks
Select
CONFIG_MFD_COREfromCONFIG_MFD_SIMPLE_MFD_I2C, now thatsimple-mfd-i2c.ccallsdevm_mfd_add_devices(), to fix the following linker error:ld:
drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1Quoted 6 lines
Fixes c753ea31781a ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")Cc [email protected] # 5.15.xSigned-off-by Tyler Hicks <[email protected]>--- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)
Quoted 3 lines
Looks like the same change that has already been applied.
Could you rebase on top of the MFD tree please?
Ah, that commit wasn't in for-mfd-next when I wrote up this patch yesterday.
I think that the Fixes line in that patch is wrong as I didn't see this issue in 5.10 and reverting c753ea31781a fixes the build failure.
Tyler
Quoted 7 lines
Signature · 5 lines
-- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 21 lines · Tyler Hicks
Quoted 19 lines · Lee Jones
Quoted 8 lines · Tyler Hicks
Select
CONFIG_MFD_COREfromCONFIG_MFD_SIMPLE_MFD_I2C, now thatsimple-mfd-i2c.ccallsdevm_mfd_add_devices(), to fix the following linker error:ld:
drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1Quoted 6 lines
Fixes c753ea31781a ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")Cc [email protected] # 5.15.xSigned-off-by Tyler Hicks <[email protected]>--- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)Looks like the same change that has already been applied.
Quoted 7 lines
Quoted 1 line
Could you rebase on top of the MFD tree please?
Ah, that commit wasn't in for-mfd-next when I wrote up this patch yesterday.
I think that the Fixes line in that patch is wrong as I didn't see this issue in 5.10 and reverting
c753ea31781afixes the build failure.
Hi Tyler, I would agree with you on the fixes tag. I messed that one up, c753ea31781a is the correct one.
Regards,
Robert
Quoted 10 lines
Tyler
Quoted 7 lines
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer ServicesLinaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Signature · 7 lines
Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: [email protected] Web: www.sartura.hr
Quoted 24 lines · Robert Marko
Quoted 23 lines · Tyler Hicks
Quoted 20 lines · Lee Jones
Quoted 8 lines · Tyler Hicks
Select
CONFIG_MFD_COREfromCONFIG_MFD_SIMPLE_MFD_I2C, now thatsimple-mfd-i2c.ccallsdevm_mfd_add_devices(), to fix the following linker error:ld:
drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1Quoted 6 lines
Fixes c753ea31781a ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")Cc [email protected] # 5.15.xSigned-off-by Tyler Hicks <[email protected]>--- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)Looks like the same change that has already been applied.
Could you rebase on top of the MFD tree please?
Quoted 8 lines
Quoted 5 lines
Ah, that commit wasn't in for-mfd-next when I wrote up this patch yesterday.
I think that the Fixes line in that patch is wrong as I didn't see this issue in 5.10 and reverting
c753ea31781afixes the build failure.Hi Tyler, I would agree with you on the fixes tag. I messed that one up,
c753ea31781ais the correct one.
All good. I fixed it for you.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 30 lines · Lee Jones
Quoted 27 lines · Robert Marko
Quoted 26 lines · Tyler Hicks
Quoted 17 lines · Lee Jones
Quoted 8 lines · Tyler Hicks
Select
CONFIG_MFD_COREfromCONFIG_MFD_SIMPLE_MFD_I2C, now thatsimple-mfd-i2c.ccallsdevm_mfd_add_devices(), to fix the following linker error:ld:
drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1Quoted 6 lines
Fixes c753ea31781a ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")Cc [email protected] # 5.15.xSigned-off-by Tyler Hicks <[email protected]>--- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)Quoted 3 lines
Looks like the same change that has already been applied.
Could you rebase on top of the MFD tree please?
Ah, that commit wasn't in for-mfd-next when I wrote up this patch yesterday.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
I think that the Fixes line in that patch is wrong as I didn't see this issue in 5.10 and reverting
c753ea31781afixes the build failure.Hi Tyler, I would agree with you on the fixes tag. I messed that one up,
c753ea31781ais the correct one.All good. I fixed it for you.
Thanks, sorry for the mess up.
Regards,
Robert
Quoted 6 lines
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer ServicesLinaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Signature · 7 lines
Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: [email protected] Web: www.sartura.hr
Quoted 24 lines · Robert Marko
Quoted 23 lines · Tyler Hicks
Quoted 20 lines · Lee Jones
Quoted 8 lines · Tyler Hicks
Select
CONFIG_MFD_COREfromCONFIG_MFD_SIMPLE_MFD_I2C, now thatsimple-mfd-i2c.ccallsdevm_mfd_add_devices(), to fix the following linker error:ld:
drivers/mfd/simple-mfd-i2c.o: in function `simple_mfd_i2c_probe':
simple-mfd-i2c.c:(.text+0x62): undefined reference to `devm_mfd_add_devices'
make: *** [Makefile:1187: vmlinux] Error 1Quoted 6 lines
Fixes c753ea31781a ("mfd: simple-mfd-i2c: Add support for registering devices via MFD cells")Cc [email protected] # 5.15.xSigned-off-by Tyler Hicks <[email protected]>--- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+)Looks like the same change that has already been applied.
Could you rebase on top of the MFD tree please?
Quoted 8 lines
Quoted 5 lines
Ah, that commit wasn't in for-mfd-next when I wrote up this patch yesterday.
I think that the Fixes line in that patch is wrong as I didn't see this issue in 5.10 and reverting
c753ea31781afixes the build failure.Hi Tyler, I would agree with you on the fixes tag. I messed that one up,
c753ea31781ais the correct one.
It is probably better to overshoot than undershoot with Fixes tags. :)
Lee, I don't know if you rebase that branch (I doubt it) but if you do to fix up the Fixes tag, please also add an explicit Cc: stable tag since this affects the new LTS release.
Tyler
Quoted 25 lines
Regards,
RobertQuoted 10 lines
Tyler
Quoted 7 lines
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer ServicesLinaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | BlogSignature · 7 lines
Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: [email protected] Web: www.sartura.hr