Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp440598pxj; Thu, 10 Jun 2021 04:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOidtWJfIcglVNPpdQGoDIjU2jsYlshhTv6sqcWMvh3dFoRk1IF00A7sRjgYDapuRpcvLC X-Received: by 2002:a17:906:5293:: with SMTP id c19mr3974278ejm.245.1623325450978; Thu, 10 Jun 2021 04:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623325450; cv=none; d=google.com; s=arc-20160816; b=blyCMYu6QJKywobrGWOKdFeVZkcCc/bwaZnTwywl5SPG11h1A27o+3/qRepxdh7isK h5Sm0/J+0p85UxK47CuqfGdPfFeqQf7I8cqXvzTfbOmStZGS9ANNj8qPaF/t8OEe/5qp ZbN2+7k7iD0ZF/QbcEyfjYfh/fe8u/N0xJkNismFkniNIfLKAzwVeME0Zmwi991j1oCB kS2zRTUoNg2bf9jmpAAD9+vu/atlG/Be+X7U7SB6ZTUedrprQmsLwwquLNhmfRTwMUwr Chl3xN+DFUe4eaYD0VEyxHyBjCHu3VZKfubwsDABw5iyCIfDYgZtQbJoUMkVDju9WdQl ZnBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rP3YvXdIj0jKRm51KdkSUN/VsVbghxZfpOv+WRSihAs=; b=k/mrXRUjZafKDE2Sf3cHtU5w0urKJdxUZ0LjiF4lYoOF5ObMgQwVlGsIVAwcfGQmOV xZEuHS0NMUaKBPnDTHdxuY0AE3WVgDlGPwRc4gK/B/W2bo8S1mVREL7Xf0/GBssNJyNc 0s9XFTrVssv/FGj8nQ5IYQVYJhfO16A+r/0caBgdYXdqD3NrgAUfyhNdj3rF4juayE+K iGbxX+151oRfrCF18cI77YvqDwyex1xVkoooXIeEGKComPzVCKAifqclDLLfeTGzyvpV UKbXBEJlkpzmgq+Bal6nPu/4T3XZRMs7LffVszZ9NtGkm5nlfQd/XfzjKXPmpdHWrF8z Ghuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e20si2263396ejd.727.2021.06.10.04.43.47; Thu, 10 Jun 2021 04:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbhFJLnu (ORCPT + 99 others); Thu, 10 Jun 2021 07:43:50 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3832 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbhFJLnt (ORCPT ); Thu, 10 Jun 2021 07:43:49 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G124p1VmtzWtC7; Thu, 10 Jun 2021 19:36:58 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 19:41:51 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 19:41:51 +0800 From: Baokun Li To: , , , , , , CC: , , , , Subject: [PATCH -next] libceph: fix doc warnings in cls_lock_client.c Date: Thu, 10 Jun 2021 19:50:58 +0800 Message-ID: <20210610115058.3779341-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add description to fixes the following W=1 kernel build warning(s): 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' net/ceph/cls_lock_client.c:93: warning: Function parameter or member 'osdc' not described in 'ceph_cls_unlock' net/ceph/cls_lock_client.c:93: warning: Function parameter or member 'oid' not described in 'ceph_cls_unlock' net/ceph/cls_lock_client.c:93: warning: Function parameter or member 'oloc' not described in 'ceph_cls_unlock' net/ceph/cls_lock_client.c:143: warning: Function parameter or member 'osdc' not described in 'ceph_cls_break_lock' net/ceph/cls_lock_client.c:143: warning: Function parameter or member 'oid' not described in 'ceph_cls_break_lock' net/ceph/cls_lock_client.c:143: warning: Function parameter or member 'oloc' not described in 'ceph_cls_break_lock' Signed-off-by: Baokun Li --- net/ceph/cls_lock_client.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/net/ceph/cls_lock_client.c b/net/ceph/cls_lock_client.c index 17447c19d937..82b7f3e3862f 100644 --- a/net/ceph/cls_lock_client.c +++ b/net/ceph/cls_lock_client.c @@ -10,7 +10,9 @@ /** * ceph_cls_lock - grab rados lock for object - * @oid, @oloc: object to lock + * @osdc: working on this ceph osd client + * @oid: object to lock + * @oloc: object to lock * @lock_name: the name of the lock * @type: lock type (CEPH_CLS_LOCK_EXCLUSIVE or CEPH_CLS_LOCK_SHARED) * @cookie: user-defined identifier for this instance of the lock @@ -82,7 +84,9 @@ EXPORT_SYMBOL(ceph_cls_lock); /** * ceph_cls_unlock - release rados lock for object - * @oid, @oloc: object to lock + * @osdc: working on this ceph osd client + * @oid: object to lock + * @oloc: object to lock * @lock_name: the name of the lock * @cookie: user-defined identifier for this instance of the lock */ @@ -130,7 +134,9 @@ EXPORT_SYMBOL(ceph_cls_unlock); /** * ceph_cls_break_lock - release rados lock for object for specified client - * @oid, @oloc: object to lock + * @osdc: working on this ceph osd client + * @oid: object to lock + * @oloc: object to lock * @lock_name: the name of the lock * @cookie: user-defined identifier for this instance of the lock * @locker: current lock owner -- 2.31.1