svn commit: r355444 - in head/sys: arm/mv arm64/conf conf

Hans Petter Selasky hps at selasky.org
Fri Dec 6 15:57:23 UTC 2019


On 2019-12-06 13:55, Luiz Otavio O Souza wrote:
> Author: loos
> Date: Fri Dec  6 12:55:39 2019
> New Revision: 355444
> URL: https://svnweb.freebsd.org/changeset/base/355444
> 
> Log:
>    Add the SPI driver for the Marvell Armada 37x0 SoC.
>    
>    Interrupt based driver, implements SPI mode and clock configuration.
>    
>    Tested on espressobin and SG-3200.
>    
>    Sponsored by:	Rubicon Communications, LLC (Netgate)
> 
> Added:

This breaks aarch64. You need to add #include <sys/mutex.h>

somewhere:

13:30:54 ctfconvert -L VERSION -g bcm2835_rng.o
13:30:54 --- a37x0_spi.o ---
13:30:54 /usr/src/sys/arm/mv/a37x0_spi.c:212:2: error: implicit 
declaration of function 'mtx_init' is invalid in C99 
[-Werror,-Wimplicit-function-declaration]
13:30:54         mtx_init(&sc->sc_mtx, "a37x0_spi", NULL, MTX_DEF);
13:30:54         ^
13:30:54 --- mv_ap806_gicp.o ---
13:30:54 cc -target aarch64-unknown-freebsd13.0 
--sysroot=/usr/obj/usr/src/arm64.aarch64/tmp 
-B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -

https://ci.freebsd.org/tinderbox/

--HPS



More information about the svn-src-head mailing list