From bd373cfa6e04fc4c0cab6aa3060e775555967402 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 25 Mar 2019 22:05:10 +0000 Subject: [PATCH] scst: Fix the kernel_write() backport for RHEL 6.x git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8078 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 7715ffbe1..386704575 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -453,7 +453,7 @@ kernel_read_backport(struct file *file, void *buf, size_t count, loff_t *pos) #define kernel_read(file, buf, count, pos) \ kernel_read_backport((file), (buf), (count), (pos)) -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) || defined(RHEL_MAJOR) /* * See also commit 7bb307e894d5 ("export kernel_write(), convert open-coded * instances") # v3.9.