Whamcloud - gitweb
LU-10560 libcfs: Fix inconsistent declaration for cfs_kernel_write() 48/31948/7
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Wed, 11 Apr 2018 12:20:05 +0000 (05:20 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 19 Apr 2018 04:38:50 +0000 (04:38 +0000)
The header file buffer should be const void * to match the

Test-Parameters: trivial

Change-Id: I3a09b84e4c3dbe39870be04ae98c13e9e6221a6d
Fixes: b9a32054600a8d63948cced361191aa6ae7ea8f2
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-on: https://review.whamcloud.com/31948
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

index 06f58e2..4901053 100644 (file)
@@ -117,7 +117,8 @@ int cfs_get_environ(const char *key, char *value, int *val_len);
 #define wait_queue_entry_t wait_queue_t
-int cfs_kernel_write(struct file *filp, char *buf, size_t count, loff_t *pos);
+int cfs_kernel_write(struct file *filp, const void *buf, size_t count,
+                    loff_t *pos);
  * For RHEL6 struct kernel_parm_ops doesn't exist. Also