From 23a55be3611a7802fd397b258ca3ac7eaff7746f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 2 Aug 2010 17:01:06 +0000 Subject: [PATCH] Fixed a compiler warning that was only reported on RHEL 5.x. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1905 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 1a271830d..590ca9e3e 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -130,8 +130,13 @@ module_param(srpt_sq_size, int, 0444); MODULE_PARM_DESC(srpt_sq_size, "Per-channel send queue (SQ) size."); +#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 +static int srpt_autodetect_cred_req = true; +module_param(srpt_autodetect_cred_req, int, 0444); +#else static bool srpt_autodetect_cred_req = true; module_param(srpt_autodetect_cred_req, bool, 0444); +#endif MODULE_PARM_DESC(srpt_autodetect_cred_req, "Whether or not to autodetect whether the initiator supports" " SRP_CRED_REQ.");