]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build for mips.XLP64 kernel, by re-ordering headers
authorrpokala <rpokala@FreeBSD.org>
Tue, 31 Mar 2020 20:09:20 +0000 (20:09 +0000)
committerrpokala <rpokala@FreeBSD.org>
Tue, 31 Mar 2020 20:09:20 +0000 (20:09 +0000)
commitc8333ec2b803467e964ddf69a1cd103fc826b770
tree062ee6efd23055b012970b791c3d90613b05e452
parent92937e869f75f41189ae31d1c7a673892bf1eac5
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.

Reviewed by: emaste
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D24242
sys/mips/nlm/dev/net/xlpge.c