From 6297569bcefde1c77e144950e7dae41d2ebc939d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 13 Nov 2010 22:29:12 +0000 Subject: [PATCH] ib_srpt: Builds again on RHEL 5 (enable_proc). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2696 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index afee8ed64..f97fbbb40 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3314,6 +3314,7 @@ static uint16_t srpt_get_scsi_transport_version(struct scst_tgt *scst_tgt) return 0x0940; /* SRP */ } +#if !defined(CONFIG_SCST_PROC) static ssize_t show_req_lim(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { @@ -3350,6 +3351,7 @@ static const struct attribute *srpt_sess_attrs[] = { &srpt_req_lim_delta_attr.attr, NULL }; +#endif /* SCST target template for the SRP target implementation. */ static struct scst_tgt_template srpt_template = {