[Letux-kernel] compile problems

H. Nikolaus Schaller hns at goldelico.com
Sun Jul 22 13:24:48 CEST 2018


> Am 22.07.2018 um 12:30 schrieb Andreas Kemnade <andreas at kemnade.info>:
> 
> Hi,
> 
> I tried to test the newest letux-4.18-rc5-kernel.
> I came to the following problem:
> 
>  CC [M]  sound/soc/omap/omap-twl4030.o
> ../sound/soc/omap/omap-twl4030.c: In function ‘omap_twl4030_init’:
> ../sound/soc/omap/omap-twl4030.c:210:23: error: passing argument 1 of ‘pdata->jack_init’ from incompatible pointer type [-Werror=incompatible-pointer-types]
>      pdata->jack_init(rtd->card))
>                       ^~~
> ../sound/soc/omap/omap-twl4030.c:210:23: note: expected ‘struct snd_soc_codec *’ but argument is of type ‘struct snd_soc_card *’
> ../sound/soc/omap/omap-twl4030.c:211:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
>   priv->jack_remove = pdata->jack_remove;
>                     ^
> cc1: some warnings being treated as errors

looks as if my compiler treats it as a warning. Needs to be fixed of course.
4.18 has removed all snd_soc_card and replaced by snd_soc_codec and I have tried
to include this in our private patches, but I may have missed one location.
Maybe just the function declaration for pdata->jack_init.

> 
> compiling with:
> andi at aktux:~/gta04/gta04-kernel/4.18rc$ arm-linux-gnueabihf-gcc --version
> arm-linux-gnueabihf-gcc (Debian 6.3.0-18) 6.3.0 20170516
> Copyright (C) 2016 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

BR,
Nikolaus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180722/00e87863/attachment.asc>


More information about the Letux-kernel mailing list