Commit 072ce0c5 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (10178): dvb_frontend: Fix some sparse warnings due to static symbols

/home/v4l/master/v4l/dvb_frontend.c:838:19: warning: symbol 'dtv_cmds' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1035:6: warning: symbol 'dtv_property_dump' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1066:5: warning: symbol 'is_legacy_delivery_system' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1080:6: warning: symbol 'dtv_property_cache_sync' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1132:6: warning: symbol 'dtv_property_legacy_params_sync' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1187:6: warning: symbol 'dtv_property_adv_params_sync' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1222:6: warning: symbol 'dtv_property_cache_submit' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1253:5: warning: symbol 'dtv_property_process_get' was not declared. Should it be static?
/home/v4l/master/v4l/dvb_frontend.c:1362:5: warning: symbol 'dtv_property_process_set' was not declared. Should it be static?
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 26cdc76b
...@@ -824,7 +824,7 @@ static int dvb_frontend_check_parameters(struct dvb_frontend *fe, ...@@ -824,7 +824,7 @@ static int dvb_frontend_check_parameters(struct dvb_frontend *fe,
return 0; return 0;
} }
struct dtv_cmds_h dtv_cmds[] = { static struct dtv_cmds_h dtv_cmds[] = {
[DTV_TUNE] = { [DTV_TUNE] = {
.name = "DTV_TUNE", .name = "DTV_TUNE",
.cmd = DTV_TUNE, .cmd = DTV_TUNE,
...@@ -962,7 +962,7 @@ struct dtv_cmds_h dtv_cmds[] = { ...@@ -962,7 +962,7 @@ struct dtv_cmds_h dtv_cmds[] = {
}, },
}; };
void dtv_property_dump(struct dtv_property *tvp) static void dtv_property_dump(struct dtv_property *tvp)
{ {
int i; int i;
...@@ -993,7 +993,7 @@ void dtv_property_dump(struct dtv_property *tvp) ...@@ -993,7 +993,7 @@ void dtv_property_dump(struct dtv_property *tvp)
dprintk("%s() tvp.u.data = 0x%08x\n", __func__, tvp->u.data); dprintk("%s() tvp.u.data = 0x%08x\n", __func__, tvp->u.data);
} }
int is_legacy_delivery_system(fe_delivery_system_t s) static int is_legacy_delivery_system(fe_delivery_system_t s)
{ {
if((s == SYS_UNDEFINED) || (s == SYS_DVBC_ANNEX_AC) || if((s == SYS_UNDEFINED) || (s == SYS_DVBC_ANNEX_AC) ||
(s == SYS_DVBC_ANNEX_B) || (s == SYS_DVBT) || (s == SYS_DVBS) || (s == SYS_DVBC_ANNEX_B) || (s == SYS_DVBT) || (s == SYS_DVBS) ||
...@@ -1007,7 +1007,8 @@ int is_legacy_delivery_system(fe_delivery_system_t s) ...@@ -1007,7 +1007,8 @@ int is_legacy_delivery_system(fe_delivery_system_t s)
* drivers can use a single set_frontend tuning function, regardless of whether * drivers can use a single set_frontend tuning function, regardless of whether
* it's being used for the legacy or new API, reducing code and complexity. * it's being used for the legacy or new API, reducing code and complexity.
*/ */
void dtv_property_cache_sync(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) static void dtv_property_cache_sync(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
...@@ -1059,7 +1060,7 @@ void dtv_property_cache_sync(struct dvb_frontend *fe, struct dvb_frontend_parame ...@@ -1059,7 +1060,7 @@ void dtv_property_cache_sync(struct dvb_frontend *fe, struct dvb_frontend_parame
/* Ensure the cached values are set correctly in the frontend /* Ensure the cached values are set correctly in the frontend
* legacy tuning structures, for the advanced tuning API. * legacy tuning structures, for the advanced tuning API.
*/ */
void dtv_property_legacy_params_sync(struct dvb_frontend *fe) static void dtv_property_legacy_params_sync(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct dvb_frontend_private *fepriv = fe->frontend_priv; struct dvb_frontend_private *fepriv = fe->frontend_priv;
...@@ -1114,7 +1115,7 @@ void dtv_property_legacy_params_sync(struct dvb_frontend *fe) ...@@ -1114,7 +1115,7 @@ void dtv_property_legacy_params_sync(struct dvb_frontend *fe)
/* Ensure the cached values are set correctly in the frontend /* Ensure the cached values are set correctly in the frontend
* legacy tuning structures, for the legacy tuning API. * legacy tuning structures, for the legacy tuning API.
*/ */
void dtv_property_adv_params_sync(struct dvb_frontend *fe) static void dtv_property_adv_params_sync(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct dvb_frontend_private *fepriv = fe->frontend_priv; struct dvb_frontend_private *fepriv = fe->frontend_priv;
...@@ -1149,7 +1150,7 @@ void dtv_property_adv_params_sync(struct dvb_frontend *fe) ...@@ -1149,7 +1150,7 @@ void dtv_property_adv_params_sync(struct dvb_frontend *fe)
} }
} }
void dtv_property_cache_submit(struct dvb_frontend *fe) static void dtv_property_cache_submit(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
...@@ -1180,7 +1181,8 @@ static int dvb_frontend_ioctl_legacy(struct inode *inode, struct file *file, ...@@ -1180,7 +1181,8 @@ static int dvb_frontend_ioctl_legacy(struct inode *inode, struct file *file,
static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file, static int dvb_frontend_ioctl_properties(struct inode *inode, struct file *file,
unsigned int cmd, void *parg); unsigned int cmd, void *parg);
int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp, static int dtv_property_process_get(struct dvb_frontend *fe,
struct dtv_property *tvp,
struct inode *inode, struct file *file) struct inode *inode, struct file *file)
{ {
int r = 0; int r = 0;
...@@ -1253,8 +1255,10 @@ int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp, ...@@ -1253,8 +1255,10 @@ int dtv_property_process_get(struct dvb_frontend *fe, struct dtv_property *tvp,
return r; return r;
} }
int dtv_property_process_set(struct dvb_frontend *fe, struct dtv_property *tvp, static int dtv_property_process_set(struct dvb_frontend *fe,
struct inode *inode, struct file *file) struct dtv_property *tvp,
struct inode *inode,
struct file *file)
{ {
int r = 0; int r = 0;
struct dvb_frontend_private *fepriv = fe->frontend_priv; struct dvb_frontend_private *fepriv = fe->frontend_priv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment