Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp517999pxj; Thu, 3 Jun 2021 12:19:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx6lO0NreFta9xxkFvBmVGBQ6c3pFozcW/gsLtw0OaZ6zWuNHHBHe0UAWQ4cnkCvCEVX4A X-Received: by 2002:a17:906:f6cb:: with SMTP id jo11mr781910ejb.439.1622747981514; Thu, 03 Jun 2021 12:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622747981; cv=none; d=google.com; s=arc-20160816; b=EpWJRWXD2li5Xsgx2swvVZ373vF4MFVAfeHbu5nVMtTul/RJPnFhgsX52bhkGgmV2N P9Gh6jXPno89ICSkEViOEqw51LiOxgIR5YURpWlva6IREvi2LLGzQc/ZqT/eTbhxHSju j4G8E7fqGy6BVH9iYV12L+sF8b2NLrfvRaS/GcLej8TOti3jbq47mtQtVHo1THl0KrMo 51rhPzOPVVFrudKTHWbeMJvUuFgR4nreU5LN2n/WZ1bs5+DCdxPbCxGLTIBSaT1SiOfd WjgiPc+4STFlZBfLL8f7ZnT5KQHjjpxa6Af+IgEyAZZf4Yzp+O5ZyT5r3UMBV3bHwHNP 2zWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lVZkEcekhqbnYW1h79/086gtCptoM6ZVrjdw+tbtwF4=; b=tcMV7pQzy2Aidjlc4/XQsnismDwgzj82VEgFqvwuS0Ph3LAOJpiOqPMz79/lrE1IqN NqEKYFWEy4WrptttfnUKSQ0IZLUB2fcbRGQ64a41Ock4hF9SfXrZGRVqsIze8e/aSC8/ IM7IXSkgQjBpfiBKKaczPG2Qz9Ki4f26zu7gF319Lz0r4LhsR522dYxiMHzZk9zgECAp pEFhyM0XvfUPPGQPOUsLrjDdAcSz0t1YbsN9pqbON/TInT3DmA6uMN++4CdF0YJz1HHL a89EJjWCFZM/1Qu0YEFzbtQCy/bR/lFHsDR7/vIxM7D+3C29/cX6OsRwNPwshJ/Nk+Yv gjOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m0lJeGNh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id br12si1016746ejb.231.2021.06.03.12.19.15; Thu, 03 Jun 2021 12:19:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m0lJeGNh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229803AbhFCTUC (ORCPT + 99 others); Thu, 3 Jun 2021 15:20:02 -0400 Received: from mail-ot1-f42.google.com ([209.85.210.42]:45849 "EHLO mail-ot1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbhFCTUB (ORCPT ); Thu, 3 Jun 2021 15:20:01 -0400 Received: by mail-ot1-f42.google.com with SMTP id t10-20020a05683022eab0290304ed8bc759so6760473otc.12 for ; Thu, 03 Jun 2021 12:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lVZkEcekhqbnYW1h79/086gtCptoM6ZVrjdw+tbtwF4=; b=m0lJeGNhBjHYCOQzf6QJ7imtzvshgDNhXRa/Qu6sOJchVPKw+XP8AlBbhEfZEz21Hl JsSa+UYTN32cuGukTWFZaj2uZHXdhCOyfM+AlOZXXhYWFp2wN1A1oT1YGKtFIoY9s1lS /cNpqGAu0Sh7e39Pqk6ZhcH3wRIdiSnW09xLSW05P4bnB8lwfpecABd2ldHJNWItVuKC 4SkXE5AzudSdshpLnbpXsuMBjr1EIVGDIMCJAq3ltvMhtAMl+3Pl637XACOiJRnnezBD w/nd1wBOO/mAyRISu005O4MG7pVnZjY4Dtb3b8h1iO4jfDUNmgiGkU1VYCGspxJYRCCH 4kDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lVZkEcekhqbnYW1h79/086gtCptoM6ZVrjdw+tbtwF4=; b=S1Kx8mRYaks7+ROu10vo+5FSAOfe7rRGU35h0HRZIdRmtpWonSpHYn+oFFWcGjqBs8 4U/ZOd4/7pCFa6sM99nWixTQmTNY7bB5Y3uzL/VirZn5slAljfrWGMIK96wxsmG93tEO oDriSLDOG7jQdJg8eJ10tVikEh3hVeOx/qiNC7on90m4CgCfLzH+UbssIT2lRdkvoc5i 3WFZm+fQ77izTg0PHU2XJibexwoGutPQ3AvsOyQZk0oSfI+f+J9atAHDQlMOMaX7RdSO R7BTtPl61rnvI19DXzNsN3IFOodItyQduurigjVApHttyoX5Jg3r85owrec/3Ib27NoI AruQ== X-Gm-Message-State: AOAM5317uIOHE/Okjj766yehQ0ZLgM9c8sLXrbs7kXQ83t+rpVAqagvZ E2okEye1vDG3BPMx2/0i00gaiFJEgbit/hytpPE= X-Received: by 2002:a9d:57cd:: with SMTP id q13mr672501oti.23.1622747836678; Thu, 03 Jun 2021 12:17:16 -0700 (PDT) MIME-Version: 1.0 References: <20210603192238.0bbc6686@canb.auug.org.au> <20210603113051.2095866-1-yukuai3@huawei.com> In-Reply-To: <20210603113051.2095866-1-yukuai3@huawei.com> From: Alex Deucher Date: Thu, 3 Jun 2021 15:17:05 -0400 Message-ID: Subject: Re: [PATCH] drm: fix doc warnings in drm_atomic.h To: Yu Kuai Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Dave Airlie , Daniel Vetter , "Deucher, Alexander" , LKML , Maling list - DRI developers , yi.zhang@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Thu, Jun 3, 2021 at 7:21 AM Yu Kuai wrote: > > Add description for parameters for > for_each_new_plane_in_state_reverse to fix warnings: > > include/drm/drm_atomic.h:908: warning: Function parameter or member '__state' not described in 'for_each_new_plane_in_state_reverse' > include/drm/drm_atomic.h:908: warning: Function parameter or member 'plane' not described in 'for_each_new_plane_in_state_reverse' > include/drm/drm_atomic.h:908: warning: Function parameter or member 'new_plane_state' not described in 'for_each_new_plane_in_state_reverse' > include/drm/drm_atomic.h:908: warning: Function parameter or member '__i' not described in 'for_each_new_plane_in_state_reverse' > > Fixes: a6c3c37b661d ("drm/amd/display: fix gcc set but not used warning of variable 'old_plane_state'") > Signed-off-by: Yu Kuai > --- > include/drm/drm_atomic.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h > index 8f1350e599eb..1701c2128a5c 100644 > --- a/include/drm/drm_atomic.h > +++ b/include/drm/drm_atomic.h > @@ -898,6 +898,10 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p); > /** > * for_each_new_plane_in_state_reverse - other than only tracking new state, > * it's the same as for_each_oldnew_plane_in_state_reverse > + * @__state: &struct drm_atomic_state pointer > + * @plane: &struct drm_plane iteration cursor > + * @new_plane_state: &struct drm_plane_state iteration cursor for the new state > + * @__i: int iteration cursor, for macro-internal use > */ > #define for_each_new_plane_in_state_reverse(__state, plane, new_plane_state, __i) \ > for ((__i) = ((__state)->dev->mode_config.num_total_plane - 1); \ > -- > 2.31.1 >