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:
Bart Van Assche
2011-12-27 10:38:01 +00:00
parent 256de061ef
commit 59da9cd84b
2 changed files with 6 additions and 3 deletions

View File

@@ -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 *);

View File

@@ -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 */