Message ID | 20230810141947.1236730-8-arnd@kernel.org |
---|---|
State | New |
Headers | show |
Series | -Wmissing-prototype warning fixes | expand |
Arnd, > The qlogicpti_info() function is only used in this file and should be > static to avoid a warning: > > drivers/scsi/qlogicpti.c:846:13: error: no previous prototype for > 'qlogicpti_info' [-Werror=missing-prototypes] Applied to 6.6/scsi-staging, thanks!
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index f88a5421c483f..3b95f7a6216fe 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -843,7 +843,7 @@ static int qpti_map_queues(struct qlogicpti *qpti) return 0; } -const char *qlogicpti_info(struct Scsi_Host *host) +static const char *qlogicpti_info(struct Scsi_Host *host) { static char buf[80]; struct qlogicpti *qpti = (struct qlogicpti *) host->hostdata;