0005-Remove-new_sync-for-Linux-4.1.patch 1006 B

12345678910111213141516171819202122232425262728
  1. From fbb6fe5ec57a2a0a9464ec5c433fc18793ebb05f Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?D=C4=81vis?= <davispuh@gmail.com>
  3. Date: Thu, 17 Sep 2015 18:05:29 +0300
  4. Subject: [PATCH] Remove new_sync for Linux >= 4.1
  5. ---
  6. open-vm-tools/modules/linux/vmhgfs/file.c | 2 ++
  7. 1 file changed, 2 insertions(+)
  8. diff --git a/open-vm-tools/modules/linux/vmhgfs/file.c b/open-vm-tools/modules/linux/vmhgfs/file.c
  9. index 0bc5ee3..ada3eee 100644
  10. --- a/open-vm-tools/modules/linux/vmhgfs/file.c
  11. +++ b/open-vm-tools/modules/linux/vmhgfs/file.c
  12. @@ -169,8 +169,10 @@ struct file_operations HgfsFileFileOperations = {
  13. .flush = HgfsFlush,
  14. #if defined VMW_USE_AIO
  15. #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
  16. +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
  17. .read = new_sync_read,
  18. .write = new_sync_write,
  19. +#endif // LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
  20. .read_iter = HgfsFileRead,
  21. .write_iter = HgfsFileWrite,
  22. #else // LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
  23. ---
  24. 2.5.2