diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-04-11 14:53:20 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-15 22:04:40 -0400 |
commit | c4dc7cd314398f03c1c6e5034b8913aeb40b2646 (patch) | |
tree | 98bd61ba8fc98b4908a480528e43b2b4d0a078ac /drivers/scsi/qla2xxx/qla_def.h | |
parent | 58e2753c1163ebce9be0c8938cac2f237716eda1 (diff) | |
download | lwn-c4dc7cd314398f03c1c6e5034b8913aeb40b2646.tar.gz lwn-c4dc7cd314398f03c1c6e5034b8913aeb40b2646.zip |
scsi: qla2xxx: Move the port_state_str[] definition from a .h to a .c file
Reduce the size of the qla2xxx kernel module by moving an array definition
from a .h into a .c file.
Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index e2c063796203..c9f0169b21ea 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2472,13 +2472,7 @@ struct event_arg { #define FCS_DEVICE_LOST 3 #define FCS_ONLINE 4 -static const char * const port_state_str[] = { - "Unknown", - "UNCONFIGURED", - "DEAD", - "LOST", - "ONLINE" -}; +extern const char *const port_state_str[5]; /* * FC port flags. |