summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2021-03-17 10:11:24 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-03-19 03:52:30 +0100
commit72444bbd047f4510ad1f01978103299690abf07e (patch)
tree16f0cde2966d264a83df6de34ffab720b3a6d316 /drivers/scsi/isci
parentscsi: isci: Make local function isci_remote_device_wait_for_resume_from_abort... (diff)
downloadlinux-72444bbd047f4510ad1f01978103299690abf07e.tar.xz
linux-72444bbd047f4510ad1f01978103299690abf07e.zip
scsi: isci: Make local function port_state_name() static
Fixes the following W=1 kernel build warning(s): drivers/scsi/isci/port.c:65:13: warning: no previous prototype for ‘port_state_name’ [-Wmissing-prototypes] Link: https://lore.kernel.org/r/20210317091125.2910058-8-lee.jones@linaro.org Cc: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/isci')
-rw-r--r--drivers/scsi/isci/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/port.c b/drivers/scsi/isci/port.c
index 448a8c31ba35..5a362ba76d63 100644
--- a/drivers/scsi/isci/port.c
+++ b/drivers/scsi/isci/port.c
@@ -62,7 +62,7 @@
#undef C
#define C(a) (#a)
-const char *port_state_name(enum sci_port_states state)
+static const char *port_state_name(enum sci_port_states state)
{
static const char * const strings[] = PORT_STATES;