Message ID | 1611641691-17554-5-git-send-email-victor.liu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=3d55=G5=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=-17.0 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 C4C22C433DB for <linux-arm-kernel@archiver.kernel.org>; Tue, 26 Jan 2021 06:27:52 +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 7F7122075A for <linux-arm-kernel@archiver.kernel.org>; Tue, 26 Jan 2021 06:27:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F7122075A 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=3EUY1BBrqcQnWpIR7KLaHHwX3FeeSllWDgMelUU3fQo=; b=Y0KumT3pIkPlSwgy2Owu0gGP9 VJhP6khI21cgbMXMSxQvssHsP4rId07pT0kKlE9ALc8L04nFVkPy3oAbAcvkfF/fIsFD9Eyzv/UKx r/MjLSl0vuJ6DyzuoAyHbg/u9chBUkrKdutO60EzgKz6Xi9VWW3gY5ArgXZAvFTIHW3dlAALzQFMB COik+FtddR+zqBkIs/EauXdH9WE5BRZOlb4whirJKpee+cJWilvV0zsKJCsty6lo6a6wIq0rOZ6fq qP04Hjmtj1I9E8jpt5KfH+dsTpjQZcmOfLl2k3TI2P+nKgHWaUa9hWIhZEslUi1pAEd5ZhM4AKaCZ SUhONdmgg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4Hnh-0004hg-3H; Tue, 26 Jan 2021 06:26:05 +0000 Received: from mail-vi1eur05on2083.outbound.protection.outlook.com ([40.107.21.83] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4Hnb-0004ga-2z for linux-arm-kernel@lists.infradead.org; Tue, 26 Jan 2021 06:26:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IqOZKHp9As1+pX/yvb3sJEESGAxpJOVwuTgUKyxt96vsILKlEV49yHhdBwdBu7Z1I0AGKOVE+AkaTj8z3j6YrwxgzWcIOrDkawOhefw+TVEVrIE6DRY4RFwT0MaLvDfZtkq2/gZ+ETpnD1t8lTkSuKSfdqQ/R/gx3AegqoVlf+KeTTUB7SXJwd/eFoYxrOtKCyVpkn4aTZp0LfljqhIQ6nLBc+Bkp6aj61ajpu0XgEC86Nj2xWtZCdNww95bYX55aHB0ZmcM1YgDkvljcnRMSJUpgIT00c0scPa/ZHQLvB25Jz/mv1KZQgtyQXRopa3uWZVXQ7yR9f4xx6on2LKz7Q== 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=2glhBm9dm76kaurB7OKVjmMsUYFUB7xZh1CngMuvNe8=; b=aPcIVCgxMl08JvkIcZeINhBzA/F2loH1Ligiiopkd1l3t8u6SgjNjvzGNal3QfvyEpBBchEep80b3PNJ9mpK0qmQcgyyJve/27JS6QdbC6NylrplzqP6UerQdidSHW6fgGfxDC91voxzPuwykEn1u5lfPsrgQw1r1M1vO5askIZ4lOGzz+k2XvIEBsRMvtdj52rhhPon33y569CF86UL2xDTkkXjFbHGshw6MvXpIkNvN53RKqTTgAgqp1v5tyiOGAz0qHEUsCU3k7uQ1S7tHFtHf4hHjtvdT4q72OhZDt4Ot+Q6/Pjsvwpgk0Xb+UfLqgltMeecDn365bPIhbXbAg== 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=2glhBm9dm76kaurB7OKVjmMsUYFUB7xZh1CngMuvNe8=; b=U4lVym94xpb84/2hvE/LT9WrhQBEIXKzRr7CtPjA5T9JGZt0U1M8wfhNRn+cjT8kmxb7SsPLXqcrXJlUNTzBM7CulLDY4utUzwZCKyIgF1mRcsZo1RvGxFW353NDlW03cszekBMdarp/dx0/a2lfzvb1aGjaSC0QQaVuv7bmLIw= 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 VI1PR04MB2973.eurprd04.prod.outlook.com (2603:10a6:802:10::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.13; Tue, 26 Jan 2021 06:25:56 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0%5]) with mapi id 15.20.3784.017; Tue, 26 Jan 2021 06:25:56 +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 v7 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state Date: Tue, 26 Jan 2021 14:14:49 +0800 Message-Id: <1611641691-17554-5-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1611641691-17554-1-git-send-email-victor.liu@nxp.com> References: <1611641691-17554-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR03CA0108.apcprd03.prod.outlook.com (2603:1096:4:7c::36) 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 SG2PR03CA0108.apcprd03.prod.outlook.com (2603:1096:4:7c::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3805.6 via Frontend Transport; Tue, 26 Jan 2021 06:25:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 62cca5ce-48bb-4597-ce83-08d8c1c33cf0 X-MS-TrafficTypeDiagnostic: VI1PR04MB2973: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR04MB29737EE68C7B63A59D426E8398BC0@VI1PR04MB2973.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:47; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ed7TjRUIFqkWs2GDHf00DHUiRMjL5+cUny9Oq6TAOJzkq6jQjTA01byUqGf9fUhNF9ydiMdd7xztlm/NkGmlvr77qRkYvDUznznEloAqAN5wgvBI6EYa67btPkbG3gshp/XI/VYTdKWQOIvM3C+Z7BqXvU8HqdLhMiYFE7n56NVNctgLEBoPZT/1/HSkCvS11IMtFKmJYFUmItIi8JK6iYNLeIZDnGfdHeqIeAFARD3FWzVCaO3YFrvD6C+y7Q8hybQGXaISiMwGVdjU3CJCM4yKm9OaGGgny87up/k+OljY3YfUDc4TKRK5Boq1fE/tqbchRDuC7nwmaDBGcFHbUqy2VJxDP9GcuUPvM8WHn62d1BXotl9BJD2UyvmPN4+QTjaJis/GxfKkcs1eo7bwz8TtSC6Ts3IXOnFMmRErcXrGWLUpMPE5fT+ANdquHihBa6C++GbxYFaca3fOHIbczA== 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)(346002)(396003)(39860400002)(136003)(376002)(36756003)(8676002)(69590400011)(5660300002)(316002)(7416002)(6486002)(66556008)(8936002)(66476007)(66946007)(478600001)(52116002)(4326008)(6512007)(83380400001)(6506007)(86362001)(2906002)(26005)(16526019)(186003)(956004)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: CMi0wvsL4LOHQ42kl40OmTKMx5svY+d0MciTISyn3QGRZZECY0n938IesPgSKD/oWV0yQ3R+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ce83-08d8c1c33cf0 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2021 06:25:56.1421 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZVYb/kfSu4BAc1o4oqe8gSuvKgY41AiD3QiK9fxdBtbR8qT0vk1kUFl392Kter9fuEIBkfysKQQyxS3l5M9KRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2973 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_012559_174546_8C653958 X-CRM114-Status: GOOD ( 12.48 ) 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 ac5a28e..76d8dee 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -912,7 +912,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