svn commit: r362120 - in head/sys: amd64/amd64 i386/i386
Eric van Gyzen
vangyzen at FreeBSD.org
Fri Jun 12 21:12:27 UTC 2020
Author: vangyzen
Date: Fri Jun 12 21:12:26 2020
New Revision: 362120
URL: https://svnweb.freebsd.org/changeset/base/362120
Log:
FPU: make xsave_area_desc static
...because it can be.
Reviewed by: cem kib
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D25098
Modified:
head/sys/amd64/amd64/fpu.c
head/sys/i386/i386/npx.c
Modified: head/sys/amd64/amd64/fpu.c
==============================================================================
--- head/sys/amd64/amd64/fpu.c Fri Jun 12 21:10:45 2020 (r362119)
+++ head/sys/amd64/amd64/fpu.c Fri Jun 12 21:12:26 2020 (r362120)
@@ -159,7 +159,7 @@ uint64_t xsave_mask; /* the same */
static uma_zone_t fpu_save_area_zone;
static struct savefpu *fpu_initialstate;
-struct xsave_area_elm_descr {
+static struct xsave_area_elm_descr {
u_int offset;
u_int size;
} *xsave_area_desc;
Modified: head/sys/i386/i386/npx.c
==============================================================================
--- head/sys/i386/i386/npx.c Fri Jun 12 21:10:45 2020 (r362119)
+++ head/sys/i386/i386/npx.c Fri Jun 12 21:12:26 2020 (r362120)
@@ -201,7 +201,7 @@ uint64_t xsave_mask;
static uma_zone_t fpu_save_area_zone;
static union savefpu *npx_initialstate;
-struct xsave_area_elm_descr {
+static struct xsave_area_elm_descr {
u_int offset;
u_int size;
} *xsave_area_desc;
More information about the svn-src-all
mailing list