Commit dc915ecd authored by Baokun Li's avatar Baokun Li Committed by Ilya Dryomov

libceph: fix doc warnings in cls_lock_client.c

Add description to fix the following W=1 kernel build warnings:

 net/ceph/cls_lock_client.c:28: warning: Function parameter or
  member 'osdc' not described in 'ceph_cls_lock'
 net/ceph/cls_lock_client.c:28: warning: Function parameter or
  member 'oid' not described in 'ceph_cls_lock'
 net/ceph/cls_lock_client.c:28: warning: Function parameter or
  member 'oloc' not described in 'ceph_cls_lock'

[ idryomov: tweak osdc description ]
Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
Reviewed-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent da6ebb4d
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
/** /**
* ceph_cls_lock - grab rados lock for object * ceph_cls_lock - grab rados lock for object
* @oid, @oloc: object to lock * @osdc: OSD client instance
* @oid: object to lock
* @oloc: object to lock
* @lock_name: the name of the lock * @lock_name: the name of the lock
* @type: lock type (CEPH_CLS_LOCK_EXCLUSIVE or CEPH_CLS_LOCK_SHARED) * @type: lock type (CEPH_CLS_LOCK_EXCLUSIVE or CEPH_CLS_LOCK_SHARED)
* @cookie: user-defined identifier for this instance of the lock * @cookie: user-defined identifier for this instance of the lock
...@@ -82,7 +84,9 @@ EXPORT_SYMBOL(ceph_cls_lock); ...@@ -82,7 +84,9 @@ EXPORT_SYMBOL(ceph_cls_lock);
/** /**
* ceph_cls_unlock - release rados lock for object * ceph_cls_unlock - release rados lock for object
* @oid, @oloc: object to lock * @osdc: OSD client instance
* @oid: object to lock
* @oloc: object to lock
* @lock_name: the name of the lock * @lock_name: the name of the lock
* @cookie: user-defined identifier for this instance of the lock * @cookie: user-defined identifier for this instance of the lock
*/ */
...@@ -130,7 +134,9 @@ EXPORT_SYMBOL(ceph_cls_unlock); ...@@ -130,7 +134,9 @@ EXPORT_SYMBOL(ceph_cls_unlock);
/** /**
* ceph_cls_break_lock - release rados lock for object for specified client * ceph_cls_break_lock - release rados lock for object for specified client
* @oid, @oloc: object to lock * @osdc: OSD client instance
* @oid: object to lock
* @oloc: object to lock
* @lock_name: the name of the lock * @lock_name: the name of the lock
* @cookie: user-defined identifier for this instance of the lock * @cookie: user-defined identifier for this instance of the lock
* @locker: current lock owner * @locker: current lock owner
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment