git: 7ad5c533e5da - stable/13 - LinuxKPI: Use modern function declarations for kernel_fpu_begin/end.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Sat, 27 May 2023 19:34:20 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ad5c533e5da64e590193429609d41a8671b009a

commit 7ad5c533e5da64e590193429609d41a8671b009a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-05-27 19:32:41 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-05-27 19:32:41 +0000

    LinuxKPI: Use modern function declarations for kernel_fpu_begin/end.
    
    This fixes a -Wstrict-prototype error from GCC 12.
    
    This is a direct commit to stable/13 as it was fixed differently in
    main.
---
 sys/compat/linuxkpi/common/include/asm/fpu/api.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/asm/fpu/api.h b/sys/compat/linuxkpi/common/include/asm/fpu/api.h
index 4b598d88be03..6fba15d1fd62 100644
--- a/sys/compat/linuxkpi/common/include/asm/fpu/api.h
+++ b/sys/compat/linuxkpi/common/include/asm/fpu/api.h
@@ -36,7 +36,7 @@ extern struct fpu_kern_ctx *__lkpi_fpu_ctx;
 extern unsigned int __lkpi_fpu_ctx_level;
 
 static inline void
-kernel_fpu_begin()
+kernel_fpu_begin(void)
 {
 	if (__lkpi_fpu_ctx_level++ == 0) {
 		fpu_kern_enter(curthread, __lkpi_fpu_ctx, FPU_KERN_NORMAL);
@@ -44,7 +44,7 @@ kernel_fpu_begin()
 }
 
 static inline void
-kernel_fpu_end()
+kernel_fpu_end(void)
 {
 	if (--__lkpi_fpu_ctx_level == 0) {
 		fpu_kern_leave(curthread, __lkpi_fpu_ctx);