diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2019-05-16 22:20:54 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2019-05-16 22:20:54 +0000 |
commit | 7c5a46a1bc4b705064ced073b0d86a3dc4717f94 (patch) | |
tree | f270bec2d6f75bd941cb0c59317a6fd173d0ce18 /lib/libc/x86/sys | |
parent | 11f8f36fb9b2126dad9da6af6f6cc6200362b968 (diff) | |
download | src-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/sys')
-rw-r--r-- | lib/libc/x86/sys/__vdso_gettc.c | 2 | ||||
-rw-r--r-- | lib/libc/x86/sys/pkru.c | 4 |
2 files changed, 3 insertions, 3 deletions
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 ? |