drivers: aml: Add void argument to old-style zero prototype functions
authorBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 22:20:18 +0000 (23:20 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sat, 28 Oct 2023 17:19:26 +0000 (17:19 +0000)
Make clang-17 happy just by adding the `void` argument.

Change-Id: Icb02e462d6a112729b919f7551a6a4566de97699

drivers/amlogic/hifi4dsp/hifi4dsp_module.c
drivers/amlogic/media/camera/common/vmcls.h
drivers/amlogic/media/vin/tvin/vdin/vdin_v4l2.c

index 707521568a69da492674a7c5a29014898d7968ec..e213f42aceeb5efadd1542e578e7a01eb4632474 100644 (file)
@@ -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];
 }
index 37d7ac722ef1ddbbaa6ef8b5307cdb7822428c35..61866b939d6af659894d8e480b13b9b783cd6f45 100644 (file)
@@ -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;
 
index 2d9956b5a044317464f9e1ceddd477f701ebc03f..a363386f179ac4c3e91580e35be8648c89872aac 100644 (file)
@@ -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;