From patchwork Wed Dec 20 06:12:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 181477 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2445664dyi; Tue, 19 Dec 2023 22:12:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWF6PEnhib4qJ5fkGjGR3+Ko+3svIf9FAFy+eAiWc0BYQ4IwFsklrI8OnQf0neYMJuY6u6 X-Received: by 2002:a05:6870:5149:b0:203:31f4:6962 with SMTP id z9-20020a056870514900b0020331f46962mr12332141oak.4.1703052768474; Tue, 19 Dec 2023 22:12:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703052768; cv=none; d=google.com; s=arc-20160816; b=CrnSkDvjf9zF9uctb4IFyxuwuZwF7O4+8AB/9mkmcoMAj8D83tvNvVB6cNS6ME7v35 EEaPtrE+Y2KVw/FWWwjenv/zJ8RyH+w2FG/VDjwdWETY5qhidji0D3gUkwbgJW92i6IG nE4wdz6wNHEYzTKyQzgtvwwF3ox/NlAMVCz+b3JOfjLlLTy8BkEmscSSwz6g5VpvrhTp PElhHr77vj5+UdVy+gvWFgiBdpgz4kYZlKM9KgYuWegc4rE5UEX1Dha0igiFc68gE27i 6gwgN+PrcLzFK3xRBYWBbLAKxc3/shB/VGw8EZ1tSVVB8fwTtB2BX4j5E12OvdpkvoYk Hk9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8LwcoNWLw53BgmXy5gUdC1weECvf6zvN6TtH0526JlA=; fh=x6bFp+mhgqMV/dwhSAZRyZCkbVbjcD/+SDmZm+wCYbw=; b=QXLD5ZzpcViQRrlogMHqx/vfbrsIoyXARYpBb6ogUR9eg0mjDW/Xnq3l8wDxiVa95T 2fxyh5HlzEHGXcftc2PbCcvZ9u17DjON7ngx8sNGdMM4/1xT7+ZIasJnAKYKMP8g6BwU AkIyiMAn1u3HENeAQk7hdKDZr0wO+kVAiFYp6QOuihCCZFtCOmh+cfx93JjHMVnmfgdk /sNAGBeNCj39biJrQvgXCmAQNLoyK2pssE7GriJJEZWTmeJ4csqwiZd/gZdec4Zw8DxI 6oA0yRFw7A/Rn849MMPvVWM476ZCPZTAQ/y3v2lycMfCqmlcaOuWw0/sL5Nmq5AesRak HZSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=foyUaFl+; spf=pass (google.com: domain of linux-kernel+bounces-6412-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6412-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o62-20020a634141000000b005cda25b2bd9si4458550pga.188.2023.12.19.22.12.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 22:12:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6412-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=foyUaFl+; spf=pass (google.com: domain of linux-kernel+bounces-6412-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6412-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 301CF2888E6 for ; Wed, 20 Dec 2023 06:12:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E06F13AC4; Wed, 20 Dec 2023 06:12:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="foyUaFl+" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0316F125A2; Wed, 20 Dec 2023 06:12:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=8LwcoNWLw53BgmXy5gUdC1weECvf6zvN6TtH0526JlA=; b=foyUaFl+Vv1WsP8BPW2UH/v+Fa dJE7GexHhUblWUPRStMyDEZtH0At0hzA4dY6eXnmVA+PYWuiFk5lV9N5xMlbTrfOrrgfbfp9Ac2Zn ZZ7hvkpzZGtnXduuGsdRAItaZYzJ3mMl0iMz/u60dKG7s43VuD0tTZBt4YEP5qpfkkkQOGn3QOY74 62nKH5ejoLIo0q+81pcRIeiNSwnEUyF8FBjELnKRYsUcziQBaZN39bOv+DOAUFCCM8B2Fv34fH/6V UpI4LE27dg6TSG+Z8HhTJ41t4y95ukuxnvNrMYclH2TTshwyHM8qb003KBlWOB6Ls1+L9kuFporJh B/Ksv9Aw==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFpog-00GH3V-30; Wed, 20 Dec 2023 06:12:27 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-trace-kernel@vger.kernel.org Subject: [PATCH] tracing/synthetic: fix kernel-doc warnings Date: Tue, 19 Dec 2023 22:12:26 -0800 Message-ID: <20231220061226.30962-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785780260033207965 X-GMAIL-MSGID: 1785780260033207965 scripts/kernel-doc warns about using @args: for variadic arguments to functions. Documentation/doc-guide/kernel-doc.rst says that this should be written as @...: instead, so update the source code to match that, preventing the warnings. trace_events_synth.c:1165: warning: Excess function parameter 'args' description in '__synth_event_gen_cmd_start' trace_events_synth.c:1714: warning: Excess function parameter 'args' description in 'synth_event_trace' Signed-off-by: Randy Dunlap Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Cc: linux-trace-kernel@vger.kernel.org Acked-by: Masami Hiramatsu (Google) --- kernel/trace/trace_events_synth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/kernel/trace/trace_events_synth.c b/kernel/trace/trace_events_synth.c --- a/kernel/trace/trace_events_synth.c +++ b/kernel/trace/trace_events_synth.c @@ -1137,7 +1137,7 @@ EXPORT_SYMBOL_GPL(synth_event_add_fields * @cmd: A pointer to the dynevent_cmd struct representing the new event * @name: The name of the synthetic event * @mod: The module creating the event, NULL if not created from a module - * @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 synth_event_gen_cmd_start() wrapper, which @@ -1695,7 +1695,7 @@ __synth_event_trace_end(struct synth_eve * synth_event_trace - Trace a synthetic event * @file: The trace_event_file representing the synthetic event * @n_vals: The number of values in vals - * @args: Variable number of args containing the event values + * @...: Variable number of args containing the event values * * Trace a synthetic event using the values passed in the variable * argument list.