Skip to contentSkip to conversation

Drivers/media/radio: Fix build error

PATCH In review Tracey Dent 5 participants 5 messages Apr 1, 2012 – Apr 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Drivers/media/radio: Fix build error

radio-maxiradio depends on SND_FM801_TEA575X_BOOL to build or will result in an build error such as:

Kernel: arch/x86/boot/bzImage is ready (#1)
ERROR: "snd_tea575x_init" [drivers/media/radio/radio-maxiradio.ko] undefined!
ERROR: "snd_tea575x_exit" [drivers/media/radio/radio-maxiradio.ko] undefined!
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Select CONFIG_SND_TEA575X to fixes problem and enable the driver to be built as desired.

v2:
instead of selecting CONFIG_SND_FM801_TEA575X_BOOL, select CONFIG_SND_TEA575X, which in turns selects CONFIG_SND_FM801_TEA575X_BOOL and any other dependencies for it to build.

---
 drivers/media/radio/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/media/radio/Kconfig +1 -0
index 8db2d7f..b518ce5 100644
@@ -44,6 +44,7 @@ config USB_DSBR
 config RADIO_MAXIRADIO
 	tristate "Guillemot MAXI Radio FM 2000 radio"
 	depends on VIDEO_V4L2 && PCI && SND
+	select SND_TEA575X
 	---help---
 	  Choose Y here if you have this radio card.  This card may also be
 	  found as Gemtek PCI FM.
Signature · 1 line
1.7.10.rc3.3.g19a6c
#1 lore raw
Quoted 12 lines · On Sunday, April 01, 2012 21:09:34 Tracey Dent wrote:

radio-maxiradio depends on SND_FM801_TEA575X_BOOL to build or will result in an build error such as:

Kernel: arch/x86/boot/bzImage is ready (#1)
ERROR: "snd_tea575x_init" [drivers/media/radio/radio-maxiradio.ko] undefined!
ERROR: "snd_tea575x_exit" [drivers/media/radio/radio-maxiradio.ko] undefined!
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Quoted 7 lines

Select CONFIG_SND_TEA575X to fixes problem and enable the driver to be built as desired.

v2:
instead of selecting CONFIG_SND_FM801_TEA575X_BOOL, select CONFIG_SND_TEA575X, which in turns selects CONFIG_SND_FM801_TEA575X_BOOL and any other dependencies for it to build.

No, this is the correct patch:

sound/pci/Kconfig +2 -2
index 8816804..5ca0939 100644
@@ -2,8 +2,8 @@
 
 config SND_TEA575X
 	tristate
-	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2
-	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2
+	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2 || RADIO_MAXIRADIO
+	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2 || RADIO_MAXIRADIO
 
 menuconfig SND_PCI
 	bool "PCI sound devices"

RADIO_MAXIRADIO should be treated just like RADIO_SF16FMR2, I just didn't realize at the time that it had to be added as a SND_TEA575X dependency.

(Sorry for the late reply, I didn't have access to my cisco email for the last few days).

Regards,

Hans

Quoted 20 lines
---
 drivers/media/radio/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/media/radio/Kconfig +1 -0
index 8db2d7f..b518ce5 100644
@@ -44,6 +44,7 @@ config USB_DSBR
 config RADIO_MAXIRADIO
 	tristate "Guillemot MAXI Radio FM 2000 radio"
 	depends on VIDEO_V4L2 && PCI && SND
+	select SND_TEA575X
 	---help---
 	  Choose Y here if you have this radio card.  This card may also be
 	  found as Gemtek PCI FM.
#2 lore raw
Quoted 13 lines · Hans Verkuil
Quoted 12 lines · On Sunday, April 01, 2012 21:09:34 Tracey Dent wrote:

radio-maxiradio depends on SND_FM801_TEA575X_BOOL to build or will result in an build error such as:

Kernel: arch/x86/boot/bzImage is ready (#1)
ERROR: "snd_tea575x_init" [drivers/media/radio/radio-maxiradio.ko] undefined!
ERROR: "snd_tea575x_exit" [drivers/media/radio/radio-maxiradio.ko] undefined!
WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Quoted 7 lines
Quoted 7 lines

Select CONFIG_SND_TEA575X to fixes problem and enable the driver to be built as desired.

v2:
instead of selecting CONFIG_SND_FM801_TEA575X_BOOL, select CONFIG_SND_TEA575X, which in turns selects CONFIG_SND_FM801_TEA575X_BOOL and any other dependencies for it to build.

Tracey,

'select' does not follow its dependency chain. See Documentation/kbuild/kconfig-language.txt:

Note:
select should be used with care. select will force a symbol to a value without visiting the dependencies. By abusing select you are able to select a symbol FOO even if FOO depends on BAR that is not set.
In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies. That will limit the usefulness but on the other hand avoid the illegal configurations all over.

Quoted 1 line

No, this is the correct patch:

Thanks.

Quoted 49 lines
sound/pci/Kconfig +2 -2
index 8816804..5ca0939 100644
@@ -2,8 +2,8 @@
 
 config SND_TEA575X
 	tristate
-	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2
-	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2
+	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2 || RADIO_MAXIRADIO
+	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2 || RADIO_MAXIRADIO
 
 menuconfig SND_PCI
 	bool "PCI sound devices"

RADIO_MAXIRADIO should be treated just like RADIO_SF16FMR2, I just didn't realize at the time that it had to be added as a SND_TEA575X dependency.

(Sorry for the late reply, I didn't have access to my cisco email for the last few days).

Regards,

Hans

Quoted 13 lines
---
 drivers/media/radio/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/media/radio/Kconfig +0 -0
index 8db2d7f..b518ce5 100644

drivers/media/radio/Kconfig config USB_DSBR · line 50

Quoted 7 lines
drivers/media/radio/Kconfig +1 -0
@@ -44,6 +44,7 @@ config USB_DSBR
 config RADIO_MAXIRADIO
 	tristate "Guillemot MAXI Radio FM 2000 radio"
 	depends on VIDEO_V4L2 && PCI && SND
+	select SND_TEA575X
 	---help---
 	  Choose Y here if you have this radio card.  This card may also be
 	  found as Gemtek PCI FM.

--

Signature · 1 line
~Randy
Tested-by
#3 lore raw
In reply to Hans Verkuil
Quoted 7 lines · Hans Verkuil

No, this is the correct patch:

sound/pci/Kconfig +0 -0
index 8816804..5ca0939 100644

sound/pci/Kconfig line 9

Quoted 10 lines
sound/pci/Kconfig +2 -2
@@ -2,8 +2,8 @@
 
  config SND_TEA575X
  	tristate
-	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2
-	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2
+	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2 || RADIO_MAXIRADIO
+	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2 || RADIO_MAXIRADIO
 
  menuconfig SND_PCI
  	bool "PCI sound devices"

Builds now, thanks.

Cheers,
Shea

#4 lore raw
In reply to Hans Verkuil
Quoted 44 lines · Hans Verkuil
Quoted 5 lines · On Sunday, April 01, 2012 21:09:34 Tracey Dent wrote:

radio-maxiradio depends on SND_FM801_TEA575X_BOOL to build or will result in an build error such as:

Kernel: arch/x86/boot/bzImage is ready (#1)
ERROR: "snd_tea575x_init" [drivers/media/radio/radio-maxiradio.ko]

undefined!

Quoted 1 line

ERROR: "snd_tea575x_exit" [drivers/media/radio/radio-maxiradio.ko]

undefined!

Quoted 6 lines

WARNING: modpost: Found 6 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Quoted 6 lines

Select CONFIG_SND_TEA575X to fixes problem and enable the driver to be built as desired.

v2:
instead of selecting CONFIG_SND_FM801_TEA575X_BOOL, select CONFIG_SND_TEA575X, which in turns selects

CONFIG_SND_FM801_TEA575X_BOOL

Quoted 1 line

and any other dependencies for it to build.

No, this is the correct patch:

sound/pci/Kconfig +0 -0
index 8816804..5ca0939 100644
@@ -2,8 +2,8 @@
 

config SND_TEA575X
tristate

sound/pci/Kconfig +0 -1
-	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO ||

RADIO_SF16FMR2

sound/pci/Kconfig +1 -1
-	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2
+	depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO ||

RADIO_SF16FMR2 || RADIO_MAXIRADIO

sound/pci/Kconfig +1 -0
+	default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2 || RADIO_MAXIRADIO

menuconfig SND_PCI
bool "PCI sound devices"

Quoted 6 lines

RADIO_MAXIRADIO should be treated just like RADIO_SF16FMR2, I just didn't
realize at the time that it had to be added as a SND_TEA575X dependency.

Quoted 17 lines

(Sorry for the late reply, I didn't have access to my cisco email for the last
few days).

Regards,

Hans

Review

Quoted 8 lines
---
 drivers/media/radio/Kconfig |    1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/drivers/media/radio/Kconfig

Quoted 12 lines

drivers/media/radio/Kconfig config USB_DSBR · line 50

Quoted 12 lines

index 8db2d7f..b518ce5 100644

drivers/media/radio/Kconfig +1 -0
@@ -44,6 +44,7 @@ config USB_DSBR
 config RADIO_MAXIRADIO
 	tristate "Guillemot MAXI Radio FM 2000 radio"
 	depends on VIDEO_V4L2 && PCI && SND
+	select SND_TEA575X
 	---help---
 	  Choose Y here if you have this radio card.  This card may also be
 	  found as Gemtek PCI FM.

Cheers,
Mauro
--

Quoted 1 line

From my phone