git: 105f9406c955 - stable/13 - Adjust check_struct_sizes() definition to avoid clang 15 warning

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 29 Jul 2022 18:47:47 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=105f9406c95593f0c887932f4087fac490ddefe6

commit 105f9406c95593f0c887932f4087fac490ddefe6
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-26 11:20:58 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-29 18:31:13 +0000

    Adjust check_struct_sizes() definition to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/dev/smartpqi/smartpqi_helper.c:374:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        check_struct_sizes()
                          ^
                           void
    
    This is because check_struct_sizes() is declared with a (void) argument
    list, but defined with an empty argument list. Make the definition match
    the declaration.
    
    MFC after:      3 days
    
    (cherry picked from commit fb1c21688c5702d0bc50d67359dee4af12d0c693)
---
 sys/dev/smartpqi/smartpqi_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/smartpqi/smartpqi_helper.c b/sys/dev/smartpqi/smartpqi_helper.c
index 45d9fca071d3..e6a5f6876b64 100644
--- a/sys/dev/smartpqi/smartpqi_helper.c
+++ b/sys/dev/smartpqi/smartpqi_helper.c
@@ -371,7 +371,7 @@ void pqisrc_display_device_info(pqisrc_softstate_t *softs,
 
 /* validate the structure sizes */
 void
-check_struct_sizes()
+check_struct_sizes(void)
 {
 
     ASSERT(sizeof(SCSI3Addr_struct)== 2);