Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1004012rdh; Fri, 27 Oct 2023 01:42:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIwfiFUoxE9W4b03v5CtPAJCo854ThzdaDqIwV3RJFRyIuNeUdq7BUapFbke8HfD28UqdF X-Received: by 2002:a25:918a:0:b0:d81:91b2:62ea with SMTP id w10-20020a25918a000000b00d8191b262eamr4547457ybl.1.1698396146251; Fri, 27 Oct 2023 01:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698396146; cv=none; d=google.com; s=arc-20160816; b=I/vVEoanmZ+f8Dypf7GNZrS2FCvX9kPBtgucamkB0uv49jyHkUmP7cpdm6N6BaGVdl AYH2VpOHwR3lnJd1wLtPmnlyNv6LoCt7YbcCcdThw1h+DGi+3q7QVISdSauyas6HFq3M /nD+RTw5QY+jdgjLhfLIykHFCWamHsganDTc3Itx847d3CNO9kSq1K1C148OOx/YMoW5 mtGTYyYuG/NIFJusQuUUE0zqPtQynS0NL4YTKErrpOFq/JM899cqkFfbSU95ZNyzx9nk tEctwFzTVTzHepZ3J4fL2r/3eI22JLmepHWupeC8GJBpTLum7gkVv2evfgW9ZUbyQaPB rFfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xK2pFr5GAzIQ3scH5dwtO9q5UfJLtIUXvIbAOvHWIU4=; fh=e1idSVCmYhtHXjEew7xhO7XHT2UWw5RFiTnVo38Uszg=; b=gQ5h9AzOHEGn/GERN1xqGBXlzyO4B8JWF1RqREchYilmmceEozjbXMU7CVfiL+KWbV qps2uasewRbaxqpI4/n67qy1oyeC6DA+H/qoO6/pgiEW2tXI5j/mS38komz4YFOd5uRE V85bSZPTuUcGOAqWXA8LSWVvvNw9PVUWWiQnP1IjQABuql6uOOwe5R/5+vflokp5xM7C T3nfC0RDwmDwGdEE3mFbYH4jvJiCPpNu/QdAqfQOABtfluRAEzzIAEwAiOo2CtyUYp7X znLK2jP29eTdd5AumP/2Ks4sXaFfangydoHrS374Ci3Mub3G6uX4Z/XBCRi/ropz8yNT R0nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HIq801a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v137-20020a252f8f000000b00d9cbd35093csi1733209ybv.529.2023.10.27.01.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 01:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HIq801a2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5B1DC83348B1; Fri, 27 Oct 2023 01:42:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345677AbjJ0Il6 (ORCPT + 99 others); Fri, 27 Oct 2023 04:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345650AbjJ0Ila (ORCPT ); Fri, 27 Oct 2023 04:41:30 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 210B2171D; Fri, 27 Oct 2023 01:40:55 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39R4it2A004319; Fri, 27 Oct 2023 08:40:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=xK2pFr5GAzIQ3scH5dwtO9q5UfJLtIUXvIbAOvHWIU4=; b=HIq801a28vefsOcBfQFlP6NF+17TJxUy/4nzDZPUzJq8SpSf5S8yi3lu/qt4l+wHfPhd VYO/a1p/UsFTNkjWnQr5P6I5YnZ0Uyfo3FEB259euMm7uJIWR3pCEiZRvebxW2KAfasE kOn7s6lRdkJJOuBHGxtlyEg7Dut/zLDuip2FTAr8g0u2xZFAPU6VotYSiqqRye3wCiEp dhEYXpMaFKMbFFxvU3nFR5NaH5JkatrQVpHi5Z2uAC+BB1grxIgLvoLxFdVeFeCpJgYV E60spMcjELBRlxs4sMY2VU4YL8oRt/q9QQ9SFnHBMJU+xR4Bqik+KLya5kPeQin/NPAI zg== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tyxas1fv5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 08:40:50 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39R8eoF4020292 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 08:40:50 GMT Received: from [10.214.66.81] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Fri, 27 Oct 2023 01:40:47 -0700 Message-ID: Date: Fri, 27 Oct 2023 14:10:44 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] tracing/kprobes: Fix the description of variable length arguments Content-Language: en-US To: Yujie Liu , Steven Rostedt CC: Masami Hiramatsu , Tom Zanussi , , , kernel test robot References: <20231027041315.2613166-1-yujie.liu@intel.com> From: Mukesh Ojha In-Reply-To: <20231027041315.2613166-1-yujie.liu@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: fjY3N6CHYf5pH3Y66ZhhZTAz3NQRREI4 X-Proofpoint-ORIG-GUID: fjY3N6CHYf5pH3Y66ZhhZTAz3NQRREI4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_06,2023-10-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 priorityscore=1501 phishscore=0 suspectscore=0 clxscore=1011 spamscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310270074 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 01:42:22 -0700 (PDT) On 10/27/2023 9:43 AM, Yujie Liu wrote: > Fix the following kernel-doc warnings: > > kernel/trace/trace_kprobe.c:1029: warning: Excess function parameter 'args' description in '__kprobe_event_gen_cmd_start' > kernel/trace/trace_kprobe.c:1097: warning: Excess function parameter 'args' description in '__kprobe_event_add_fields' > > Refer to the usage of variable length arguments elsewhere in the kernel > code, "@..." is the proper way to express it in the description. > > Fixes: 2a588dd1d5d6 ("tracing: Add kprobe event command generation functions") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202310190437.paI6LYJF-lkp@intel.com/ > Signed-off-by: Yujie Liu Not related to this patch, but I see order of the argument as well is not proper in the document of the __kprobe_event_gen_cmd_start(), if you can fix that too. LGTM, Thanks for this. Reviewed-by: Mukesh Ojha -Mukesh > --- > kernel/trace/trace_kprobe.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c > index a8fef6ab0872..95c5b0668cb7 100644 > --- a/kernel/trace/trace_kprobe.c > +++ b/kernel/trace/trace_kprobe.c > @@ -1007,7 +1007,7 @@ EXPORT_SYMBOL_GPL(kprobe_event_cmd_init); > * @name: The name of the kprobe event > * @loc: The location of the kprobe event > * @kretprobe: Is this a return probe? > - * @args: Variable number of arg (pairs), one pair for each field > + * @...: Variable number of arg (pairs), one pair for each field > * > * NOTE: Users normally won't want to call this function directly, but > * rather use the kprobe_event_gen_cmd_start() wrapper, which automatically > @@ -1080,7 +1080,7 @@ EXPORT_SYMBOL_GPL(__kprobe_event_gen_cmd_start); > /** > * __kprobe_event_add_fields - Add probe fields to a kprobe command from arg list > * @cmd: A pointer to the dynevent_cmd struct representing the new event > - * @args: Variable number of arg (pairs), one pair for each field > + * @...: Variable number of arg (pairs), one pair for each field > * > * NOTE: Users normally won't want to call this function directly, but > * rather use the kprobe_event_add_fields() wrapper, which