Message ID | 20221019020226.2340782-5-victor.liu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F971C433FE for <linux-arm-kernel@archiver.kernel.org>; Wed, 19 Oct 2022 02:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sa+/wA0WXuayCr5JVRaWL02iyYFMkoHmoSbQ0mt70JE=; b=o7Zlt8V2jLGruN mYB91baeIIwf0dmCUrRUoRwwaVKOvStOEox+ovqofAf0UG1nP+r1sDZMTUVAmmP65arY3d9EOwwGS U5+P0i64w3VWo9+HPdgir2csKc1QQ9CKxYoaCTFlPl4dD8IF2lz1RqdO8fQyz++eRws4T9p6KfBOz t3NVtTc6Smi6vGPAQ6VLK3qgLXU4htdZyPwXNjGCAW7KU9ZI3kbXidFKPpNh2zFtOMNN7K7Jt1Uos uxqqOAjoBO1cwNSByqtiBIJ3toavx/poEa8D1LYHjgA1KImL3ZT/cBVVTl8s96Pu59VWbCCXW4x8V 1RXBQ+6sP98xWnHUkimg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okyPg-00DPNG-Da; Wed, 19 Oct 2022 02:02:32 +0000 Received: from mail-am6eur05on2064.outbound.protection.outlook.com ([40.107.22.64] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okyP2-00DP3V-Kq for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2022 02:01:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TERJfWL2lL8Y4K/Yib1taM1pWBIH+wpi+o57fcW6J7FDmk4vQV7mOY7Vc2oL5d3Scg9fElTfXEkdlZUy3FX3VmLjk8yqFMGqff/1Z9zXe8yCobkCXEl0bSjaDltHpLVs7sW+kniVIk/o3qcPLd7rR/lqy2dVYiX5WTK3w1Zw4QEm6Z1r1zBoETbBUlZhm7+ssLFjIt+s3Lz7D3rn81NTwlPxZJXJ/+rwzrLZbdiQWQDOVBtqmPPjaDX3rka15g5+E6meZrH6n/DcPFnvBfR5dKMj7uw6adSLYUH0Ra4mBvR+5hSo9FZgc/Vjusy00ccRKjmaRV/6XS7INd/iGoR3eQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ci7xfvTxFr+RaQcMiqvYpphr28+f6HWD9sJq02tQ07Y=; b=WYgKv2hx9I+CRVSir42zC6cqafuhrdqC9T6BB+TPWHCHSFswpyaHRNrOEtls2gmr3Mk996O1er2Xiy/jjZxnI8m9yY6bVGd8/TJtXdniRu8ADDRRCUTxX2zC2sdlIMhjMoRxf/AG9BIH5cv1xQWKhmQ+zbUzofKtIeXrnCH3HX9j67YH3V9goD8m7ZDaoUDjWo8EdK7QNTU+BSsMhAAzAS53AJUB9R5oa4h7pFXYcgd4LBNXfN5QRAVBRrf7rswg0em7/es544b8qwL4v9yH+zALvhC/9l0zdjOsHWF7OnuN7vOZkQ8NXgTfnr4ik/7XgNzIou+D+vQowCb/U3KIEg== 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=Ci7xfvTxFr+RaQcMiqvYpphr28+f6HWD9sJq02tQ07Y=; b=BPFOBQjg6+PAtcoadVZcn+aw27HATpSsqGpgQ9LnJFBlnXXEox/8E5bvmPxV2gjf2SuWuIkQeCbiNA+PH9kFg9XB4uRKeOsaZOyMHCs/RSQnIUl2dM6BA7hbEw3DAo4MS4I6Xybj/7w9tHZxxRY0NUqhU12ifT6YRwY28OWdPn4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by VE1PR04MB7246.eurprd04.prod.outlook.com (2603:10a6:800:1ae::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Wed, 19 Oct 2022 02:01:47 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::181b:75f7:dbc8:b4bc]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::181b:75f7:dbc8:b4bc%6]) with mapi id 15.20.5723.033; Wed, 19 Oct 2022 02:01:47 +0000 From: Liu Ying <victor.liu@nxp.com> To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, guido.gunther@puri.sm, marcel.ziswiler@toradex.com, laurentiu.palcu@oss.nxp.com, robh@kernel.org, Daniel Vetter <daniel.vetter@ffwll.ch> Subject: [PATCH v13 4/6] drm/atomic: Avoid unused-but-set-variable warning on for_each_old_plane_in_state Date: Wed, 19 Oct 2022 10:02:24 +0800 Message-Id: <20221019020226.2340782-5-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221019020226.2340782-1-victor.liu@nxp.com> References: <20221019020226.2340782-1-victor.liu@nxp.com> X-ClientProxiedBy: SG3P274CA0011.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::23) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|VE1PR04MB7246:EE_ X-MS-Office365-Filtering-Correlation-Id: 55d66238-c97d-441e-86cd-08dab175de5a X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 248fR5zlcfKIXRF39oTp/Ym2kuWgfpshBs7bn8gAp6cPmQXpSPfX0xYGqLRgwpvcPYs+kYmK4/vkM4ICHVgzdXU2HcnoYXIT4FFk/i02VMFirqzi2UNYaOV+3F7QFtkUn/mrVBw5yVJAJWZISXjI+oCruIqy5xR0hw+Q5ODFlU7pTI3ovVdg57XIhqbkY5ql7cZWKNcL6GbIzLwvY0plukb8X/5e2QcgBy5bd2o15fIMbCissFJkd1jlYHxbSDdqrWfmv/zShmA8xBIU89wRYpLJlPnGD1PVW0U+zC+Ou6yDnwvXqjGNZlbCIZPXBERg7ZwFTADzKOEyFjDGVD5vualzFeeF5LmyoohWboAmkRLPVm8v/RfkETlIJqT2Xhj8j7r1HQ6z28z9BmoOmUqs41effPpuLoW/KqlLeiZDBKZrN/eB+j4cyTg5Z9dAO+DUUnjD4wvrdIoy0WAYXx1bYwjHKBFipQ4Wp4W+TjQbr35ano0ucwatkDF7WFcHzMaeWwc/n5EiqjVZaBIUp/gK4r6IJxLm64gxdIuOaWpqVbQvIXv8Ua6Dm7+E+S1cK4Xr6kkny9njQiQJjUi8ko4NCKzma5CX0/o35E/oN7jMlr4w7HuZYL7S6VuWqH2CzeIahyeY62lkmSpHYZYsb+wCdUjWlH34iKt2OjSEuGnMll2rLi/BQbBLuyChtE9yXVAPzkDhWPqd7TpkJSEmLK6q0N4oIn8aaALjHkVlVTXtdcq3k9v7DY4wYG0SuXuKDVI9IF+QRkHkBzTuyVszl37piA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(39860400002)(136003)(376002)(346002)(396003)(451199015)(316002)(83380400001)(8936002)(6512007)(5660300002)(2906002)(2616005)(1076003)(7416002)(66946007)(66556008)(66476007)(8676002)(86362001)(186003)(52116002)(26005)(41300700001)(4326008)(6666004)(36756003)(6506007)(38100700002)(38350700002)(6486002)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: L3LCkoaNXVA7ljq186FJWKiMgV2ZNCGN8/nkW6DNOC/PUH9cK1z2vZEhFJA69wm1Ho4XGAFx+JJ6ZzbmJ36Kd92QH4ue6ysQTc+fXbOZ1Xpj9OZD6UrJHwxPB2Ee4WpM3WJ20LGvgOov3RYkHz5xUBunv/iPkMbJ+6Wb4BTkKoELoKIE/bYRj3qHYn4jwiUrT1RB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EZE5nu8K4ZpzefmVXSOnmes/BMflXvmRXnhzjZVDInZVfqQ+hxR24N7+k+RNC0NVsgkbrjF/F21IjYsrqcbN42haAvYbkxfVjr0LnXtQm3N1pZyTWbxKpbtUdM7dJYYCgBNsM5JjkFFtkXyeJK3OJUmEJvF1DxyXpBSgsjP4BS9GyHqG7HJRanw0kP4dVTmj99BS1XqDZC/m4cOdEjCNdUNw9YhjZU5tS+9grI/235pnz4JoMV824GyGfGM0de5dCp2OjEHutc9juoF+0ySB57tzBx2klnrt6rZlYaADPgBntnKlfehgr7gVhdUE5vUwQehZbXMDu3IECT1o20dcL/ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55d66238-c97d-441e-86cd-08dab175de5a X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 02:01:45.2057 (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: QTKRVBTD5tknwoHXFRuW0jGPDXtRdpI5zLphVM8daxmbbWyalBza56BqVsH1PFqI0daGPQoVUeBTCWoVq+q8hA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7246 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221018_190152_745566_D1079515 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 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> 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 10b1990bc1f6..bcd6ff9d18e1 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -947,7 +947,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