[alsa-devel] [PATCH 2/2] ASoC: SOF: core: fix undefined nocodec reference

Mark Brown broonie at kernel.org
Wed May 8 08:27:17 CEST 2019


On Tue, May 07, 2019 at 11:32:36AM -0500, Pierre-Louis Bossart wrote:
> The existing code mistakenly uses IS_ENABLED in C code instead of as
> in conditional compilation, leading to the following error:

> ld: sound/soc/sof/core.o: in function `sof_machine_check':
> sound/soc/sof/core.c:279: undefined reference to `sof_nocodec_setup'

There's nothing wrong with using IS_ENABLED() in C code - it can be
cleaner than using an ifdef to help the compiler eliminate unneeded
code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190508/9f0e30fc/attachment.sig>


More information about the Alsa-devel mailing list