From patchwork Mon Nov 28 08:39:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lin Ma X-Patchwork-Id: 26580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5518518wrr; Mon, 28 Nov 2022 00:44:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RFYGZ7RfxkGT55SfSlBxEvJwYIFfmCmNQXunj5UBDFVubtTVjyKuIr9D+qWBeYVuUyAzR X-Received: by 2002:a17:90a:7d0f:b0:218:d50e:5af8 with SMTP id g15-20020a17090a7d0f00b00218d50e5af8mr29168240pjl.26.1669625096320; Mon, 28 Nov 2022 00:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669625096; cv=none; d=google.com; s=arc-20160816; b=D281/LQXz0m+HG/jnKVNgD5bb9lU9SeKjVQbF5nebxs7gDY2mKcmLvKWzxNZdV9leM DaeRTSI+4UoUmchidQn/TTqCLDwNu+uCYddDPN9FP7tw9Q8ulM4wcZtXSiw9g+017qLT CbXIlNun+T23ZDfG8XtxlW3NwXQosg4zYEuZvGp7JDtG2ZDqlRqFyOlpLkTFbCHS2zPX gfoM742Jtn7TZRNrdtBi71+SSNRxHYErEo70s1Gx1u5dUXDjT597OJIXMgMIXN63u6tQ osxF+ilnlWeS8c4++FHqAJ9xG8KPu4oUFGdjLzBY253BA92D2VVbr9ILXn/wfgNX+RW/ lQyQ== 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=b9tdaf/DVnZ/uycoq7vhbgWh8+h/P5Gu3A83aC03MJM=; b=vl/dYay3GKuEENJE3dwNJjtg2FMXhTZ6kLLgHGlnVODgX1zirrMujFnWkjEY7FJJnt NpcytSory2tmanl5wHJHoslIQnBuAMKulGigILu+BmQpWR8E1/zOf2jXO8ma2zR6V+gG 8Dq1c0xrexC18vVRL2DKq7QNjROHWNj+81Xeo9rFAYxSVTGUDrQIuVFmif8+0MxCLomE 0PpPTxysc9Ej1SMawp+Td765IZNL+C8oCavLY5IXPTFzD0M9qbzHIIVao0U/ilFmoSa0 WiKR2vPlysyiaGgVdQxWGehYYPXyumibwxa10/vN0CBTWI6IMtCGlrZc7MDaZ6L+7ge0 pqDA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a63200e000000b0047785402653si3818362pgg.776.2022.11.28.00.44.44; Mon, 28 Nov 2022 00:44:56 -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; 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 S230211AbiK1IjP (ORCPT + 99 others); Mon, 28 Nov 2022 03:39:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbiK1IjM (ORCPT ); Mon, 28 Nov 2022 03:39:12 -0500 Received: from zju.edu.cn (spam.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A92BA9FED; Mon, 28 Nov 2022 00:39:10 -0800 (PST) Received: from zju.edu.cn (unknown [10.12.77.33]) by mail-app3 (Coremail) with SMTP id cC_KCgB39bmnc4RjHCTNCQ--.64643S4; Mon, 28 Nov 2022 16:39:03 +0800 (CST) From: Lin Ma To: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lin Ma , "Stephen Rothwell" Subject: [PATCH v0] media: dvbdev: fix build warning due to comments Date: Mon, 28 Nov 2022 16:39:03 +0800 Message-Id: <20221128083903.11117-1-linma@zju.edu.cn> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CM-TRANSID: cC_KCgB39bmnc4RjHCTNCQ--.64643S4 X-Coremail-Antispam: 1UD129KBjvdXoWrZry8XFW7Aw1fXw4xuF4kWFg_yoWktFb_Ca 4IvrWkurn3GF40gr13tr1rX34rKwn2qrW8KF4ftas7AFZ8WFZ8WrZrKry2qryxuw47Jry3 Z3Z5Xw45WF10gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2xFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AK wVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20x vE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E 87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c 8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_ Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwACjI8F5VA0II8E6IAqYI8I648v4I1l42xK82IYc2Ij64vIr41l42xK82IY6x8ErcxF aVAv8VW8uw4UJr1UMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr 4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxG rwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8Jw CI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2 z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750728805206434554?= X-GMAIL-MSGID: =?utf-8?q?1750728805206434554?= Previous commit that introduces reference counter does not add proper comments, which will lead to warning when building htmldocs. Fix them. Reported-by: "Stephen Rothwell" Fixes: 0fc044b2b5e2 ("media: dvbdev: adopts refcnt to avoid UAF") Signed-off-by: Lin Ma --- include/media/dvbdev.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/media/dvbdev.h b/include/media/dvbdev.h index fad987115..29d25c8a6 100644 --- 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 counter * @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 */