Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1515777
| From | Randy Dunlap <rdunlap@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [alsa-devel] [PATCH] ASoC: fsl: fix fsl_spdif.c build errors |
| Date | 2016-11-06 23:20 +0100 |
| Message-ID | <sADNB-2I3-31@gated-at.bofh.it> (permalink) |
| References | <sAipI-5UX-7@gated-at.bofh.it> <sABC1-1bu-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/06/16 11:43, Fabio Estevam wrote: > Hi Randy, > > On Sat, Nov 5, 2016 at 9:16 PM, Randy Dunlap <rdunlap@infradead.org> wrote: >> From: Randy Dunlap <rdunlap@infradead.org> >> >> Fix build errors in sound/soc/fsl/fsl_spdif.c by selecting BITREVERSE. >> Fixes these build errors: > > Care to explain why the error is happening? The driver uses bitreverse functions but does not select BITREVERSE in its kconfig description, so the bitrev functions are not built into the kernel. In the kbuild robot supplied config file, FSL_SPDIF=y and BITREVERSE=m, which causes the build error. By having this driver select BITREVERSE, CONFIG_BITREVERSE=y so there is no build error. >> sound/built-in.o: In function `spdif_write_channel_status': >> fsl_spdif.c:(.text+0xbe39d): undefined reference to `byte_rev_table' >> fsl_spdif.c:(.text+0xbe3a8): undefined reference to `byte_rev_table' >> fsl_spdif.c:(.text+0xbe3be): undefined reference to `byte_rev_table' >> fsl_spdif.c:(.text+0xbe3d8): undefined reference to `byte_rev_table' >> >> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >> Reported-by: kbuild test robot <fengguang.wu@intel.com> >> Applies-to: all 3.x, all 4.x > > Not sure if this last line is correct. The kbuild report says this > error starts to happen with: > commit: 8cfc8ddc99df9509a46043b14af81f5c6a223eab pstore: add lzo/lz4 > compression support That commit makes no sense to me regarding this build error. This driver uses bitrev functions even way back in 3.x so this patch could be applied to many stable kernel versions. > on a x86_64 randconfig. > > Also, why only SND_SOC_FSL_SPDIF needs to have BITREVERSE selected? It's the only source file in sound/soc/fsl/ that uses bitreverse functions. -- ~Randy
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ASoC: fsl: fix fsl_spdif.c build errors Randy Dunlap <rdunlap@infradead.org> - 2016-11-06 00:20 +0100
Re: [alsa-devel] [PATCH] ASoC: fsl: fix fsl_spdif.c build errors Fabio Estevam <festevam@gmail.com> - 2016-11-06 20:50 +0100
Re: [alsa-devel] [PATCH] ASoC: fsl: fix fsl_spdif.c build errors Fabio Estevam <festevam@gmail.com> - 2016-11-06 23:10 +0100
Re: [alsa-devel] [PATCH] ASoC: fsl: fix fsl_spdif.c build errors Randy Dunlap <rdunlap@infradead.org> - 2016-11-06 23:20 +0100
Re: [alsa-devel] [PATCH] ASoC: fsl: fix fsl_spdif.c build errors Kees Cook <keescook@chromium.org> - 2016-11-08 22:40 +0100
Applied "ASoC: fsl: fix fsl_spdif.c build errors" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-11-09 16:00 +0100
csiph-web