Message ID | 1607578052-4316-5-git-send-email-victor.liu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=rNyZ=FO=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D7B1C2BB40 for <linux-arm-kernel@archiver.kernel.org>; Thu, 10 Dec 2020 05:37:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB8D022D75 for <linux-arm-kernel@archiver.kernel.org>; Thu, 10 Dec 2020 05:37:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB8D022D75 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tijVaK81ld8gT2jKlSR4ImsvlsknZIZaek2aOLcyo14=; b=Om3mm7Z3QqI86+V2sn9OueGpv fB6Uw13sX6ZCMIy9YJa19kuPgSScFPVH9hwyV1aP5eHTEJwv3tQWqTVVdJAwOikKBa6CaZbVsiiE3 +Rq8baJ4S/MwDM4fKcf/Lt1AEU4FTEJARVZaSXxxPiqfkE0kdxUKWolMbvDb4t811xg1skrr1qRZg 4/ZIoW043hLRKWUr5SX8VVyfv8KyGpvfeTp/stU5xfkHct2poNwYIRaVDWSz+jMMtPoG6aZ/69kCd Lb2Hxzcr6YpoHZDlRzjSlTh8Mc5E9oiKd+0iFeSCQCgnenJMALCbB2lQ4ZR29lOY3PG88v6m9QzJP JqAblq4GA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1knEd0-0004gC-1D; Thu, 10 Dec 2020 05:36:34 +0000 Received: from mail-eopbgr70075.outbound.protection.outlook.com ([40.107.7.75] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1knEcw-0004f7-Rb for linux-arm-kernel@lists.infradead.org; Thu, 10 Dec 2020 05:36:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M0xwFGXLL/gsq6bXAAa1RcnLdOYqM8yij5gVPCxMlLdUCfGhtcMQSJABTrcOj8pq9Yynzs9QGOWOxXHnOrvYXNbSOmj43ElxnBC9SuxOLs7/Ve6E3EccajaRB3M7WlXWMQ9qtS01YEJr4N3N5Tpxphi8uEr7Irv/3lMK32rPckIMb8IwBBzrmjSiP+I+1QC53F16PF/DBSMTT9CY3qV1RMh0AJXIZCRwgJu05IdkRDNiCF951BG2TAM+dNwaJxu615jtvint16fn/jR7gLD27NXUiHCTVCMoHxUb8u951m+UjDr/qUq1UpHJ6gtNMxRu1hbmrj4QUx7FVdq+qL7i1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1T293Eoy+x+D3fPoUonzHQ7d+S3MMeVK+ryLn5B98AU=; b=kW8hpy3wR4XxkFnAFZb9ocGvdLl2T+6dpt1k3hgR2ezrPY7D5jvvCGLEgjK4Z45bG7BltCdEwSYynrRtJ6CkXGPw69qGm5B8JZevdDQqHETirSLPCJ+Kva8uGxMApdypQw+e8BDJCYWanOMnoEgCUB3dB76iLIPjRJt85R2gij/1qGvpaUMBVNcQMJzUq7cCltRBEp26l5eDTLQBZY2Sk5/2o+gCPNimizDAibnn3CewUTQZeZIrCxq4xGevGMrAuRdwI5gT79qVY7BVWtz/U1Hf58VtFXRfsfa4Su+z0BEZMv4tbnGKpYNLeVAOm92CMX7/rM1nQIkX3J+akgJcIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1T293Eoy+x+D3fPoUonzHQ7d+S3MMeVK+ryLn5B98AU=; b=sSd/EX6+EsC3CM/JVHnrEBA1gGhwfJ1vCrPxyjDyECrE/4BY5R0tDiaa45OTvIfpSFmedSTKEYjk+Eu2IlJmqLXycH2VDFqG6nn7fgjxWNsBVvFWffBH0x5ptmCiJPwIgAlFHN/S7snVUtBwS2Q8kmC/I0WDB8zcuxkubAX4uuA= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR04MB5454.eurprd04.prod.outlook.com (2603:10a6:803:d1::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.15; Thu, 10 Dec 2020 05:36:23 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::dcb7:6117:3def:2685]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::dcb7:6117:3def:2685%7]) with mapi id 15.20.3632.023; Thu, 10 Dec 2020 05:36:23 +0000 From: Liu Ying <victor.liu@nxp.com> To: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state Date: Thu, 10 Dec 2020 13:27:29 +0800 Message-Id: <1607578052-4316-5-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607578052-4316-1-git-send-email-victor.liu@nxp.com> References: <1607578052-4316-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3654.12 via Frontend Transport; Thu, 10 Dec 2020 05:36:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 90907550-7fc3-46bc-4051-08d89ccd87c9 X-MS-TrafficTypeDiagnostic: VI1PR04MB5454: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR04MB54545531D6CCA8625AB9A49E98CB0@VI1PR04MB5454.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:229; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O+Ec9uRyJ6xaUGTvITewPuxUfecVfbxN1cx6CD/HztMDMVLN/g5U1M500W0DTsiqoZK/rclXfbv+8/40acykeA01fLD1wGziJFTLS4zspDk0iHCUsqSyvYSEXiDqT6aG0nfsO1CfPQf+2afMr6plSIeEtfCRUcEe3+OQY3ehekncsQux2GxD9Jm+/yLAFDs+Ktzkhbicb3HHCw3Bh5rVrWFMnT3ksNDDlwa/aAVw4fXUiCNQJeeHmpEEyQESi9/slv6kVAJwBjO5zdO4eEL+5dqc41OcfCfi6FSUs2oylfhgq2En7HOvdVeO6OOJ33cj8NpJOOarWvQgCQM+bi8enAz2MPdAxgUSs2pLWWKkw9SwOa9JGA7C7DGoKc5qqJidLJCTdzDErkx2lLK5aXCVuYojvADuY5lk9PRg0wiCqh8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB3983.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(346002)(366004)(7416002)(6512007)(34490700003)(52116002)(83380400001)(8936002)(8676002)(6666004)(66476007)(66946007)(66556008)(6486002)(508600001)(2906002)(2616005)(69590400008)(956004)(86362001)(4326008)(186003)(5660300002)(6506007)(26005)(36756003)(16526019); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 139H6pVh1rzDGz9/5sw03Dhdt+tt94ltcAFIl5dYOMCmFu8E+GBP4UrFRZmy5urT0b5zfrqxYOmbi/dnFLby7lb1AxLiU1sPl8CojLkUwgo5gIkGpcTT9MxwdPRkBjvipRahpXhhxXsdJm23DlNyzrwTfsN2dTIB50Qp618YbtvFRrKCesHExKYhYAuZa28mFmBUgpzKnRtAqBOOvg+m3oMUfL0D3CayJt2dvXrq+6ctKIBz0xZ7BTySaykFRnPJLnQ4i8ttOBog2+dXkTuFoAECKLEcLA+8ChcbQ3+MKPZGretglcR1X9yPFQ+YxZEyVv1tUdYtU1PZgb6MQMdLkIDszD/MyGwhcsy8sx4QptPxXFkOWj5YTTfGA5KjUMzko2FNv0XkKd+BIuiSyrvY0yvp4CD3aYsyQQrB8R+DpX7pBcvVM4XHqd24zURBK3hIhoqBjYBWRp5XZjw+I6RBCQ4pC687t+IliRC7UOBPWhnPgoKSmWlk58Z0MOZW6A4xd8r2Md74567d3s6iiIzlTz9LVS3AhIk/moI5ngsNNvFX/gz6bqk0MZp5u8q15b3DNWI0kCkYvvz7OKEt8cnODYwrNgOCoUsvh8r3P18r2I7Z78Fv/if8LAZYYEMJwvloyoZuscCGFwnAzYAzOVrPCxl0C4GGAQ6EavobKgNNX2BlkEh1aKik4opNR1C2Hp1Qm9GSW4GzDETN3TmqWEu4YtMDXU62T8ZwazgYJ92wMAxkmC9gGxPc/4X07mQUV1whcedda30xf0fP1STa7WbPgRwIMV0WTMfLPfFWhSW5/1H0fnunG/oViMzaKniwNCUti4VUqn5NFWAkWV9kG8vTsoexQjS/9Leb1qE5+4CYbjfqBHAmvFm/xke8i1w0l4tQuTk4vrgBhyR31TK3Mu4n+cOiG0gapaA8208Eeg7PkAlCggJWexLdrZm8UwSQGgjwdrs30VpIWq2vW6Pyb26PFvCT+kMjsR8JVO6+WOsteP5JlFM6iBzH8wtZSTx9+DMZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2020 05:36:23.2367 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 90907550-7fc3-46bc-4051-08d89ccd87c9 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DoWKkcVpCU5vaOvarNk40jo7edjsq1xADV5l1vrlyeiNh623OBUITbqmtjJTQKrN6aCNE3GXnPNyauXYRqs/IA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5454 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201210_003630_975193_9A0A9E5E X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: p.zabel@pengutronix.de, tzimmermann@suse.de, airlied@linux.ie, festevam@gmail.com, s.hauer@pengutronix.de, maarten.lankhorst@linux.intel.com, mripard@kernel.org, robh+dt@kernel.org, linux-imx@nxp.com, daniel@ffwll.ch, laurentiu.palcu@oss.nxp.com, guido.gunther@puri.sm, shawnguo@kernel.org, kernel@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
drm/imx: Introduce i.MX8qm/qxp DPU DRM
|
expand
|
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index 54e051a..2e087d7 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -888,7 +888,10 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p); (__i)++) \ for_each_if ((__state)->planes[__i].ptr && \ ((plane) = (__state)->planes[__i].ptr, \ - (old_plane_state) = (__state)->planes[__i].old_state, 1)) + (void)(plane) /* Only to avoid unused-but-set-variable warning */, \ + (old_plane_state) = (__state)->planes[__i].old_state, \ + (void)(old_plane_state) /* Only to avoid unused-but-set-variable warning */, 1)) + /** * for_each_new_plane_in_state - iterate over all planes in an atomic update * @__state: &struct drm_atomic_state pointer