Message ID | 1608261833-24772-5-git-send-email-victor.liu@nxp.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <devicetree-owner@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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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=unavailable 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 94B4AC2BBCD for <linux-devicetree@archiver.kernel.org>; Fri, 18 Dec 2020 03:34:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5882923A63 for <linux-devicetree@archiver.kernel.org>; Fri, 18 Dec 2020 03:34:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732374AbgLRDed (ORCPT <rfc822;linux-devicetree@archiver.kernel.org>); Thu, 17 Dec 2020 22:34:33 -0500 Received: from mail-db8eur05on2055.outbound.protection.outlook.com ([40.107.20.55]:45920 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731130AbgLRDec (ORCPT <rfc822;devicetree@vger.kernel.org>); Thu, 17 Dec 2020 22:34:32 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WRpaL340msllsJjZUkv5y+Ld94sRM9BlQ2ro1eWw2pqGmwMFVE90LDMcDSNiBxCnqVeSeP6HIQ7goWh67u9edUUPM9baEMNJdyNn0RSYVKiRyCBtqhAzdCUwWkyBJR+HhlRAushykOGtXo2PSnLSQoxP0u9I7lYGthKIXhOumhMmqrHEN/bLqGwje/xJ5Mhyp3ltZTlrsRLVGdtqm2dZNt3MTTneYd+T8SuPE8pbNCO408ti4VoAUs6Q3OWOFOrfLW0CXB4VKr3PDXngKKzDMt9WjsvPUldEvnrj7gyyVq9toUKAI5BkDSMhYKc9GwdRGdrRR5rIosIzGpYhruKOgA== 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=rBOZZeXEhJQ7n3OnMKb4cn/O/k259v60ar+//rZcq6k=; b=f3oC8ZvPkcGM5j1vU2jcJ0rrOlpnmM2MejlEO+CK0lDRcnysP42HjR774WZTcNNYs/O61iDlqol+qLjT9yfaP5tDYKE6AfO792Drm88Zg1MoIq20kp6C3nYb5dvbZved/Qf+XspFbPRzhiO6o3zO+0MaM7oKmHQR7SfnUK7S/YbQN9BLBRLeWqk4TlYuTeqTUAtFUfuaNZi2yB9pjHJduIIeH+GNAbZ+bBHdmj5zWVGNn9Luo9HTAWkQkctXVXu9qEOYAOEwo9LQs7bngHOLayfxfo4HxKnRfE/GjSwUyQEyXWFmYEhivbApdK8g/8JMLrLjK2DF1gPx4fSlIMA0qg== 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=rBOZZeXEhJQ7n3OnMKb4cn/O/k259v60ar+//rZcq6k=; b=b1Bu72RDItdEpNAGm8qqyNeniAx1KduCOh66Tvk2fQfaa5w7jyFFq7zumv2J6YvgIn6ChA+ivtmJChltPyJI8u16C7vzfDAImvJQ77D1ytLfmDXhginGtfaMgxQTSZV7uDfFGOYVUD7e4mP5sugDIzRJ7dBZtPphjiOzksvUPT8= 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 VI1PR0402MB2816.eurprd04.prod.outlook.com (2603:10a6:800:b7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.17; Fri, 18 Dec 2020 03:33:04 +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.3654.024; Fri, 18 Dec 2020 03:33:04 +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 Cc: p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, robh+dt@kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, laurentiu.palcu@oss.nxp.com, guido.gunther@puri.sm Subject: [PATCH v5 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state Date: Fri, 18 Dec 2020 11:23:51 +0800 Message-Id: <1608261833-24772-5-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608261833-24772-1-git-send-email-victor.liu@nxp.com> References: <1608261833-24772-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0118.apcprd02.prod.outlook.com (2603:1096:4:92::34) 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 SG2PR02CA0118.apcprd02.prod.outlook.com (2603:1096:4:92::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3676.28 via Frontend Transport; Fri, 18 Dec 2020 03:32:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b9b47008-c91c-482f-93e1-08d8a305a142 X-MS-TrafficTypeDiagnostic: VI1PR0402MB2816: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR0402MB28168B81907D943783FEB8F898C30@VI1PR0402MB2816.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: 1PwoCYCZT9UVDhgzgX7zKSdEluAHeGqRMXVh4g245IyL4yyM9eTb+0H0gjucGJendxayYZVBOCRFtCBcvrxv24ICGMiCLW4Hggsgo9xtgVb0Qaj/FcDC22PBlyUilfwcyBTLC05xr2BkWAb6yLSn7fTcesB/u+RquRyw6i4MvqLkVXtSUXGPMyUz/yrXbckNX3PstbiHN/fLSyFcYpm9d3EBiCXnRJxpvqeIBcVwdEd24h0kdF6HBMok7iwRsUHUJ8KXR4MtjSjENgejVZ2XdyT/vztOMmosKNnHOoWECuLMeeE/gc/5Skkv7YQA4AsPiH1eXlVrAQHSvVlHc0T9ttyJI/jsrZzge4nzH5VwqoKvS+gOp5boLhQqAHuo4LK5 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)(366004)(136003)(376002)(396003)(346002)(39860400002)(66476007)(52116002)(478600001)(5660300002)(6666004)(36756003)(316002)(2906002)(6506007)(4326008)(2616005)(66556008)(6486002)(6512007)(16526019)(83380400001)(69590400008)(66946007)(7416002)(8936002)(8676002)(86362001)(26005)(956004)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: nhOMhL1KTzjOKzNfWT1h0FG2u6H9pCL882QZA0rYzAEzo30sy1WOCiXMVPp9DUJhIXegLJdm2FEJxGLt052OLdT8l5VxFpKTfwdDfl25t50anukHOzeQs55UPAw/mpLxPatM7XSnq8mPopeGedvJPNGiTciHWhGHhktpv28LN2F1A1tjHE65/lDJtUTkV7SedZP1AXLQCz+iQQQzaPl9nZeB7JURiJGY0ksoOlPTdeNoDcr2BOXeoW9J21uauSBA73LF4MZ82iJaAslZ83KUfh+dg3yYtWODL8rkoRJwI+Q6qI1JvjQvPLBr5ujGAyEh6FLGyP+6oS39DIZHsznxzGRsHfi3ORV93zXYMN00gHayQci4aogPMBskFYrFzN2/hGHellloBlvjLbFpe1SXQe5WyejHNDrivnF7CYkBD9s0isDK24xQaOU/t5P/gJoMmpG6MJ+X85tZKA0b8IUNZ7RqGRyoBh9JikH1bcUb7yNVzmGIm51a/wXv5o6mw+hCPHaFno36N85IXhOr9uHoEj/nNVqwlrLXHd+rlFWDfslmr0xgU/nnw00yMqbV7N0ptcA6cSELgF2jEIjq/7mh/Ykm3tDt4CcgddhpY+jSYa+YeVg3c6kJqZsNzcG/eAo1EIBtd1ONqPxtHfvGS0ruCA2k6u6jmcIDcthxKLTy1ce7rFSQm0KID0pDXhOVIfYV9KKE1+iqX1Y3qzV2+lmDka4se2F3HSvYQQD814juP5L+iqj9HvlaoJmrSmeCy54fvHAo6xfr7HhlVj/1Fhh+GOZLtmeAcZZ5Ka+gs8bQ9qK7YZde+Iy4uy3bZVJXqyW7BQHuQ6SJMC4KddCnRenzHnHWVh9lyMWmG0xBebWmrEHGKGlVH6MreL4gAGO9fqnjNYcz3euYLqJB+tBE1NP6th9bTf7nkLBASJ2ViEKL07M+37U5nYYUd66exeOLzJj92cg9ZCAOhwBLWE/iKy2Kv6l5hwitFyBpkjol9LiJiVaJBohDpQClepO2inmz8HaW 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: 18 Dec 2020 03:33:04.7254 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: b9b47008-c91c-482f-93e1-08d8a305a142 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OyKC/deFQVpLFsaKkpustYR/lQntQDhu3x1C3sdcKJ/6Pz6EwJu+oHzvw+FxQ1Q01KFocbwNDEvbOTf2DtwXrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2816 Precedence: bulk List-ID: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.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 ce7023e..6ade7a1 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -908,7 +908,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