mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
fcst: RHEL 6 build fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4031 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -118,7 +118,8 @@ extern struct scst_tgt_template ft_scst_template;
|
||||
int ft_prli(struct fc_rport_priv *, u32 spp_len,
|
||||
const struct fc_els_spp *, struct fc_els_spp *);
|
||||
void ft_prlo(struct fc_rport_priv *);
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) \
|
||||
&& (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 5)
|
||||
void ft_recv(struct fc_lport *, struct fc_seq *, struct fc_frame *);
|
||||
#else
|
||||
void ft_recv(struct fc_lport *, struct fc_frame *);
|
||||
|
||||
@@ -490,7 +490,8 @@ void ft_prlo(struct fc_rport_priv *rdata)
|
||||
* Caller has verified that the frame is type FCP.
|
||||
* Note that this may be called directly from the softirq context.
|
||||
*/
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
|
||||
#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)
|
||||
#else
|
||||
void ft_recv(struct fc_lport *lport, struct fc_frame *fp)
|
||||
@@ -508,7 +509,8 @@ void ft_recv(struct fc_lport *lport, struct fc_frame *fp)
|
||||
sess = ft_sess_get(lport, sid);
|
||||
if (!sess) {
|
||||
FT_SESS_DBG("sid %x sess lookup failed\n", sid);
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36) \
|
||||
&& (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 5)
|
||||
lport->tt.exch_done(sp);
|
||||
#endif
|
||||
/* TBD XXX - if FCP_CMND, send LOGO */
|
||||
|
||||
Reference in New Issue
Block a user