From: Bruno Martins Date: Fri, 20 Oct 2023 22:20:18 +0000 (+0100) Subject: drivers: aml: Add void argument to old-style zero prototype functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7dd46e637b8ce4d13b3eecb51da7e2ef352efc0;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git drivers: aml: Add void argument to old-style zero prototype functions Make clang-17 happy just by adding the `void` argument. Change-Id: Icb02e462d6a112729b919f7551a6a4566de97699 --- diff --git a/drivers/amlogic/hifi4dsp/hifi4dsp_module.c b/drivers/amlogic/hifi4dsp/hifi4dsp_module.c index 707521568a69..e213f42aceeb 100644 --- a/drivers/amlogic/hifi4dsp/hifi4dsp_module.c +++ b/drivers/amlogic/hifi4dsp/hifi4dsp_module.c @@ -575,7 +575,7 @@ static struct hifi4dsp_dsp_device hifi4dsp_dev = { .ops = &hifi4dsp_driver_dsp_ops, }; -struct hifi4dsp_priv *hifi4dsp_privdata() +struct hifi4dsp_priv *hifi4dsp_privdata(void) { return hifi4dsp_p[0]; } diff --git a/drivers/amlogic/media/camera/common/vmcls.h b/drivers/amlogic/media/camera/common/vmcls.h index 37d7ac722ef1..61866b939d6a 100644 --- a/drivers/amlogic/media/camera/common/vmcls.h +++ b/drivers/amlogic/media/camera/common/vmcls.h @@ -173,7 +173,7 @@ static struct class vm_class = { .class_attrs = vm_class_attrs, }; -struct class *init_vm_cls() +struct class *init_vm_cls(void) { int ret = 0; diff --git a/drivers/amlogic/media/vin/tvin/vdin/vdin_v4l2.c b/drivers/amlogic/media/vin/tvin/vdin/vdin_v4l2.c index 2d9956b5a044..a363386f179a 100644 --- a/drivers/amlogic/media/vin/tvin/vdin/vdin_v4l2.c +++ b/drivers/amlogic/media/vin/tvin/vdin/vdin_v4l2.c @@ -57,7 +57,7 @@ int v4l2_vdin_ops_init(struct vdin_v4l2_ops_s *vdin_v4l2p) } EXPORT_SYMBOL(v4l2_vdin_ops_init); -struct vdin_v4l2_ops_s *get_vdin_v4l2_ops() +struct vdin_v4l2_ops_s *get_vdin_v4l2_ops(void) { if ((ops.start_tvin_service != NULL) && (ops.stop_tvin_service != NULL)) return &ops;