Skip to content

Commit

Permalink
[media] drxd_hard: get rid of warning: no previous prototype
Browse files Browse the repository at this point in the history
drivers/media/dvb-frontends/drxd_hard.c:1751:5: warning: no previous prototype for 'SetOperationMode' [-Wmissing-prototypes]
drivers/media/dvb-frontends/drxd_hard.c:2615:5: warning: no previous prototype for 'DRXD_init' [-Wmissing-prototypes]
drivers/media/dvb-frontends/drxd_hard.c:2777:5: warning: no previous prototype for 'DRXD_status' [-Wmissing-prototypes]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 27, 2012
1 parent c246ffc commit 8b35c2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/media/dvb-frontends/drxd_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,8 @@ static int DRX_Stop(struct drxd_state *state)
return status;
}

int SetOperationMode(struct drxd_state *state, int oMode)
#if 0 /* Currently unused */
static int SetOperationMode(struct drxd_state *state, int oMode)
{
int status;

Expand Down Expand Up @@ -1788,6 +1789,7 @@ int SetOperationMode(struct drxd_state *state, int oMode)
state->operation_mode = oMode;
return status;
}
#endif

static int StartDiversity(struct drxd_state *state)
{
Expand Down Expand Up @@ -2612,7 +2614,7 @@ static int CDRXD(struct drxd_state *state, u32 IntermediateFrequency)
return 0;
}

int DRXD_init(struct drxd_state *state, const u8 * fw, u32 fw_size)
static int DRXD_init(struct drxd_state *state, const u8 *fw, u32 fw_size)
{
int status = 0;
u32 driverVersion;
Expand Down Expand Up @@ -2774,7 +2776,7 @@ int DRXD_init(struct drxd_state *state, const u8 * fw, u32 fw_size)
return status;
}

int DRXD_status(struct drxd_state *state, u32 * pLockStatus)
static int DRXD_status(struct drxd_state *state, u32 *pLockStatus)
{
DRX_GetLockStatus(state, pLockStatus);

Expand Down

0 comments on commit 8b35c2f

Please sign in to comment.