git: d86e51e9956c - stable/13 - Adjust function definition in subr_devmap.c to avoid clang 15 warning

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Mon, 22 Aug 2022 09:12:18 UTC
The branch stable/13 has been updated by andrew:

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

commit d86e51e9956c2bf74d5570033053f2b51a15a8e4
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-08-11 12:04:58 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-08-22 09:11:29 +0000

    Adjust function definition in subr_devmap.c to avoid clang 15 warning
    
    With clang 15, the following -Werror warning is produced:
    
        sys/kern/subr_devmap.c:87:19: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
        devmap_print_table()
                          ^
                           void
    
    This is because devmap_print_table() and devmap_lastaddr() are declared
    with a (void) argument list, but defined with an empty argument list.
    Make the definition match the declaration.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 8e9ca1379edad98a957570a2339a9236910e61c1)
---
 sys/kern/subr_devmap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/kern/subr_devmap.c b/sys/kern/subr_devmap.c
index 1c9b192cc4c8..3d935791aea7 100644
--- a/sys/kern/subr_devmap.c
+++ b/sys/kern/subr_devmap.c
@@ -84,7 +84,7 @@ devmap_dump_table(int (*prfunc)(const char *, ...))
  * Print the contents of the static mapping table.  Used for bootverbose.
  */
 void
-devmap_print_table()
+devmap_print_table(void)
 {
 	devmap_dump_table(printf);
 }
@@ -95,7 +95,7 @@ devmap_print_table()
  * the first unusable byte of KVA.
  */
 vm_offset_t
-devmap_lastaddr()
+devmap_lastaddr(void)
 {
 	const struct devmap_entry *pd;
 	vm_offset_t lowaddr;