scst: Fix the procfs build

Move the definition of scst_get_opcode_name() up such that it occurs
outside #ifndef CONFIG_SCST_PROC / #endif. See also r5491.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-05-07 08:38:47 +00:00
parent 5e40f25182
commit f3d2fadbac

View File

@@ -4608,6 +4608,15 @@ static inline void put_unaligned_be24(const uint32_t v, uint8_t *const p)
p[2] = v >> 0;
}
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
const char *scst_get_opcode_name(struct scst_cmd *cmd);
#else
static inline const char *scst_get_opcode_name(struct scst_cmd *cmd)
{
return cmd->op_name;
}
#endif
#ifndef CONFIG_SCST_PROC
/*
@@ -4642,15 +4651,6 @@ int scst_wait_info_completion(struct scst_sysfs_user_info *info,
unsigned int scst_get_setup_id(void);
#if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING)
const char *scst_get_opcode_name(struct scst_cmd *cmd);
#else
static inline const char *scst_get_opcode_name(struct scst_cmd *cmd)
{
return cmd->op_name;
}
#endif
/*
* Needed to avoid potential circular locking dependency between scst_mutex