From patchwork Sat Dec 3 06:09:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 29221 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1230822wrr; Fri, 2 Dec 2022 22:13:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CRF87PPnpnCxlmofdA/PHwmbQehSvWe1kOD97D7KE6bC+g07AKz07s2AlheZDwrA1jsF6 X-Received: by 2002:a05:6402:4515:b0:461:cf2b:627b with SMTP id ez21-20020a056402451500b00461cf2b627bmr8806093edb.73.1670048014295; Fri, 02 Dec 2022 22:13:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670048014; cv=none; d=google.com; s=arc-20160816; b=BqTIMC7lulODRw2oiNuHurA4c1uX5pShCXAxFxj+GkJE+rg+OrUs+f0OIiFfdP5igJ tXbj5umcJlCDTqHWwJZ1o3QjcWd7W6wDz+PatnMFNPVyDFvmosNudFNYJqEw+LpPEIg/ 7fkJxrxHIJQmhxjWx6FGvLss+lPcuvLhudka9YF0tlZvkciGDiYfdXrefRXBnATfRK7q 3FG6oltasncEYYUJrXAsnqkTvbXOoT9zxU9qY1JUk4XH2H4KV4sUsbodyHlAvECrmly7 Wve0SxjHGny1izJYjRot88wOfz2yIFs3MkYRNpoJh/TYh8u8qRyNx33Jkng5B4rUI/pR 0+6w== 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:dkim-signature; bh=Vxr1BilUXwzDdnzrGNUD0GN+KKUJxwsmIbzziZmyjCA=; b=vd9QzJdqkb6loRPnTyCX3NL/P1x9Nkb04VsVBF9ezo7bCfnjG50+uJmoMPysafUL8I j1Lpn4sRfHxF+usi/+cccFKvS/96OSf8HPw+6Fr5pBYzeT66W2REp5APPsh4tjnMQQvl 3rani6K9d3Iy4tnqMqnzS4cHfdS5UiqeN2aPUjpVM03TbiEFLlxZ9Tr2xzeYUcRaxN1Y 7WfCBNluSmrjSHDz3kU5QYq1mqLauv7IeKktjzwgz02h28FiMrKey2AzQuiPjTKr8ivx 24ZTi98IzFF37rKSKHwUQ7CJoXCsKNSFk/tUYQ+j/9baJc9OZlBmutap9G1FRl8B2KJW N3NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Xk3ColPd; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ss28-20020a170907c01c00b007adc8c49d83si6455291ejc.477.2022.12.02.22.13.10; Fri, 02 Dec 2022 22:13:34 -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=pass header.i=@infradead.org header.s=casper.20170209 header.b=Xk3ColPd; 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 S230422AbiLCGJp (ORCPT + 99 others); Sat, 3 Dec 2022 01:09:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbiLCGJm (ORCPT ); Sat, 3 Dec 2022 01:09:42 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BAB713E39; Fri, 2 Dec 2022 22:09:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=Vxr1BilUXwzDdnzrGNUD0GN+KKUJxwsmIbzziZmyjCA=; b=Xk3ColPdsycTXJhkAUS6OmurZW T+nCYLuJCXP1v8JR6Q2epHI11hTB3WKced4aO6pVCjI7C6BHnmKbeF3EWpa+JriiQkQtqB4ADkT8z H+xfcYwKsJm4hD3jYsh4QvJIDHyYhJjfGNW7fhp3TGNI80yNI9r5Y0KpN0DUE+i/mzZclNTD0Cc2X LJt8RrQOvThAqTWKGFEDQNKEDMWfntp3OyeAXIzdG6lkoHQqeF+Zn6ERjA0dr5+1j6f/oIuA0haBa ITTCa7BppfO1f7D9tJhKV1k7YiOTZjO7bo85JqKHU7RjomiDQVpNc1wKZmxLYIPaBnb6P/2X+J9Xg HvkP8qdw==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1LiZ-000vxr-UL; Sat, 03 Dec 2022 06:09:44 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Lin Ma , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH] media: dvbdev.h: fix kernel-doc warnings Date: Fri, 2 Dec 2022 22:09:31 -0800 Message-Id: <20221203060931.19953-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751172266585070703?= X-GMAIL-MSGID: =?utf-8?q?1751172266585070703?= Fix kernel-doc warnings in that were recently introduced. Quietens these warnings: ../include/media/dvbdev.h:193: warning: Function parameter or member 'ref' not described in 'dvb_device' ../include/media/dvbdev.h:207: warning: expecting prototype for dvb_device_get(). Prototype was for dvb_device_put() instead dvbdev.h:257: warning: contents before sections Fixes: 0fc044b2b5e2 ("media: dvbdev: adopts refcnt to avoid UAF") Signed-off-by: Randy Dunlap Cc: Lin Ma Cc: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org --- include/media/dvbdev.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff -- a/include/media/dvbdev.h b/include/media/dvbdev.h --- a/include/media/dvbdev.h +++ b/include/media/dvbdev.h @@ -130,6 +130,7 @@ struct dvb_adapter { * struct dvb_device - represents a DVB device node * * @list_head: List head with all DVB devices + * @ref: reference count for this device * @fops: pointer to struct file_operations * @adapter: pointer to the adapter that holds this device node * @type: type of the device, as defined by &enum dvb_device_type. @@ -200,7 +201,7 @@ struct dvb_device { struct dvb_device *dvb_device_get(struct dvb_device *dvbdev); /** - * dvb_device_get - Decrease dvb_device reference + * dvb_device_put - Decrease dvb_device reference * * @dvbdev: pointer to struct dvb_device */ @@ -250,10 +251,10 @@ int dvb_register_device(struct dvb_adapt /** * dvb_remove_device - Remove a registered DVB device * + * @dvbdev: pointer to struct dvb_device + * * This does not free memory. dvb_free_device() will do that when * reference counter is empty - * - * @dvbdev: pointer to struct dvb_device */ void dvb_remove_device(struct dvb_device *dvbdev);