scst: Remove the kernel_write() backport (merge r7988 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@8004 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-03-06 17:00:04 +00:00
parent 8bd5fea925
commit 6112faf92f

View File

@@ -444,21 +444,6 @@ 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))
/*
* See also commit 7bb307e894d5 ("export kernel_write(), convert open-coded
* instances") # v3.10.
*/
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) && !defined(RHEL_MAJOR)
static inline ssize_t
kernel_write_backport(struct file *file, void *buf, size_t count, loff_t *pos)
{
return kernel_write(file, *pos, buf, count);
}
#define kernel_write(file, buf, count, pos) \
kernel_write_backport((file), (buf), (count), (pos))
#endif
#endif
/* <linux/iocontext.h> */