Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp190455pxj; Thu, 3 Jun 2021 04:24:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9m/sxXbBGtHKBN5ypQKp0Nww/lkBVEhHVC5VRnwPxfI3YCagEBn5J58pSQbHIxwBGwpKd X-Received: by 2002:a17:906:cd0e:: with SMTP id oz14mr28267217ejb.308.1622719458624; Thu, 03 Jun 2021 04:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622719458; cv=none; d=google.com; s=arc-20160816; b=xWGNPLJohx7Y7gatGbRdTbiy4Nn1CeTGBLe+ndW6F2cSH2c2fBFoHQXh175/gsBJKm QCjo7ZbXyHFS1x4DW0prTPwNxLNp8PMsU/vpsMEeYd/NMP7E62ca+iomcD5JKg9TUeNO UPO1FcnT2UUnqNiOQOmVmsAXVDmQJizYtnicO92Iv0/NGQU5lUB+9IwjPQXgq24Nr4ca 8PNpMZ53ubbaYKLicl2vmTb52rSV/Mjdy6LbCPKsgLYIp7jkRcNme1uU36Zi+GQ/6nPu RYZYRmkRrEqNX/+CRlz9jM9tRxv5BGFt7gkTG16+BzW83DchqMwUifEQvQqt4nlKe7we waiw== 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; bh=aWbd14SYNHRruwQ3DTJ2R2P4h/vllu/sTgG9vzOjwS8=; b=WK7d4BxTti1Sdk7myh+JVvk9iEbAdFnCUlWF9ChidTw6Qxld2ZmcgftIN1/rta3jLy PTNWBEKMx+xfbUc+830DDaIWQwN69P1b7Ugatoer/B7EEPD4L0RZfv3z0zwLMTLTZIu4 cQCbXTwCCB/2OwtTaIbQiiYYfizmNGuycpSz04dpMLKlfC2ppua6ebKscqdK+7GooGgY 5cGzCJPj24BssuDl0r9mFWvoEzNxZtnsKur0R+V33nMQE1MTpMlHc1Z1mYoI/BcMlmaB s+Oe7ISMpOT7/gDYvy+y99Wq8OLiKD7GSt1Aus8c2owWWAZGGIAsqW5JisrHZX2dd6rH yYTg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc38si449191ejc.258.2021.06.03.04.23.55; Thu, 03 Jun 2021 04:24:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229950AbhFCLXX (ORCPT + 99 others); Thu, 3 Jun 2021 07:23:23 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3047 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbhFCLXW (ORCPT ); Thu, 3 Jun 2021 07:23:22 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Fwjyr0GJtzWnyr; Thu, 3 Jun 2021 19:16:52 +0800 (CST) Received: from dggema762-chm.china.huawei.com (10.1.198.204) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 3 Jun 2021 19:21:36 +0800 Received: from huawei.com (10.175.127.227) by dggema762-chm.china.huawei.com (10.1.198.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 3 Jun 2021 19:21:35 +0800 From: Yu Kuai To: , , , , , , CC: , , Subject: [PATCH] drm: fix doc warnings in drm_atomic.h Date: Thu, 3 Jun 2021 19:30:51 +0800 Message-ID: <20210603113051.2095866-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210603192238.0bbc6686@canb.auug.org.au> References: <20210603192238.0bbc6686@canb.auug.org.au> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggema762-chm.china.huawei.com (10.1.198.204) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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