lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 08 Oct 2023 13:02:36 +0200
From:   Janusz Krzysztofik <jmkrzyszt@...il.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     Peter Ujfalusi <peter.ujfalusi@...il.com>,
        Liam Girdwood <lgirdwood@...il.com>,
        Mark Brown <broonie@...nel.org>,
        "Jiri Slaby (SUSE)" <jirislaby@...nel.org>,
        alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
        Janusz Krzysztofik <jmkrzyszt@...il.com>
Subject: Re: [PATCH] ASoC: ti: ams-delta: Fix cx81801_receive() argument types

Dnia niedziela, 8 października 2023 11:42:50 CEST Janusz Krzysztofik pisze:
> Dnia niedziela, 8 października 2023 07:04:39 CEST Greg Kroah-Hartman pisze:
> > On Sat, Oct 07, 2023 at 11:38:18PM +0200, Janusz Krzysztofik wrote:
> > > Since types of arguments accepted by tty_ldis_ops::receive_buf() have
> > > changed, the driver no longer builds.
> > > 
> > > .../linux/sound/soc/ti/ams-delta.c:403:24: error: initialization of 'void (*)(struct tty_struct *, const u8 *, const u8 *, size_t)' {aka 'void (*)(struct tty_struct *, const unsigned char *, const unsigned char *, unsigned int)'} from incompatible pointer type 'void (*)(struct tty_struct *, const u8 *, const char *, int)' {aka 'void (*)(struct tty_struct *, const unsigned char *, const char *, int)'} [-Werror=incompatible-pointer-types]
> > >   403 |         .receive_buf = cx81801_receive,
> > > 
> > > Fix it.
> > > 
> > > Fixes: e8161447bb0c ("tty: make tty_ldisc_ops::*buf*() hooks operate on size_t")
> > > Fixes: 892bc209f250 ("tty: use u8 for flags")
> > > Signed-off-by: Janusz Krzysztofik <jmkrzyszt@...il.com>
> > > ---
> > >  sound/soc/ti/ams-delta.c | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > Odd no built-bots caught this, maybe no one normally builds this file?
> 
> The driver depends on SND, SND_SOC and TTY, but can't be selected 
> individually, only via its user.  

Sorry, that was an ASoC board driver, not a CODEC driver, that required the 
fix.

> Then, it usually builds when 
> CONFIG_SND_SOC_OMAP_AMS_DELTA=y, and that's probably uncommon due to 
> specific dependencies.  

In addition to SOUND, SND, SND_SOC and TTY, this ASoC board driver depends 
on MACH_AMS_DELTA, then on ARM, MMU, ARCH_MULTI_V4T, !ARCH_MULTI_V6, 
!ARCH_MULTI_V7, CPU_LITTLE_ENDIAN, ATAGS, ARCH_OMAP1 and ARCH_OMAP15XX.  
Let me check if it builds without those machine dependencies, then we can 
cover it by COMPILE_TEST.

Thanks,
Janusz

> However, cx20442 can also be selected and built 
> with CONFIG_COMPILE_TEST=y and CONFIG_SND_SOC_ALL_CODECS=y.  Since similar 
> approach seems to apply to quite a number of ASoC CODECs, maybe build-bots 
> should pay special attention to select SND_SOC_ALL_CODECS more frequently, 
> like they probably do with COMPILE_TEST.
> 
> Thanks,
> Janusz
> 
> > Anyway, I'll pick this up in my tty tree now, thanks!
> > 
> > greg k-h
> > 
> 
> 


Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ