Skip to content

Commit ca5ea0c

Browse files
committed
[media] s5p_mfc: use static for some structs
drivers/media/platform/s5p-mfc/s5p_mfc.c:1334:28: warning: symbol 'mfc_buf_size_v5' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1341:25: warning: symbol 'buf_size_v5' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1347:26: warning: symbol 'mfc_buf_align_v5' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1360:28: warning: symbol 'mfc_buf_size_v6' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1368:25: warning: symbol 'buf_size_v6' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1374:26: warning: symbol 'mfc_buf_align_v6' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1392:28: warning: symbol 'mfc_buf_size_v7' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1400:25: warning: symbol 'buf_size_v7' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1406:26: warning: symbol 'mfc_buf_align_v7' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1419:28: warning: symbol 'mfc_buf_size_v8' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1427:25: warning: symbol 'buf_size_v8' was not declared. Should it be static? drivers/media/platform/s5p-mfc/s5p_mfc.c:1433:26: warning: symbol 'mfc_buf_align_v8' was not declared. Should it be static? Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent c5d28e2 commit ca5ea0c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎drivers/media/platform/s5p-mfc/s5p_mfc.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,20 +1331,20 @@ static const struct dev_pm_ops s5p_mfc_pm_ops = {
13311331
NULL)
13321332
};
13331333

1334-
struct s5p_mfc_buf_size_v5 mfc_buf_size_v5 = {
1334+
static struct s5p_mfc_buf_size_v5 mfc_buf_size_v5 = {
13351335
.h264_ctx = MFC_H264_CTX_BUF_SIZE,
13361336
.non_h264_ctx = MFC_CTX_BUF_SIZE,
13371337
.dsc = DESC_BUF_SIZE,
13381338
.shm = SHARED_BUF_SIZE,
13391339
};
13401340

1341-
struct s5p_mfc_buf_size buf_size_v5 = {
1341+
static struct s5p_mfc_buf_size buf_size_v5 = {
13421342
.fw = MAX_FW_SIZE,
13431343
.cpb = MAX_CPB_SIZE,
13441344
.priv = &mfc_buf_size_v5,
13451345
};
13461346

1347-
struct s5p_mfc_buf_align mfc_buf_align_v5 = {
1347+
static struct s5p_mfc_buf_align mfc_buf_align_v5 = {
13481348
.base = MFC_BASE_ALIGN_ORDER,
13491349
};
13501350

@@ -1357,21 +1357,21 @@ static struct s5p_mfc_variant mfc_drvdata_v5 = {
13571357
.fw_name[0] = "s5p-mfc.fw",
13581358
};
13591359

1360-
struct s5p_mfc_buf_size_v6 mfc_buf_size_v6 = {
1360+
static struct s5p_mfc_buf_size_v6 mfc_buf_size_v6 = {
13611361
.dev_ctx = MFC_CTX_BUF_SIZE_V6,
13621362
.h264_dec_ctx = MFC_H264_DEC_CTX_BUF_SIZE_V6,
13631363
.other_dec_ctx = MFC_OTHER_DEC_CTX_BUF_SIZE_V6,
13641364
.h264_enc_ctx = MFC_H264_ENC_CTX_BUF_SIZE_V6,
13651365
.other_enc_ctx = MFC_OTHER_ENC_CTX_BUF_SIZE_V6,
13661366
};
13671367

1368-
struct s5p_mfc_buf_size buf_size_v6 = {
1368+
static struct s5p_mfc_buf_size buf_size_v6 = {
13691369
.fw = MAX_FW_SIZE_V6,
13701370
.cpb = MAX_CPB_SIZE_V6,
13711371
.priv = &mfc_buf_size_v6,
13721372
};
13731373

1374-
struct s5p_mfc_buf_align mfc_buf_align_v6 = {
1374+
static struct s5p_mfc_buf_align mfc_buf_align_v6 = {
13751375
.base = 0,
13761376
};
13771377

@@ -1389,21 +1389,21 @@ static struct s5p_mfc_variant mfc_drvdata_v6 = {
13891389
.fw_name[1] = "s5p-mfc-v6-v2.fw",
13901390
};
13911391

1392-
struct s5p_mfc_buf_size_v6 mfc_buf_size_v7 = {
1392+
static struct s5p_mfc_buf_size_v6 mfc_buf_size_v7 = {
13931393
.dev_ctx = MFC_CTX_BUF_SIZE_V7,
13941394
.h264_dec_ctx = MFC_H264_DEC_CTX_BUF_SIZE_V7,
13951395
.other_dec_ctx = MFC_OTHER_DEC_CTX_BUF_SIZE_V7,
13961396
.h264_enc_ctx = MFC_H264_ENC_CTX_BUF_SIZE_V7,
13971397
.other_enc_ctx = MFC_OTHER_ENC_CTX_BUF_SIZE_V7,
13981398
};
13991399

1400-
struct s5p_mfc_buf_size buf_size_v7 = {
1400+
static struct s5p_mfc_buf_size buf_size_v7 = {
14011401
.fw = MAX_FW_SIZE_V7,
14021402
.cpb = MAX_CPB_SIZE_V7,
14031403
.priv = &mfc_buf_size_v7,
14041404
};
14051405

1406-
struct s5p_mfc_buf_align mfc_buf_align_v7 = {
1406+
static struct s5p_mfc_buf_align mfc_buf_align_v7 = {
14071407
.base = 0,
14081408
};
14091409

@@ -1416,21 +1416,21 @@ static struct s5p_mfc_variant mfc_drvdata_v7 = {
14161416
.fw_name[0] = "s5p-mfc-v7.fw",
14171417
};
14181418

1419-
struct s5p_mfc_buf_size_v6 mfc_buf_size_v8 = {
1419+
static struct s5p_mfc_buf_size_v6 mfc_buf_size_v8 = {
14201420
.dev_ctx = MFC_CTX_BUF_SIZE_V8,
14211421
.h264_dec_ctx = MFC_H264_DEC_CTX_BUF_SIZE_V8,
14221422
.other_dec_ctx = MFC_OTHER_DEC_CTX_BUF_SIZE_V8,
14231423
.h264_enc_ctx = MFC_H264_ENC_CTX_BUF_SIZE_V8,
14241424
.other_enc_ctx = MFC_OTHER_ENC_CTX_BUF_SIZE_V8,
14251425
};
14261426

1427-
struct s5p_mfc_buf_size buf_size_v8 = {
1427+
static struct s5p_mfc_buf_size buf_size_v8 = {
14281428
.fw = MAX_FW_SIZE_V8,
14291429
.cpb = MAX_CPB_SIZE_V8,
14301430
.priv = &mfc_buf_size_v8,
14311431
};
14321432

1433-
struct s5p_mfc_buf_align mfc_buf_align_v8 = {
1433+
static struct s5p_mfc_buf_align mfc_buf_align_v8 = {
14341434
.base = 0,
14351435
};
14361436

0 commit comments

Comments
 (0)