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

"Sascha Wildner" <[email protected]>
Newsgroups gmane.os.dragonfly-bsd.kernel
Message-ID <op.w58d6mm8r9a2dd@collider>
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
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.