Mark functions as static in gdth.c because they are not used outside this file. This eliminates the following warnings in gdth.c: drivers/scsi/gdth.c:445:5: warning: no previous prototype for ‘__gdth_execute’ [-Wmissing-prototypes] drivers/scsi/gdth.c:3830:12: warning: no previous prototype for ‘option_setup’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx> Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx> --- drivers/scsi/gdth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index ce5ef01..8015f1b 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c @@ -442,8 +442,8 @@ static void gdth_scsi_done(struct scsi_cmnd *scp) scp->scsi_done(scp); } -int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd, - int timeout, u32 *info) +static int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, + char *cmnd, int timeout, u32 *info) { gdth_ha_str *ha = shost_priv(sdev->host); Scsi_Cmnd *scp; @@ -3827,7 +3827,7 @@ static void __init internal_setup(char *str,int *ints) } } -int __init option_setup(char *str) +static int __init option_setup(char *str) { int ints[MAXHA]; char *cur = str; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html