media: venus: Mark bufreq_enc with static keyword
authorZou Wei <zou_wei@huawei.com>
Thu, 14 Jan 2021 09:05:21 +0000 (10:05 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 15:18:00 +0000 (16:18 +0100)
Fix the following sparse warning:

hfi_plat_bufs_v6.c:1242:5: warning: symbol 'bufreq_enc' was not declared.
 Should it be static?

Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c

index 072e349dd46cec68e461111713422247066d8646..d43d1a53e72ddadfb375d9f0b0ea42547d2098a1 100644 (file)
@@ -1239,8 +1239,8 @@ static int bufreq_dec(struct hfi_plat_buffers_params *params, u32 buftype,
        return 0;
 }
 
-int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype,
-              struct hfi_buffer_requirements *bufreq)
+static int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype,
+                     struct hfi_buffer_requirements *bufreq)
 {
        enum hfi_version version = params->version;
        struct enc_bufsize_ops *enc_ops;