scsi: aic7xxx: make a couple of functions static
Subsystems (3)
PATCH 1/1 scsi: aic7xxx: make a couple of functions static
From: Colin Ian King <[email protected]>
Functions ahc_devlimited_syncrate and ahc_linux_initialize_scsi_bus are declared static in their prototypes but are missing in their definitions, so add the missing static.
Cleans up sparse warnings:
symbol 'ahc_devlimited_syncrate' was not declared. Should it be static? symbol 'ahc_linux_initialize_scsi_bus' was not declared. Should it be static?
Signed-off-by Colin Ian King <[email protected]>
--- drivers/scsi/aic7xxx/aic7xxx_core.c | 2 +- drivers/scsi/aic7xxx/aic7xxx_osm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/aic7xxx/aic7xxx_core.c +1 -1
@@ -2212,7 +2212,7 @@ ahc_free_tstate(struct ahc_softc *ahc, u_int scsi_id, char channel, int force)* by the capabilities of the bus connectivity of and sync settings for * the target. */ -const struct ahc_syncrate * +static const struct ahc_syncrate *ahc_devlimited_syncrate (struct ahc_softc *ahc,struct ahc_initiator_tinfo *tinfo,u_int *period,u_int *ppr_options,role_t role)
drivers/scsi/aic7xxx/aic7xxx_osm.c +1 -1
@@ -1141,7 +1141,7 @@ ahc_linux_register_host(struct ahc_softc *ahc, struct scsi_host_template *templa* or forcing transfer negotiations on the next command to any * target. */ -void +static void ahc_linux_initialize_scsi_bus (struct ahc_softc *ahc) {int i;
Signature · 1 line
2.14.1
Looks good,
Reviewed-by Johannes Thumshirn <[email protected]>
Signature · 10 lines
Johannes Thumshirn Storage [email protected] +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Martin K. Petersen
AppliedColin,
Quoted 3 lines
Functions
ahc_devlimited_syncrateandahc_linux_initialize_scsi_busare declared static in their prototypes but are missing in their definitions, so add the missing static.
Applied to 4.15/scsi-queue. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering