mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
scsi: lpfc: Move trunk_errmsg[] from a header file into a .c file
Arrays should be defined in .c files instead of in a header file. This patch reduces the size of the lpfc kernel module. Cc: James Smart <james.smart@broadcom.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Acked-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
cd05c155d7
commit
a73cb81492
2 changed files with 18 additions and 16 deletions
|
@ -71,6 +71,23 @@
|
||||||
#define LPFC_REG_WRITE_KEY_SIZE 4
|
#define LPFC_REG_WRITE_KEY_SIZE 4
|
||||||
#define LPFC_REG_WRITE_KEY "EMLX"
|
#define LPFC_REG_WRITE_KEY "EMLX"
|
||||||
|
|
||||||
|
const char *const trunk_errmsg[] = { /* map errcode */
|
||||||
|
"", /* There is no such error code at index 0*/
|
||||||
|
"link negotiated speed does not match existing"
|
||||||
|
" trunk - link was \"low\" speed",
|
||||||
|
"link negotiated speed does not match"
|
||||||
|
" existing trunk - link was \"middle\" speed",
|
||||||
|
"link negotiated speed does not match existing"
|
||||||
|
" trunk - link was \"high\" speed",
|
||||||
|
"Attached to non-trunking port - F_Port",
|
||||||
|
"Attached to non-trunking port - N_Port",
|
||||||
|
"FLOGI response timeout",
|
||||||
|
"non-FLOGI frame received",
|
||||||
|
"Invalid FLOGI response",
|
||||||
|
"Trunking initialization protocol",
|
||||||
|
"Trunk peer device mismatch",
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* lpfc_jedec_to_ascii - Hex to ascii convertor according to JEDEC rules
|
* lpfc_jedec_to_ascii - Hex to ascii convertor according to JEDEC rules
|
||||||
* @incr: integer to convert.
|
* @incr: integer to convert.
|
||||||
|
|
|
@ -4084,22 +4084,7 @@ struct lpfc_acqe_grp5 {
|
||||||
uint32_t trailer;
|
uint32_t trailer;
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *const trunk_errmsg[] = { /* map errcode */
|
extern const char *const trunk_errmsg[];
|
||||||
"", /* There is no such error code at index 0*/
|
|
||||||
"link negotiated speed does not match existing"
|
|
||||||
" trunk - link was \"low\" speed",
|
|
||||||
"link negotiated speed does not match"
|
|
||||||
" existing trunk - link was \"middle\" speed",
|
|
||||||
"link negotiated speed does not match existing"
|
|
||||||
" trunk - link was \"high\" speed",
|
|
||||||
"Attached to non-trunking port - F_Port",
|
|
||||||
"Attached to non-trunking port - N_Port",
|
|
||||||
"FLOGI response timeout",
|
|
||||||
"non-FLOGI frame received",
|
|
||||||
"Invalid FLOGI response",
|
|
||||||
"Trunking initialization protocol",
|
|
||||||
"Trunk peer device mismatch",
|
|
||||||
};
|
|
||||||
|
|
||||||
struct lpfc_acqe_fc_la {
|
struct lpfc_acqe_fc_la {
|
||||||
uint32_t word0;
|
uint32_t word0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue