Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2387746pxb; Sun, 3 Apr 2022 05:14:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAn/aFy82/rS+XIhCIiWotLypoHcWIY8vooJnjrra4dlEVYToZDbcX7m3yLtgBKYD4qpGc X-Received: by 2002:a17:902:a981:b0:156:52b2:40d6 with SMTP id bh1-20020a170902a98100b0015652b240d6mr18114612plb.34.1648988095512; Sun, 03 Apr 2022 05:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648988095; cv=none; d=google.com; s=arc-20160816; b=rqtnDuXJEm7dqzz3O7n0xgZLRllBQDp4sRVVIJu10u6qZ1Dd1pJ5tr7BPnNZ6KAV5F l7Sbfv+Twm1TpkQcXqJDcR5KV5nrzh27SM5WXYk1HEnD91ahnH96HVRtD9sAboLpfJ8z OLKrAcpLhIf5jIRyP7qAdLCoI9R4i5hbWf3zT7g+ZTkZFt60LGUZ/EcIsWH8WIbIxU9q CNTbyuL789/6so/iyoX5Z3sUD9W4AfDTKjnozujvWF/kivro0OLW6lB6ipW6rUuTjGbf Jt3MwrvLKCbzASqCuJ/aNZbZ8z03zrdOAh66nnd9otaH+3cAvgekNuLRUwhl0fbDT3z5 HIAw== 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=GmwpficJihRgmL7McmSxPNIgO8a7JIkQHi3mChr3GUg=; b=yjnOHhzrMoPfHbdNN/Qrgp4lCmJu6NgvQJqfII/KoOTuWN1rCKTKZYHb9sW/WWrNWq +RSEtJ+rR/hlYwxMFqLTUD/FhTHyx3sFVrjG+jzfIEzu4E7aoAHoTAiUZHVi541ixOMA G0aNLKEMFy62r0zWb9EuWYZxQ5QlkO74T0OCn8HjvAbzvAa57sRDn61f7PSwpKhfZjsF mlf6Lmn238rPIBEP6lCI5Kj5KrvWXN0t42IrLLF4Nwqmr1z5mLLVdpaMDQHWuup6qXro zWLAsrg27wkPxHFdrneyeot6u4Wd+cJ1QFyK7g88nf4exRjGiQjPLTNaXtUDScz3bpXI fFGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a170902788d00b00153b2d16518si6676436pll.288.2022.04.03.05.14.19; Sun, 03 Apr 2022 05:14:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233823AbiDBHWO (ORCPT + 99 others); Sat, 2 Apr 2022 03:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbiDBHWM (ORCPT ); Sat, 2 Apr 2022 03:22:12 -0400 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 313D114B85E for ; Sat, 2 Apr 2022 00:20:21 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R981e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V8yXVIm_1648884017; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V8yXVIm_1648884017) by smtp.aliyun-inc.com(127.0.0.1); Sat, 02 Apr 2022 15:20:18 +0800 From: Yang Li To: rostedt@goodmis.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] tracing: Fix tracing_map_sort_entries() kernel-doc comment Date: Sat, 2 Apr 2022 15:20:15 +0800 Message-Id: <20220402072015.45864-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the description of @n_sort_keys and make @sort_key -> @sort_keys in tracing_map_sort_entries() kernel-doc comment to remove warnings found by running scripts/kernel-doc, which is caused by using 'make W=1'. kernel/trace/tracing_map.c:1073: warning: Function parameter or member 'sort_keys' not described in 'tracing_map_sort_entries' kernel/trace/tracing_map.c:1073: warning: Function parameter or member 'n_sort_keys' not described in 'tracing_map_sort_entries' kernel/trace/tracing_map.c:1073: warning: Excess function parameter 'sort_key' description in 'tracing_map_sort_entries' Reported-by: Abaci Robot Signed-off-by: Yang Li --- kernel/trace/tracing_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trace/tracing_map.c b/kernel/trace/tracing_map.c index 9628b5571846..9901708ce6b8 100644 --- a/kernel/trace/tracing_map.c +++ b/kernel/trace/tracing_map.c @@ -1045,7 +1045,8 @@ static void sort_secondary(struct tracing_map *map, /** * tracing_map_sort_entries - Sort the current set of tracing_map_elts in a map * @map: The tracing_map - * @sort_key: The sort key to use for sorting + * @sort_keys: The sort key to use for sorting + * @n_sort_keys: hitcount, always have at least one * @sort_entries: outval: pointer to allocated and sorted array of entries * * tracing_map_sort_entries() sorts the current set of entries in the -- 2.20.1.7.g153144c