]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build for mips.XLP64 kernel, by re-ordering headers
authorRavi Pokala <rpokala@FreeBSD.org>
Tue, 31 Mar 2020 20:09:20 +0000 (20:09 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 7 Oct 2021 03:27:27 +0000 (22:27 -0500)
commitf76c1f3538b7e2a9a783af0c22283e3a3db3906f
tree84259506c033165d66a728f9554a68f83bd3aba5
parent716baab384ded0d02bad67a4be52e9d2408ae636
Fix build for mips.XLP64 kernel, by re-ordering headers

The log for the failure contained errors like this:

| In file included from ${SRCTOP}/sys/mips/nlm/dev/net/xlpge.c:34:
| In file included from ${SRCTOP}/sys/sys/systm.h:44:
| In file included from ./machine/atomic.h:849:
| ${SRCTOP}/sys/sys/_atomic_subword.h:222:37: error: unknown type name 'u_long'; did you mean 'long'?
| atomic_testandset_acq_long(volatile u_long *p, u_int v)
|                                     ^~~~~~
|                                     long

And similar "unknown type name" errors for u_int, not recognizing bool as a type, etc.

This was caused by including <sys/param.h> too far down; move it up where it belongs.

While here, add a blank line after '__FBSDID()', in keeping with convention.

(cherry picked from commit 144af011b4ee87ed3eba4f2c9f6780f4543ba554)
sys/mips/nlm/dev/net/xlpge.c