ld.lld: error: undefined symbol: iosf_mbi_available
Subsystems (4)
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3e7819886281e077e82006fe4804b0d6b0f5643b commit: 8d4ba1be3d2257606e04aff412829d8972670750 ASoC: SOF: pci: split PCI into different drivers date: 3 years, 4 months ago config: i386-buildonly-randconfig-004-20240716 (https://download.01.org/0day-ci/archive/20240716/[email protected]/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240716/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: iosf_mbi_available >>> referenced by byt.c >>> soc/sof/intel/byt.o:(byt_machine_select) in archive sound/built-in.a -- >> ld.lld: error: undefined symbol: iosf_mbi_read >>> referenced by byt.c >>> soc/sof/intel/byt.o:(byt_machine_select) in archive sound/built-in.a
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 4 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3e7819886281e077e82006fe4804b0d6b0f5643b commit: 8d4ba1be3d2257606e04aff412829d8972670750 ASoC: SOF: pci: split PCI into different drivers date: 3 years, 4 months ago
This doesn't seem to be a problem on the latest code? was it intentional to report a problem on such an old commit?
Quoted 19 lines
config: i386-buildonly-randconfig-004-20240716 (https://download.01.org/0day-ci/archive/20240716/[email protected]/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240716/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 3 lines
Quoted 3 lines
ld.lld: error: undefined symbol:
iosf_mbi_availableQuoted 2 lines
referenced by
byt.c
soc/sof/intel/byt.o:(byt_machine_select) in archivesound/built-in.a--
Quoted 3 lines
Quoted 3 lines
ld.lld: error: undefined symbol:
iosf_mbi_readQuoted 2 lines
referenced by
byt.c
soc/sof/intel/byt.o:(byt_machine_select) in archivesound/built-in.a
Quoted 10 lines · Pierre-Louis Bossart
Quoted 4 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3e7819886281e077e82006fe4804b0d6b0f5643b commit: 8d4ba1be3d2257606e04aff412829d8972670750 ASoC: SOF: pci: split PCI into different drivers date: 3 years, 4 months agoThis doesn't seem to be a problem on the latest code? was it intentional to report a problem on such an old commit?
It's still reproducible at commit 8b0f0bb27c32 ("Merge tag 'fs_for_v6.11-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs") for me, using either LLVM or GCC with the configuration linked below:
ld.lld: error: undefined symbol: iosf_mbi_available
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.a
ld.lld: error: undefined symbol: iosf_mbi_read
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.a
.../gcc/14.1.0/bin/i386-linux-ld: sound/soc/sof/intel/atom.o: in function `atom_machine_select':
atom.c:(.text+0x1b9): undefined reference to iosf_mbi_available' .../gcc/14.1.0/bin/i386-linux-ld: atom.c:(.text+0x1e3): undefined reference to iosf_mbi_read'
Cheers,
Nathan
Quoted 20 lines
Quoted 19 lines
config: i386-buildonly-randconfig-004-20240716 (https://download.01.org/0day-ci/archive/20240716/[email protected]/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240716/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 3 lines
Quoted 3 lines
ld.lld: error: undefined symbol:
iosf_mbi_availableQuoted 2 lines
referenced by
byt.c
soc/sof/intel/byt.o:(byt_machine_select) in archivesound/built-in.a--
Quoted 3 lines
Quoted 3 lines
ld.lld: error: undefined symbol:
iosf_mbi_readQuoted 2 lines
referenced by
byt.c
soc/sof/intel/byt.o:(byt_machine_select) in archivesound/built-in.a
Quoted 22 lines · Nathan Chancellor
Quoted 10 lines · Pierre-Louis Bossart
Quoted 4 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3e7819886281e077e82006fe4804b0d6b0f5643b commit: 8d4ba1be3d2257606e04aff412829d8972670750 ASoC: SOF: pci: split PCI into different drivers date: 3 years, 4 months agoThis doesn't seem to be a problem on the latest code? was it intentional to report a problem on such an old commit?
It's still reproducible at commit
8b0f0bb27c32("Merge tag 'fs_for_v6.11-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs") for me, using either LLVM or GCC with the configuration linked below:ld.lld: error: undefined symbol:
iosf_mbi_availableQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.a
Quoted 7 lines
ld.lld: error: undefined symbol:
iosf_mbi_readQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.a.../gcc/14.1.0/bin/i386-linux-ld:
sound/soc/sof/intel/atom.o: in function `atom_machine_select':
atom.c:(.text+0x1b9): undefined reference toiosf_mbi_available' .../gcc/14.1.0/bin/i386-linux-ld: atom.c:(.text+0x1e3): undefined reference toiosf_mbi_read'
Yours looks different from the original report, and indeed this must be a missing fix.
Does the following change cover it?
thanks,
Takashi
sound/soc/sof/intel/Kconfig +1 -1
@@ -19,6 +19,7 @@ config SND_SOC_SOF_INTEL_ATOM_HIFI_EP tristate select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_HIFI_EP_IPC + select IOSF_MBI if X86 && PCI help This option is not user-selectable but automagically handled by 'select' statements at a higher level.
@@ -44,7 +45,6 @@ config SND_SOC_SOF_BAYTRAIL select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_ATOM_HIFI_EP select SND_SOC_SOF_ACPI_DEV - select IOSF_MBI if X86 && PCI help This adds support for Sound Open Firmware for Intel(R) platforms using the Baytrail, Braswell or Cherrytrail processors.
Quoted 12 lines · Takashi Iwai
Quoted 10 lines · Nathan Chancellor
Quoted 8 lines · Pierre-Louis Bossart
Quoted 4 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3e7819886281e077e82006fe4804b0d6b0f5643b commit: 8d4ba1be3d2257606e04aff412829d8972670750 ASoC: SOF: pci: split PCI into different drivers date: 3 years, 4 months ago
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
This doesn't seem to be a problem on the latest code? was it intentional to report a problem on such an old commit?
It's still reproducible at commit
8b0f0bb27c32("Merge tag 'fs_for_v6.11-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs") for me, using either LLVM or GCC with the configuration linked below:
I can't compile this branch - errors in unrelated parts of the code, but indeed there's a problem when IOSF_MBI=y and Baytrail is not selected.
Quoted 33 lines
Quoted 11 lines
ld.lld: error: undefined symbol:
iosf_mbi_availableQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.ald.lld: error: undefined symbol:
iosf_mbi_readQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.a.../gcc/14.1.0/bin/i386-linux-ld:
sound/soc/sof/intel/atom.o: in function `atom_machine_select':
atom.c:(.text+0x1b9): undefined reference toiosf_mbi_available' .../gcc/14.1.0/bin/i386-linux-ld: atom.c:(.text+0x1e3): undefined reference toiosf_mbi_read'Yours looks different from the original report, and indeed this must be a missing fix.
Does the following change cover it?
thanks,
Takashi
sound/soc/sof/intel/Kconfig +1
-0@@ -19,6 +19,7 @@ config SND_SOC_SOF_INTEL_ATOM_HIFI_EP tristate select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_HIFI_EP_IPC + select IOSF_MBI if X86 && PCI help This option is not user-selectable but automagically handled by 'select' statements at a higher level.
sound/soc/sof/intel/Kconfig config SND_SOC_SOF_BAYTRAIL · line 50
Quoted 7 lines
sound/soc/sof/intel/Kconfig +0
-1@@ -44,7 +45,6 @@ config SND_SOC_SOF_BAYTRAIL select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_ATOM_HIFI_EP select SND_SOC_SOF_ACPI_DEV - select IOSF_MBI if X86 && PCI help This adds support for Sound Open Firmware for Intel(R) platforms using the Baytrail, Braswell or Cherrytrail processors.
I don't think it's the 'right' fix Takashi.
The problem is that we end-up using the iosf_mbi_read() routine by including the soc-intel-quirks.h header file blindly for all X66 platforms - even when Baytrail is not used.
Adding IOSF support for Tangiger doesn't seem right to me, it's not a real dependency.
We can be more restrictive and only use the helper for Baytrail, and use a fallback if Baytrail is not used.
(quoted diff) +0 -0
b/sound/soc/intel/common/soc-intel-quirks.h
index de4e550c5b34..ae67853f7e2e 100644
sound/soc/intel/common/soc-intel-quirks.h +3 -1
@@ -11,7 +11,9 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_ENABLED (CONFIG_X86 ) && \ + (IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL ) || \ +IS_ENABLED (CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI ))#include <linux/dmi.h> #include <asm/iosf_mbi.h>
Quoted 97 lines · Pierre-Louis Bossart
Quoted 12 lines · Takashi Iwai
Quoted 10 lines · Nathan Chancellor
Quoted 8 lines · Pierre-Louis Bossart
Quoted 4 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3e7819886281e077e82006fe4804b0d6b0f5643b commit: 8d4ba1be3d2257606e04aff412829d8972670750 ASoC: SOF: pci: split PCI into different drivers date: 3 years, 4 months agoQuoted 7 lines
Quoted 7 lines
Quoted 2 lines
This doesn't seem to be a problem on the latest code? was it intentional to report a problem on such an old commit?
It's still reproducible at commit
8b0f0bb27c32("Merge tag 'fs_for_v6.11-rc1' ofgit://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs") for me, using either LLVM or GCC with the configuration linked below:I can't compile this branch - errors in unrelated parts of the code, but indeed there's a problem when IOSF_MBI=y and Baytrail is not selected.
Quoted 33 lines
Quoted 11 lines
ld.lld: error: undefined symbol:
iosf_mbi_availableQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.ald.lld: error: undefined symbol:
iosf_mbi_readQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by
atom.c
sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.a.../gcc/14.1.0/bin/i386-linux-ld:
sound/soc/sof/intel/atom.o: in function `atom_machine_select':
atom.c:(.text+0x1b9): undefined reference toiosf_mbi_available' .../gcc/14.1.0/bin/i386-linux-ld: atom.c:(.text+0x1e3): undefined reference toiosf_mbi_read'Yours looks different from the original report, and indeed this must be a missing fix.
Does the following change cover it?
thanks,
Takashi
sound/soc/sof/intel/Kconfig +1
-0@@ -19,6 +19,7 @@ config SND_SOC_SOF_INTEL_ATOM_HIFI_EP tristate select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_HIFI_EP_IPC + select IOSF_MBI if X86 && PCI help This option is not user-selectable but automagically handled by 'select' statements at a higher level.sound/soc/sof/intel/Kconfig config SND_SOC_SOF_BAYTRAIL · line 50
Quoted 7 lines
sound/soc/sof/intel/Kconfig +0
-1@@ -44,7 +45,6 @@ config SND_SOC_SOF_BAYTRAIL select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_ATOM_HIFI_EP select SND_SOC_SOF_ACPI_DEV - select IOSF_MBI if X86 && PCI help This adds support for Sound Open Firmware for Intel(R) platforms using the Baytrail, Braswell or Cherrytrail processors.I don't think it's the 'right' fix Takashi.
The problem is that we end-up using the
iosf_mbi_read()routine by including thesoc-intel-quirks.hheader file blindly for all X66 platforms - even when Baytrail is not used.Adding IOSF support for Tangiger doesn't seem right to me, it's not a real dependency.
We can be more restrictive and only use the helper for Baytrail, and use a fallback if Baytrail is not used.
sound/soc/intel/common/soc-intel-quirks.h +3
-1@@ -11,7 +11,9 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_ENABLED (CONFIG_X86 ) && \ + (IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL ) || \ +IS_ENABLED (CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI ))#include <linux/dmi.h> #include <asm/iosf_mbi.h>
Quoted 1 line
I'm afraid it's not enough, either. It's included in sound/soc/sof/intel/atom.c, and this one can be built-in by selected from others while CONFIG_SND_SOC_SOF_BAYTRAIL=m. And, the reverse selection is done from CONFIG_SND_SOC_SOF_BAYTRAIL -- so CONFIG_IOSF_MBI can be m as well, and this can lead to the unresolved symbol from the built-in atom.c.
Takashi
Quoted 50 lines
Quoted 50 lines
Quoted 13 lines
sound/soc/sof/intel/Kconfig +1
-0@@ -19,6 +19,7 @@ config SND_SOC_SOF_INTEL_ATOM_HIFI_EP tristate select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_HIFI_EP_IPC + select IOSF_MBI if X86 && PCI help This option is not user-selectable but automagically handled by 'select' statements at a higher level.sound/soc/sof/intel/Kconfig config SND_SOC_SOF_BAYTRAIL · line 50
Quoted 7 lines
sound/soc/sof/intel/Kconfig +0
-1@@ -44,7 +45,6 @@ config SND_SOC_SOF_BAYTRAIL select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_ATOM_HIFI_EP select SND_SOC_SOF_ACPI_DEV - select IOSF_MBI if X86 && PCI help This adds support for Sound Open Firmware for Intel(R) platforms using the Baytrail, Braswell or Cherrytrail processors.I don't think it's the 'right' fix Takashi.
The problem is that we end-up using the
iosf_mbi_read()routine by including thesoc-intel-quirks.hheader file blindly for all X66 platforms - even when Baytrail is not used.Adding IOSF support for Tangiger doesn't seem right to me, it's not a real dependency.
We can be more restrictive and only use the helper for Baytrail, and use a fallback if Baytrail is not used.
sound/soc/intel/common/soc-intel-quirks.h +3
-1@@ -11,7 +11,9 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_ENABLED (CONFIG_X86 ) && \ + (IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL ) || \ +IS_ENABLED (CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI ))#include <linux/dmi.h> #include <asm/iosf_mbi.h>
Quoted 8 lines
Quoted 1 line
I'm afraid it's not enough, either. It's included in
sound/soc/sof/intel/atom.c, and this one can be built-in by selected from others whileCONFIG_SND_SOC_SOF_BAYTRAIL=m. And, the reverse selection is done fromCONFIG_SND_SOC_SOF_BAYTRAIL-- soCONFIG_IOSF_MBIcan be m as well, and this can lead to the unresolved symbol from the built-inatom.c.
Fair point, I was only looking at the reported failure where Baytrail was completely disabled.
I am not sure though if it makes sense to split hair in N dimensions. Building Merrifield as y and Baytrail as m is a corner case that shouldn't exist at all. And it's only an academic compilation issue, in practice using 'y' would fail at run-time due to the usual firmware load dependencies...
Quoted 60 lines · Pierre-Louis Bossart
Quoted 51 lines
Quoted 51 lines
Quoted 14 lines
sound/soc/sof/intel/Kconfig +1
-0@@ -19,6 +19,7 @@ config SND_SOC_SOF_INTEL_ATOM_HIFI_EP tristate select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_HIFI_EP_IPC + select IOSF_MBI if X86 && PCI help This option is not user-selectable but automagically handled by 'select' statements at a higher level.sound/soc/sof/intel/Kconfig config SND_SOC_SOF_BAYTRAIL · line 50
Quoted 7 lines
sound/soc/sof/intel/Kconfig +0
-1@@ -44,7 +45,6 @@ config SND_SOC_SOF_BAYTRAIL select SND_SOC_SOF_INTEL_COMMON select SND_SOC_SOF_INTEL_ATOM_HIFI_EP select SND_SOC_SOF_ACPI_DEV - select IOSF_MBI if X86 && PCI help This adds support for Sound Open Firmware for Intel(R) platforms using the Baytrail, Braswell or Cherrytrail processors.I don't think it's the 'right' fix Takashi.
The problem is that we end-up using the
iosf_mbi_read()routine by including thesoc-intel-quirks.hheader file blindly for all X66 platforms - even when Baytrail is not used.Adding IOSF support for Tangiger doesn't seem right to me, it's not a real dependency.
We can be more restrictive and only use the helper for Baytrail, and use a fallback if Baytrail is not used.
sound/soc/intel/common/soc-intel-quirks.h +3
-1@@ -11,7 +11,9 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_ENABLED (CONFIG_X86 ) && \ + (IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL ) || \ +IS_ENABLED (CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI ))#include <linux/dmi.h> #include <asm/iosf_mbi.h> Quoted 8 lines
Quoted 1 line
I'm afraid it's not enough, either. It's included in
sound/soc/sof/intel/atom.c, and this one can be built-in by selected from others whileCONFIG_SND_SOC_SOF_BAYTRAIL=m. And, the reverse selection is done fromCONFIG_SND_SOC_SOF_BAYTRAIL-- soCONFIG_IOSF_MBIcan be m as well, and this can lead to the unresolved symbol from the built-inatom.c.
Quoted 8 lines
Fair point, I was only looking at the reported failure where Baytrail was completely disabled.
I am not sure though if it makes sense to split hair in N dimensions. Building Merrifield as y and Baytrail as m is a corner case that shouldn't exist at all. And it's only an academic compilation issue, in practice using 'y' would fail at run-time due to the usual firmware load dependencies...
Surely this kind of bug won't hit anyone in practical use, but it's only about the randconfig failures. The original report is in the same category, after all.
Maybe another (rather easier) workaround would be to use IS_REACHABLE(), something like below. This should fix the original issue and the potential mess-up of kconfig dependencies.
Takashi
sound/soc/intel/common/soc-intel-quirks.h +1 -1
@@ -11,7 +11,7 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_REACHABLE (CONFIG_IOSF_MBI )#include <linux/dmi.h> #include <asm/iosf_mbi.h>
Quoted 36 lines
Quoted 27 lines
Quoted 18 lines
Quoted 18 lines
sound/soc/intel/common/soc-intel-quirks.h +3
-1@@ -11,7 +11,9 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_ENABLED (CONFIG_X86 ) && \ + (IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL ) || \ +IS_ENABLED (CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI ))#include <linux/dmi.h> #include <asm/iosf_mbi.h> Quoted 8 lines
Quoted 1 line
I'm afraid it's not enough, either. It's included in
sound/soc/sof/intel/atom.c, and this one can be built-in by selected from others whileCONFIG_SND_SOC_SOF_BAYTRAIL=m. And, the reverse selection is done fromCONFIG_SND_SOC_SOF_BAYTRAIL-- soCONFIG_IOSF_MBIcan be m as well, and this can lead to the unresolved symbol from the built-inatom.c.Quoted 8 lines
Fair point, I was only looking at the reported failure where Baytrail was completely disabled.
I am not sure though if it makes sense to split hair in N dimensions. Building Merrifield as y and Baytrail as m is a corner case that shouldn't exist at all. And it's only an academic compilation issue, in practice using 'y' would fail at run-time due to the usual firmware load dependencies...
Quoted 7 lines
Surely this kind of bug won't hit anyone in practical use, but it's only about the randconfig failures. The original report is in the same category, after all.
Maybe another (rather easier) workaround would be to use
IS_REACHABLE(), something like below. This should fix the original issue and the potential mess-up of kconfig dependencies.
The simplest solution works for me :-)
Do you want me to send a patch with your Suggested-by: tag or do it yourself?
Quoted 11 lines
sound/soc/intel/common/soc-intel-quirks.h +1
-1@@ -11,7 +11,7 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_REACHABLE (CONFIG_IOSF_MBI )#include <linux/dmi.h> #include <asm/iosf_mbi.h>
Quoted 41 lines · Pierre-Louis Bossart
Quoted 41 lines
Quoted 28 lines
Quoted 19 lines
Quoted 19 lines
sound/soc/intel/common/soc-intel-quirks.h +3
-1@@ -11,7 +11,9 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_ENABLED (CONFIG_X86 ) && \ + (IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL ) || \ +IS_ENABLED (CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI ))#include <linux/dmi.h> #include <asm/iosf_mbi.h> Quoted 8 lines
Quoted 1 line
I'm afraid it's not enough, either. It's included in
sound/soc/sof/intel/atom.c, and this one can be built-in by selected from others whileCONFIG_SND_SOC_SOF_BAYTRAIL=m. And, the reverse selection is done fromCONFIG_SND_SOC_SOF_BAYTRAIL-- soCONFIG_IOSF_MBIcan be m as well, and this can lead to the unresolved symbol from the built-inatom.c.Quoted 8 lines
Fair point, I was only looking at the reported failure where Baytrail was completely disabled.
I am not sure though if it makes sense to split hair in N dimensions. Building Merrifield as y and Baytrail as m is a corner case that shouldn't exist at all. And it's only an academic compilation issue, in practice using 'y' would fail at run-time due to the usual firmware load dependencies...
Surely this kind of bug won't hit anyone in practical use, but it's only about the randconfig failures. The original report is in the same category, after all.
Quoted 8 lines
Quoted 3 lines
Maybe another (rather easier) workaround would be to use
IS_REACHABLE(), something like below. This should fix the original issue and the potential mess-up of kconfig dependencies.The simplest solution works for me :-)
Do you want me to send a patch with your Suggested-by: tag or do it yourself?
If you can send from your side, it'd be more appreciated ;)
thanks,
Takashi
Quoted 12 lines
Quoted 12 lines
sound/soc/intel/common/soc-intel-quirks.h +1
-1@@ -11,7 +11,7 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_REACHABLE (CONFIG_IOSF_MBI )#include <linux/dmi.h> #include <asm/iosf_mbi.h>
Quoted 47 lines · Takashi Iwai
Quoted 45 lines · Pierre-Louis Bossart
Quoted 44 lines
Quoted 28 lines
Quoted 19 lines
Quoted 19 lines
sound/soc/intel/common/soc-intel-quirks.h +3
-1@@ -11,7 +11,9 @@#include <linux/platform_data/x86/soc.h> -#if IS_ENABLED (CONFIG_X86 ) +#if IS_ENABLED (CONFIG_X86 ) && \ + (IS_ENABLED (CONFIG_SND_SOC_SOF_BAYTRAIL ) || \ +IS_ENABLED (CONFIG_SND_SST_ATOM_HIFI2_PLATFORM_ACPI ))#include <linux/dmi.h> #include <asm/iosf_mbi.h> Quoted 8 lines
Quoted 1 line
I'm afraid it's not enough, either. It's included in
sound/soc/sof/intel/atom.c, and this one can be built-in by selected from others whileCONFIG_SND_SOC_SOF_BAYTRAIL=m. And, the reverse selection is done fromCONFIG_SND_SOC_SOF_BAYTRAIL-- soCONFIG_IOSF_MBIcan be m as well, and this can lead to the unresolved symbol from the built-inatom.c.Quoted 8 lines
Fair point, I was only looking at the reported failure where Baytrail was completely disabled.
I am not sure though if it makes sense to split hair in N dimensions. Building Merrifield as y and Baytrail as m is a corner case that shouldn't exist at all. And it's only an academic compilation issue, in practice using 'y' would fail at run-time due to the usual firmware load dependencies...
Surely this kind of bug won't hit anyone in practical use, but it's only about the randconfig failures. The original report is in the same category, after all.
Maybe another (rather easier) workaround would be to use
IS_REACHABLE(), something like below. This should fix the original issue and the potential mess-up of kconfig dependencies.
Quoted 6 lines
Quoted 4 lines
The simplest solution works for me :-)
Do you want me to send a patch with your Suggested-by: tag or do it yourself?
If you can send from your side, it'd be more appreciated ;)
will do, no worries.