fcst: Fix two sparse warnings

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4870 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-05-20 06:39:24 +00:00
parent 8c3fc40784
commit 33c0e52b93
+5 -4
View File
@@ -440,8 +440,8 @@ fill:
*
* Returns spp response code.
*/
int ft_prli(struct fc_rport_priv *rdata, u32 spp_len,
const struct fc_els_spp *rspp, struct fc_els_spp *spp)
static int ft_prli(struct fc_rport_priv *rdata, u32 spp_len,
const struct fc_els_spp *rspp, struct fc_els_spp *spp)
{
int ret;
@@ -526,9 +526,10 @@ static inline u32 fc_frame_sid(const struct fc_frame *fp)
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) \
&& (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 5)
void ft_recv(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp)
static void ft_recv(struct fc_lport *lport, struct fc_seq *sp,
struct fc_frame *fp)
#else
void ft_recv(struct fc_lport *lport, struct fc_frame *fp)
static void ft_recv(struct fc_lport *lport, struct fc_frame *fp)
#endif
{
struct ft_sess *sess;