Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NET4501 kernel build fails



On Mon, 31 Oct 2022, John D. Baker wrote:

> After this change:
> 
>   https://mail-index.netbsd.org/source-changes/2022/10/26/msg141745.html

Correction:  After THIS change:

  https://mail-index.netbsd.org/source-changes/2022/10/25/msg141682.html

> The "NET4501" kernel build fails as shown below.  This is probably due
> to "-Os" optimization causing GCC to be unable to grok the initialization
> condition for "ctp".

I had previously only searched for the last time "sys/kern/subr_prf.c"
had changed, but then realized that didn't account for the affected code.

> Explicitly initializing "ctp = NULL;" after the declaration allows the
> build to complete.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index