Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2017 04:04:50 +0100
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Michael Butler <imb@protected-networks.net>
Cc:        freebsd-current <freebsd-current@freebsd.org>, Mateusz Guzik <mjg@freebsd.org>
Subject:   Re: SVN r325920 breaks build
Message-ID:  <CAGudoHHZfWVt3k4G0PJQ4n8vWxaXJb_9G-awKUvu8Kyi7t-9pQ@mail.gmail.com>
In-Reply-To: <1eb492f3-0a80-57f2-758c-6268c3b4c50b@protected-networks.net>
References:  <1eb492f3-0a80-57f2-758c-6268c3b4c50b@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Fixed in r325925, sorry.

On Fri, Nov 17, 2017 at 3:56 AM, Michael Butler <imb@protected-networks.net>
wrote:

> As follows ..
>
> --- kern_mutex.o ---
> /usr/src/sys/kern/kern_mutex.c:633:22: error: passing 'volatile struct
> thread *' to parameter of type 'struct thread *' discards qualifiers
> [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
>                 turnstile_wait(ts, owner, TS_EXCLUSIVE_QUEUE);
>                                    ^~~~~
> /usr/src/sys/sys/turnstile.h:104:56: note: passing argument to parameter
> here
> void    turnstile_wait(struct turnstile *, struct thread *, int);
>                                                           ^
> /usr/src/sys/kern/kern_mutex.c:1013:2: error: use of undeclared
> identifier 'v'
>         v = MTX_READ_VALUE(m);
>         ^
> /usr/src/sys/kern/kern_mutex.c:1015:6: error: use of undeclared
> identifier 'v'
>         if (v & MTX_RECURSED) {
>             ^
> /usr/src/sys/kern/kern_mutex.c:1024:6: error: use of undeclared
> identifier 'v'
>         if (v == tid && _mtx_release_lock(m, tid))
>             ^
> 4 errors generated.
> *** [kern_mutex.o] Error code 1
>
>         imb
>



-- 
Mateusz Guzik <mjguzik gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHHZfWVt3k4G0PJQ4n8vWxaXJb_9G-awKUvu8Kyi7t-9pQ>