Skip to content

Commit 0f9774d

Browse files
SamuelZOUmchehab
authored andcommitted
media: venus: Mark bufreq_enc with static keyword
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 <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent c5b14df commit 0f9774d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,8 +1239,8 @@ static int bufreq_dec(struct hfi_plat_buffers_params *params, u32 buftype,
12391239
return 0;
12401240
}
12411241

1242-
int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype,
1243-
struct hfi_buffer_requirements *bufreq)
1242+
static int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype,
1243+
struct hfi_buffer_requirements *bufreq)
12441244
{
12451245
enum hfi_version version = params->version;
12461246
struct enc_bufsize_ops *enc_ops;

0 commit comments

Comments
 (0)