Re: buildkernel failed - if_iwn.c: iwn_read_firmware (INVARIANTS again?)

Sepherosa Ziehau <[email protected]>
Newsgroups gmane.os.dragonfly-bsd.kernel
Message-ID <CAMOc5czqYGbmJL3Vz_P=TE0ybnPkJrx8iWeP7jt6wBN78-akeg@mail.gmail.com>
May be that one could be removed?  We may just put ASSERT_SERIALIZED or
ASSERT_NOT_SERIALIZED there, since we have setup the serializer properly
for wlan in the last release cycle.

Best Regards,
sephe



On Fri, Nov 8, 2013 at 8:55 PM, Sascha Wildner <[email protected]> wrote:

> On Fri, 08 Nov 2013 13:26:45 +0100, Andrey Oktyabrskiy <[email protected]>
> wrote:
>
>  $ make buildkernel KERNCONF=ANO
>> ...
>> /usr/src/sys/dev/netif/iwn/if_iwn.c: In function 'iwn_read_firmware':
>> /usr/src/sys/dev/netif/iwn/if_iwn.c:5676:2: error: implicit declaration
>> of function 'IS_SERIALIZED' [-Werror=implicit-function-declaration]
>> /usr/src/sys/dev/netif/iwn/if_iwn.c:5676:2: error: nested extern
>> declaration of 'IS_SERIALIZED' [-Werror=nested-externs]
>> cc1: all warnings being treated as errors
>> *** Error code 1
>>
>
> Yeah, it's a known issue and comes from compiling without INVARIANTS. IIRC
> I looked at it once and it didn't look so easy. It is also mentioned in
> http://bugs.dragonflybsd.org/issues/2449 (unfortunately closed
> prematurely).
>
> CC'ing Matt since he both added the iwn code in question (
> b8b498ed88a72ccd6a0b0fd0d10a2061576f3a47) and added iwn to the default
> configs too (ae80e77cae0ebec810b46ecf9bf92428e28b8f7c). :)
>
> We could #define INVARIANTS for the iwn driver only, but it would be kind
> of a hack. Any better ideas?
>
> Sascha
>



-- 
Tomorrow Will Never Die
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.