Skip to content

Commit

Permalink
media: venus: Mark bufreq_enc with static keyword
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zou Wei authored and Mauro Carvalho Chehab committed Jan 27, 2021
1 parent c5b14df commit 0f9774d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f9774d

Please sign in to comment.