From 96bc8d2d425b88a2a83a25910f0f02ecea864d1b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 24 Feb 2019 16:52:46 +0000 Subject: [PATCH] scst: Remove the kernel_write() backport Remove this backport since it is not used anywhere in the SCST project. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7988 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 8011d4921..de48788f9 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -452,21 +452,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 /* */