aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-26 17:48:20 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-29 18:29:09 +0000
commit8f8c0b93d1902aa16baf78bf36a41a6402b7e216 (patch)
treec66279874aca9291f7aae19e3092d645dce4eecf
parentbba7dc26f765109b8b1030e45a017d87d560f63f (diff)
downloadsrc-8f8c0b93d1902aa16baf78bf36a41a6402b7e216.tar.gz
src-8f8c0b93d1902aa16baf78bf36a41a6402b7e216.zip
Adjust function definition in vfs_bio.c to avoid clang 15 warnings
With clang 15, the following -Werror warning is produced: sys/kern/vfs_bio.c:3430:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] buf_daemon() ^ void This is because buf_daemon() 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 a387bd1b6a0e18d7abafcbb5ae1870be0604ff15)
-rw-r--r--sys/kern/vfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index c23f6c35e136..abb9ebc7281b 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3414,7 +3414,7 @@ buf_daemon_shutdown(void *arg __unused, int howto __unused)
}
static void
-buf_daemon()
+buf_daemon(void)
{
struct bufdomain *bd;
int speedupreq;