aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/x86
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-05-16 22:20:54 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-05-16 22:20:54 +0000
commit7c5a46a1bc4b705064ced073b0d86a3dc4717f94 (patch)
treef270bec2d6f75bd941cb0c59317a6fd173d0ce18 /lib/libc/x86
parent11f8f36fb9b2126dad9da6af6f6cc6200362b968 (diff)
downloadsrc-7c5a46a1bc4b705064ced073b0d86a3dc4717f94.tar.gz
src-7c5a46a1bc4b705064ced073b0d86a3dc4717f94.zip
Remove resolver_qual from DEFINE_IFUNC/DEFINE_UIFUNC macros.
In all practical situations, the resolver visibility is static. Requested by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: so (emaste) Differential revision: https://reviews.freebsd.org/D20281
Notes
Notes: svn path=/head/; revision=347895
Diffstat (limited to 'lib/libc/x86')
-rw-r--r--lib/libc/x86/gen/getcontextx.c4
-rw-r--r--lib/libc/x86/sys/__vdso_gettc.c2
-rw-r--r--lib/libc/x86/sys/pkru.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/x86/gen/getcontextx.c b/lib/libc/x86/gen/getcontextx.c
index e9060bac44ad..056128a149ff 100644
--- a/lib/libc/x86/gen/getcontextx.c
+++ b/lib/libc/x86/gen/getcontextx.c
@@ -61,7 +61,7 @@ __getcontextx_size_xfpu(void)
return (sizeof(ucontext_t) + xstate_sz);
}
-DEFINE_UIFUNC(, int, __getcontextx_size, (void), static)
+DEFINE_UIFUNC(, int, __getcontextx_size, (void))
{
u_int p[4];
@@ -100,7 +100,7 @@ __fillcontextx2_noxfpu(char *ctx)
return (0);
}
-DEFINE_UIFUNC(, int, __fillcontextx2, (char *), static)
+DEFINE_UIFUNC(, int, __fillcontextx2, (char *))
{
return ((cpu_feature2 & CPUID2_OSXSAVE) != 0 ? __fillcontextx2_xfpu :
diff --git a/lib/libc/x86/sys/__vdso_gettc.c b/lib/libc/x86/sys/__vdso_gettc.c
index 0781e97e2ce5..7a958ca256da 100644
--- a/lib/libc/x86/sys/__vdso_gettc.c
+++ b/lib/libc/x86/sys/__vdso_gettc.c
@@ -72,7 +72,7 @@ rdtsc_mb_none(void)
{
}
-DEFINE_UIFUNC(static, void, rdtsc_mb, (void), static)
+DEFINE_UIFUNC(static, void, rdtsc_mb, (void))
{
u_int p[4];
/* Not a typo, string matches our do_cpuid() registers use. */
diff --git a/lib/libc/x86/sys/pkru.c b/lib/libc/x86/sys/pkru.c
index 6aa3cbf95767..28ce93389fd0 100644
--- a/lib/libc/x86/sys/pkru.c
+++ b/lib/libc/x86/sys/pkru.c
@@ -71,7 +71,7 @@ x86_pkru_get_perm_hw(u_int keyidx, int *access, int *modify)
return (0);
}
-DEFINE_UIFUNC(, int, x86_pkru_get_perm, (u_int, int *, int *), static)
+DEFINE_UIFUNC(, int, x86_pkru_get_perm, (u_int, int *, int *))
{
return ((cpu_stdext_feature2 & CPUID_STDEXT2_OSPKE) == 0 ?
@@ -106,7 +106,7 @@ x86_pkru_set_perm_hw(u_int keyidx, int access, int modify)
return (0);
}
-DEFINE_UIFUNC(, int, x86_pkru_set_perm, (u_int, int, int), static)
+DEFINE_UIFUNC(, int, x86_pkru_set_perm, (u_int, int, int))
{
return ((cpu_stdext_feature2 & CPUID_STDEXT2_OSPKE) == 0 ?