Message ID | 1608261833-24772-5-git-send-email-victor.liu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=OoEE=FW=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 72241C2BBCF for <linux-arm-kernel@archiver.kernel.org>; Fri, 18 Dec 2020 03:34:32 +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 396F023A63 for <linux-arm-kernel@archiver.kernel.org>; Fri, 18 Dec 2020 03:34:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 396F023A63 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=30wSZmXgOn10K6f5EYXfyLyP2loLCBgBqcT5B4WkY+Q=; b=Bez7POUV+mH49GoFIRc5DVSyq +WzPudspfLEOPA45pZBrtKx45TZUox8mXXUFjx67l/bVhxXjRIZXthVur1xhtUuVyWdJ+37qduYJK o4z27wn+1E664ymAHj5Z8OmK3pxuwhTfL7KBeaq1DmtvWSpxsOUQk3uxT3TBT/pfxOYGl4Bv9Hyc9 B3M9Y18hg49zK+sY9yl8Xxnl/Kd8ySIs5MZzQitUMhCBBl4F3d4GRcF9dCE91EAfUin+5WzX2fRG7 ZGryNl/FFPXNrCro4r5IBRAUF/vtoVNm2KdiqVefUgLjbx9xUcl8iexaytKxwUmPN6fzQMSoqL0Mf geYfvNCHQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kq6Vy-0004qZ-Mc; Fri, 18 Dec 2020 03:33:10 +0000 Received: from mail-db8eur05on2054.outbound.protection.outlook.com ([40.107.20.54] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kq6Vv-0004p3-7n for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2020 03:33:08 +0000 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 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> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201217_223307_521450_5997E6CF X-CRM114-Status: GOOD ( 12.75 ) 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 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