fcst: Fix build on pre-2.6.36 kernels

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-05-20 06:37:55 +00:00
parent 8614645098
commit 8c3fc40784
+7
View File
@@ -512,6 +512,13 @@ static void ft_prlo(struct fc_rport_priv *rdata)
rdata->prli_count--;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
static inline u32 fc_frame_sid(const struct fc_frame *fp)
{
return ntoh24(fc_frame_header_get(fp)->fh_s_id);
}
#endif
/*
* Handle incoming FCP request.
* Caller has verified that the frame is type FCP.