From 8c3fc40784455a4a1b5e88135f7d10b41b44809d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 20 May 2013 06:37:55 +0000 Subject: [PATCH] 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 --- fcst/ft_sess.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fcst/ft_sess.c b/fcst/ft_sess.c index 29601a553..17c34f072 100644 --- a/fcst/ft_sess.c +++ b/fcst/ft_sess.c @@ -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.