aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-24 21:46:54 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-27 19:17:22 +0000
commit6a2fb0df3b79f52dc1b455e53c74118645d4b178 (patch)
tree41decb70a8edf5f20e692ec839c3501a94126408
parent3e4582f80355735a80370e264d07f9caff9f5d30 (diff)
downloadsrc-6a2fb0df3b79f52dc1b455e53c74118645d4b178.tar.gz
src-6a2fb0df3b79f52dc1b455e53c74118645d4b178.zip
Adjust linux_get_char_devices() definition to avoid clang 15 warning
With clang 15, the following -Werror warning is produced: sys/compat/linux/linux_util.c:243:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] linux_get_char_devices() ^ void This is because linux_get_char_devices() 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 e90d1b57487759e076b16cd3903a7b69565452b9)
-rw-r--r--sys/compat/linux/linux_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_util.c b/sys/compat/linux/linux_util.c
index f1d33faa628d..e41c505425ee 100644
--- a/sys/compat/linux/linux_util.c
+++ b/sys/compat/linux/linux_util.c
@@ -240,7 +240,7 @@ linux_vn_get_major_minor(const struct vnode *vp, int *major, int *minor)
}
char *
-linux_get_char_devices()
+linux_get_char_devices(void)
{
struct device_element *de;
char *temp, *string, *last;