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
This commit is contained in:
parent
ec666d187d
commit
8e9ca1379e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user