Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp206502lqb; Tue, 16 Apr 2024 13:09:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+iMfNhz8NgTb8fvVrufJDR/k9umIMxZWkuVaIFQDx5UDacQ6ctz7F3omtQ9cUEy/btxKKIa4DIA+jlbaMHBnzq0HTA5DdCuKZWqnCjg== X-Google-Smtp-Source: AGHT+IF3YWt0MtA7yuLk+vVCekzk5Dh0ATHd93VkleYwznX9wTE8yVJzWQw9O2IYYygVQJzofjQ5 X-Received: by 2002:a05:6870:828b:b0:22e:cbd9:32ba with SMTP id q11-20020a056870828b00b0022ecbd932bamr14692857oae.29.1713298177824; Tue, 16 Apr 2024 13:09:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713298177; cv=pass; d=google.com; s=arc-20160816; b=uCM59MFMolived1cpbkv+LwGyrvbuFyRsfhUBq43cTxYB0BYMfpkupAxHn7qSP79Af r1gXAODForRhZaKJ5vkEhuZijTTDaiaX1TZCk6vtW6xr5SXw69FwDQVeJJnmkjrmJh8X Yl3OL/oxK3LAHj9GHfu+0s1LVlh/I4QZ3/CAW2ViCKoQg1YGwjdXnGW/N6wBZ761Qzos aWPst2ePgu1eWQVSwN0Hp8rMI5aSp8jrLeWR17AVdvHqYNeqLZqZdAySG9XlVmEn2OXL jv4PYk10dFT79Jzunk2WpPqEO5x6hpgU/1MOu4nIlZJjbHyGNgsnYik6RMpoYqhDpZP9 8dXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from; bh=8RlTS+/SqD7x+QiYew4nzeaXi7xfnVLBpxxiEQI6yl8=; fh=Ze6WM6tCHqEL4JaS4lqyDOkf0dFG0UIjHS6eAHDXhZg=; b=FXhykVBfCd/zELp+Z/8lkK1RgUNZFtxFsXr5ySN4md9L1roAprXAXo2VAUAiFf7mTz if6WwaPM81gnQooI1rF+Rk5lZHD59m8hYbHlqEmxUlQKgnS4zTub2I2myoE8WdCGBlQB Dc54pUItBSu+YPlLedJAr//a5K8k6p0XxdkBwoJhiiT/A7eyJMgUd1FlQwW+KrhEkboK Wm7lXJTr8o0yvVHe/EnqqBihCjMDdmONs/aBnWJWtcG5wr5HZM7wbSoUebzWTbV+h/2h huIoLc34rPGem8sVSj6epjulM/ndG6vyBABxKZjagpMWfFl5bGaIIo5BTH6XbgvEiyyY nDpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-147496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147496-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h15-20020a65638f000000b005dc855c40a4si10049615pgv.645.2024.04.16.13.09.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 13:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-147496-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147496-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 88847B22D25 for ; Tue, 16 Apr 2024 20:08:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06500139CEF; Tue, 16 Apr 2024 20:08:36 +0000 (UTC) Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [5.144.164.167]) (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 31BEE13957B for ; Tue, 16 Apr 2024 20:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.167 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713298115; cv=none; b=QvionxeW4KJvBS4rssQx/njoLa3BiFAJ9rcgtKr0ZASkpYtpjKbElUYzw4bOR/i+/uwr3iZiyycq3E5mIhWasr1ey6/4bJ1X5XAfLX6/PnswUhQZkuguc+xDXB5LB6Zwmkj1jBiCMCa9EpgvVleXgaVCuYT1zTWiBcUf38d1n7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713298115; c=relaxed/simple; bh=qRh7xRHbySZ3iKo5O1/YWoUY0sugFkQPKKtUC5ZjmcQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=IbIPuLfNhU+s3cT6T1AR7BJmTP4+iYLrPoYx6GqtcqQu72Q7icPfitaIfpUskzfSHXvRGNDTqDtPtfRd1bkMzPjF8t5PiOGOjUvECQ3S6kWLTxBwQm6aP5UhIMl8b4SCD39rx8xTBcKLERT7ALMTtqPvaloPfoMvFf0SlRGElOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.167 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from Marijn-Arch-PC.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 88D633F434; Tue, 16 Apr 2024 21:29:45 +0200 (CEST) From: Marijn Suijten Date: Tue, 16 Apr 2024 21:29:39 +0200 Subject: [PATCH] drm: Fix no_vblank field references in documentation Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240416-drm-no_vblank-kdoc-link-v1-1-a1d8d1e9ff34@somainline.org> X-B4-Tracking: v=1; b=H4sIAKLRHmYC/x2MQQqAIBAAvxJ7bkHLIvpKRJhutVQaChJEf0+6z RxmHogUmCL0xQOBEkf2LossCzCbdish2+xQiUoJJVu04UTnpzQf2u24W2/w4EwLaTk3tRCdriH XV6CF7/88jO/7AQakzM5pAAAA To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: AngeloGioacchino Del Regno , Konrad Dybcio , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Marijn Suijten X-Mailer: b4 0.13.0 Browsing the DRM documentation shows that drm_crtc_state.no_vblank is not turned into a reference to the no_vblank field, but rather a reference to `struct drm_crtc_state`. The only difference with other field references is that the struct name is prefixed by the literal `struct` tag, despite also already having a `&` reference prefix in two of the three cases. Remove the `struct` prefix to turn these references into proper links to the designated field. Fixes: 7beb691f1e6f ("drm: Initialize struct drm_crtc_state.no_vblank from device settings") Signed-off-by: Marijn Suijten --- Note that a simple regex like "&struct \w+\.\w+" shows that there are only a handful of violators, most of them inside DRM files. Let me know if you'd like a v2 that addresses all of them in one go (in separate patches or one combined change)? Kind regards, Marijn --- drivers/gpu/drm/drm_vblank.c | 2 +- include/drm/drm_crtc.h | 2 +- include/drm/drm_simple_kms_helper.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c index 702a12bc93bd..45504732f98e 100644 --- a/drivers/gpu/drm/drm_vblank.c +++ b/drivers/gpu/drm/drm_vblank.c @@ -140,7 +140,7 @@ * must not call drm_vblank_init(). For such drivers, atomic helpers will * automatically generate fake vblank events as part of the display update. * This functionality also can be controlled by the driver by enabling and - * disabling struct drm_crtc_state.no_vblank. + * disabling &drm_crtc_state.no_vblank. */ /* Retry timestamp calculation up to 3 times to satisfy diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 8b48a1974da3..eb75d0aec170 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -342,7 +342,7 @@ struct drm_crtc_state { * that case. * * For very simple hardware without VBLANK interrupt, enabling - * &struct drm_crtc_state.no_vblank makes DRM's atomic commit helpers + * &drm_crtc_state.no_vblank makes DRM's atomic commit helpers * send a fake VBLANK event at the end of the display update after all * hardware changes have been applied. See * drm_atomic_helper_fake_vblank(). diff --git a/include/drm/drm_simple_kms_helper.h b/include/drm/drm_simple_kms_helper.h index b2486d073763..6e64d91819e7 100644 --- a/include/drm/drm_simple_kms_helper.h +++ b/include/drm/drm_simple_kms_helper.h @@ -102,7 +102,7 @@ struct drm_simple_display_pipe_funcs { * drm_crtc_arm_vblank_event(), when the driver supports vblank * interrupt handling, or drm_crtc_send_vblank_event() for more * complex case. In case the hardware lacks vblank support entirely, - * drivers can set &struct drm_crtc_state.no_vblank in + * drivers can set &drm_crtc_state.no_vblank in * &struct drm_simple_display_pipe_funcs.check and let DRM's * atomic helper fake a vblank event. */ --- base-commit: 6bd343537461b57f3efe5dfc5fc193a232dfef1e change-id: 20240416-drm-no_vblank-kdoc-link-fea1b53008a3 Best regards, -- Marijn Suijten