Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp510493pxj; Thu, 10 Jun 2021 06:19:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV2KoJ9CYiaAaAp+nkhvIwxo2W9nr1bIlOmMG/QpWBGG8KpKgfsnvxMVH6JGzBy2sPZxr7 X-Received: by 2002:a05:6402:128d:: with SMTP id w13mr4805111edv.38.1623331144352; Thu, 10 Jun 2021 06:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623331144; cv=none; d=google.com; s=arc-20160816; b=BJrjcLFc3hI2sWKlgH6Fnylok4jMrWhLwpeMjKfY/I0VuWRaKHK5lccNsTXAaDvoRN Y/lBrGkywL0GUrilBJOgCF6114GbPhbshqpMKlyyAWmId9bE0KXIbFF0jx6VrkOXtuvV 6iz6QraMRj91hU8h9KIqmfhA2UrRNDrKyN7OXYdg4TMhfbnaqE3JZxP6PtxxcW9SSsq6 3WuK3cleYvvQMeyxF6asQUKNaVtoNooN86h0QeQbeZSssIkIQ+Iof3mmv3IM+YCtz9RL Vko31HVeG5y/HrosgYuED5LnBQNoyX/qnmmyRDnuj0EX2HeB11UR3bOd0A3O5nIFM7tz Rbsw== 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=m57Ge5zi3p88RnCK7tvf4C8ltVLtG8lAMKhVpmy3YzQ=; b=RSXTjxSckmUakBo+A238N8SaUWz6qIezhYh1DaFfWzboXfnfuGytEestxRak1Ku8B8 0WRy1m1K54Pa77+kpCkQDxOrOHHgHFZk4TuwIGDu11BX60oq9BC5gwxxCK227OtDioOr cv7X6ixTMSXPHb3vJ7/tDZ24hQKtnC30gKurvC1/XIXzU5DeBCCwAPmGpT1gM8TMB861 8+95Uf3V9WFZEDEmQHKkif8Dci4JY/DFWyVAFGdenApiFJfaRTfZpdWJRgaqWAQNZVRe NBvWoYnf3N1qYUC9gm/4XFAIc/E92ffdBsglSdXuPFxwnMQtcQitHhnjVw95MbZQoEnI DkRA== 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 v5si2308491edi.582.2021.06.10.06.18.39; Thu, 10 Jun 2021 06:19:04 -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 S230332AbhFJNS5 (ORCPT + 99 others); Thu, 10 Jun 2021 09:18:57 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3836 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbhFJNSz (ORCPT ); Thu, 10 Jun 2021 09:18:55 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G14BV6cLtzWqfk; Thu, 10 Jun 2021 21:12:02 +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 21:16:56 +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 21:16:55 +0800 From: Baokun Li To: , , , , CC: , , , , Subject: [PATCH -next] dccp: tfrc: fix doc warnings in tfrc_equation.c Date: Thu, 10 Jun 2021 21:26:03 +0800 Message-ID: <20210610132603.597563-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 for `tfrc_invert_loss_event_rate` to fix the W=1 warnings: net/dccp/ccids/lib/tfrc_equation.c:695: warning: Function parameter or member 'loss_event_rate' not described in 'tfrc_invert_loss_event_rate' Signed-off-by: Baokun Li --- net/dccp/ccids/lib/tfrc_equation.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/dccp/ccids/lib/tfrc_equation.c b/net/dccp/ccids/lib/tfrc_equation.c index e2a337fa9ff7..92a8c6bea316 100644 --- a/net/dccp/ccids/lib/tfrc_equation.c +++ b/net/dccp/ccids/lib/tfrc_equation.c @@ -688,6 +688,7 @@ u32 tfrc_calc_x_reverse_lookup(u32 fvalue) /** * tfrc_invert_loss_event_rate - Compute p so that 10^6 corresponds to 100% + * @loss_event_rate: loss event rate to invert * When @loss_event_rate is large, there is a chance that p is truncated to 0. * To avoid re-entering slow-start in that case, we set p = TFRC_SMALLEST_P > 0. */ -- 2.31.1