Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1343709rwl; Thu, 5 Jan 2023 12:08:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXsjw+1AKWu6Y4Vf1V2D4lyqXAR2mcsKuWmwViq9iD3/Twu2xdNP40nhv5RpXsCB9tJFmzoW X-Received: by 2002:aa7:d719:0:b0:474:a35b:6c17 with SMTP id t25-20020aa7d719000000b00474a35b6c17mr47075325edq.4.1672949332132; Thu, 05 Jan 2023 12:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672949332; cv=none; d=google.com; s=arc-20160816; b=oqzK9TB2s3p2PYKuKab6ykAUg/69xWXtZ1nKOydZygj8mH0XcujZKO6Mrwzd4lHwBZ 2V1MLR566G+n5t2v2Fh3EOlEj4MGbJKJUpnDFJn+iJSiDwiQR0rRdpHXIHEwI+TsbHlp Y+AB2F3S9QZizP+1gvJxmpgVsHfuKToaD6vz2xNuOsCPsKoSJMMXODewxALlQcG6JekY 7rqteri0dR327eM9UknUhfwlCToOCrT13n6tSA9bT3SfBBfM/buRxNdycDT/CQ1Ay5Bp 33Szeifg7F5mUtTuR5wNk9oQrhzKTdWudtqn5L299DWL0pfLQtHhZacw/APybj3xe4u0 rAwA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1HKiKe9373ka0mN6FKm4s+rwzUKEimlYW6GYpQhj2R0=; b=b3r0GrPYC2qKUChzcTkydhYxByBTYhkZZFYWPtV4rrGsYgaPQY0jeUYd/U+YAPAzpX eFxO+hiWaueakP3TRZ7CtDm9PKvihoGtdw4OmncsfaAHOCV3/gXsH45GRrQaXftRjChd 13cAbj6ip65/oPPSLZxUUoJXXbqhgUhKVYntkdPMOMWZHsTlqv3SQo4Jn5AntAgP+v2b GSpAxoxIbbOAz1TGCsG7BY9VxWTmxJpN+WgjF4NMyynkz1azL1Lpvy5HoAzSs+QrLFdy CeAtdU+X6wCtbmQIo0cZBpa2+JkhxFDdcgQEvxDbZXuQ04hE8CktY7ySDcXG7pt8hqlD dLcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=BP1CBMV6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a50cd92000000b00461d726439asi34192372edi.538.2023.01.05.12.08.21; Thu, 05 Jan 2023 12:08:52 -0800 (PST) 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; dkim=fail header.i=@igalia.com header.s=20170329 header.b=BP1CBMV6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235800AbjAETd4 (ORCPT + 55 others); Thu, 5 Jan 2023 14:33:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235925AbjAETde (ORCPT ); Thu, 5 Jan 2023 14:33:34 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C97A5FC2 for ; Thu, 5 Jan 2023 11:31:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1HKiKe9373ka0mN6FKm4s+rwzUKEimlYW6GYpQhj2R0=; b=BP1CBMV6B67FIuqRybXYKOA2B+ ukIVpCrzPqF55wKxlPxuZVlPMtVL75I18T3ifxC4IVzFi8RB0jd+XwvBnLU9OQOGas67ACHz79RRd WEiLzTZWTiP82i9293zQ3NDHbNo2AQbWYvZ9doknOM2OutUvtqn9RHmCbIpO1tCBHhaSEwq7OP7pK LYYo+C/K+Jg80OTA675SJ2PjIYFaoPql2tZFETHAN8Xybq+cOJKoWuX8o/yhxqFGgx8o0t3dUvjMp bFFaf9yj+kjcg1GnPgR1KP9Hj2a2OeCdm9u3LAEJer6GZy5GYAb8H80gEg/ENEa73QjuVK/SkuqxK 9fSdN8kg==; Received: from [187.36.234.139] (helo=bowie..) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pDVx4-000Kcs-UY; Thu, 05 Jan 2023 20:30:59 +0100 From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Stephen Rothwell , Jani Nikula , Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Melissa Wen , =?UTF-8?q?Andr=C3=A9=20Almeida?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH 2/2] drm/debugfs: add descriptions to struct parameters Date: Thu, 5 Jan 2023 16:30:39 -0300 Message-Id: <20230105193039.287677-2-mcanal@igalia.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230105193039.287677-1-mcanal@igalia.com> References: <20230105193039.287677-1-mcanal@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 The structs drm_debugfs_info and drm_debugfs_entry don't have descriptions for their parameters, which is causing the following warnings: include/drm/drm_debugfs.h:93: warning: Function parameter or member 'name' not described in 'drm_debugfs_info' include/drm/drm_debugfs.h:93: warning: Function parameter or member 'show' not described in 'drm_debugfs_info' include/drm/drm_debugfs.h:93: warning: Function parameter or member 'driver_features' not described in 'drm_debugfs_info' include/drm/drm_debugfs.h:93: warning: Function parameter or member 'data' not described in 'drm_debugfs_info' include/drm/drm_debugfs.h:105: warning: Function parameter or member 'dev' not described in 'drm_debugfs_entry' include/drm/drm_debugfs.h:105: warning: Function parameter or member 'file' not described in 'drm_debugfs_entry' include/drm/drm_debugfs.h:105: warning: Function parameter or member 'list' not described in 'drm_debugfs_entry' Therefore, fix the warnings by adding descriptions to all struct parameters. Reported-by: Stephen Rothwell Signed-off-by: MaĆ­ra Canal --- include/drm/drm_debugfs.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/drm/drm_debugfs.h b/include/drm/drm_debugfs.h index 53b7297260a5..7616f457ce70 100644 --- a/include/drm/drm_debugfs.h +++ b/include/drm/drm_debugfs.h @@ -86,9 +86,22 @@ struct drm_info_node { * core. */ struct drm_debugfs_info { + /** @name: File name */ const char *name; + + /** + * @show: + * + * Show callback. &seq_file->private will be set to the &struct + * drm_debugfs_entry corresponding to the instance of this info + * on a given &struct drm_device. + */ int (*show)(struct seq_file*, void*); + + /** @driver_features: Required driver features for this entry. */ u32 driver_features; + + /** @data: Driver-private data, should not be device-specific. */ void *data; }; @@ -99,8 +112,13 @@ struct drm_debugfs_info { * drm_debugfs_info on a &struct drm_device. */ struct drm_debugfs_entry { + /** @dev: &struct drm_device for this node. */ struct drm_device *dev; + + /** @file: Template for this node. */ struct drm_debugfs_info file; + + /** @list: Linked list of all device nodes. */ struct list_head list; }; -- 2.39.0