Adjust linux_vdso_{cpu,tsc}_selector_idx() definitions to avoid clang 15 warnings
authorDimitry Andric <dim@FreeBSD.org>
Sun, 24 Jul 2022 21:53:22 +0000 (23:53 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 24 Jul 2022 22:40:13 +0000 (00:40 +0200)
commiteadef926b0593f18beb225f46b3d8a8d4fb44c8e
tree316ea7ba306a7540c78bcd3c28b1c90118533f50
parente90d1b57487759e076b16cd3903a7b69565452b9
Adjust linux_vdso_{cpu,tsc}_selector_idx() definitions to avoid clang 15 warnings

With clang 15, the following -Werror warnings are produced:

    sys/x86/linux/linux_vdso_selector_x86.c:44:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    linux_vdso_tsc_selector_idx()
                               ^
                                void
    sys/x86/linux/linux_vdso_selector_x86.c:62:28: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    linux_vdso_cpu_selector_idx()
                               ^
                                void

This is because linux_vdso_tsc_selector_idx() and
linux_vdso_cpu_selector_idx are declared with (void) argument lists, but
defined with empty argument lists. Make the definitions match the
declarations.

MFC after: 3 days
sys/x86/linux/linux_vdso_selector_x86.c