Commit 72444bbd authored by Lee Jones's avatar Lee Jones Committed by Martin K. Petersen

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: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ab3f2d15
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
#undef C #undef C
#define C(a) (#a) #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; static const char * const strings[] = PORT_STATES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment