From patchwork Thu Nov 5 14:45:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11884567 Return-Path: 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=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 4C988C56201 for ; Thu, 5 Nov 2020 14:52:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 C917A20719 for ; Thu, 5 Nov 2020 14:52:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TPoS4HuP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C917A20719 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 88ACF6ED8D; Thu, 5 Nov 2020 14:52:20 +0000 (UTC) Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9FAA36ED90 for ; Thu, 5 Nov 2020 14:52:19 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id p19so1283141wmg.0 for ; Thu, 05 Nov 2020 06:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PcLLONpboZvUTN2aQG6zfp2ux20ADiydIBkQhnQ1U2o=; b=TPoS4HuPdYH3c9MkIFPPhTWS3RWJ96JxCEE54GBANaYyXJMNJ57387nPrvwHRDaSNm nHeUY9/F6E6+1ajLkqOBdOwSz5wlN0DSW7bnb1kM0wXtle/sPy0+QyzhHL2HmYDskP0v 5a4eQrJJ0W/tyvnCITfTXUTSFkYNhAXh+AqVcy9u1VbHeLO0Fq9Bzo0EvGqSkLe1zH+B Hsy14wy/MXLN+cEeGwCc0fsMQzhwOZlaUnyojp+zFzAx1gfvzRv+/sU1YkCrjUbRFHGj nqjP0GLiBveDIZrB3bqZAv6TFLiFeKVtaym1w8d+0ijahi4yfUnW+DsvZlU60sUcORea pq9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PcLLONpboZvUTN2aQG6zfp2ux20ADiydIBkQhnQ1U2o=; b=RSaSsrKMIhMvcNywbP/ebhI0P2GUIaG5drYFZcd/xif6U6rgpOP8e9Vn83If3RxQS3 xdaManTIiyneRJS0WmUMQe6PzrpjXI7ETrVY64J3E993PKbNNTlFLZHA6FcqxFz+FjfG iFIPF7wzI/CPmCV7vGW+U3oi82OAxasVcfdR/fmigeFveAA5m5YhFNe1fK3Hn9irTRoU PuqIQxpBR4JChsxzVxIzZhiUVqE700b9Ah0Mcb1p4JpFY6PMxJ6ir85XCS1EcixbXYZD BUyDs/9LJ7FRr7B0dUjFtiZsSEBviJ/gmmWq2UZKEbdmncNd+MWAyUN6GOukhI7lh1i5 WBDA== X-Gm-Message-State: AOAM53063x8E+hlGbg4a27R1sP8hkX391S8oNQuS4pN8fOBoOyRH7yJI kytuI6cQYfC1o01GCJT7YxjQ1w== X-Google-Smtp-Source: ABdhPJx1nScLQJ8+/5pp9aKW+CIR313HsjM2GzYFhafeQ2i1VZRBFeJhdHevY5Gcwa6RoHinYaOFfg== X-Received: by 2002:a1c:a7ce:: with SMTP id q197mr3190860wme.138.1604587938324; Thu, 05 Nov 2020 06:52:18 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id f5sm2631243wmh.16.2020.11.05.06.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/19] gpu: drm: imx: ipuv3-plane: Mark 'crtc_state' as __always_unused Date: Thu, 5 Nov 2020 14:45:01 +0000 Message-Id: <20201105144517.1826692-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201105144517.1826692-1-lee.jones@linaro.org> References: <20201105144517.1826692-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Sascha Hauer , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, NXP Linux Team , Shawn Guo , Pengutronix Kernel Team Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In the macro for_each_oldnew_crtc_in_state() 'crtc_state' is provided as a container for state->crtcs[i].new_state, but is not utilised in this use-case. We cannot simply delete the variable, so here we tell the compiler that we're intentionally discarding the read value. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/imx/ipuv3-plane.c: In function ‘ipu_planes_assign_pre’: drivers/gpu/drm/imx/ipuv3-plane.c:746:42: warning: variable ‘crtc_state’ set but not used [-Wunused-but-set-variable] Cc: Philipp Zabel Cc: David Airlie Cc: Daniel Vetter Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/imx/ipuv3-plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c index 8a4235d9d9f1e..acc0a3ce4992f 100644 --- a/drivers/gpu/drm/imx/ipuv3-plane.c +++ b/drivers/gpu/drm/imx/ipuv3-plane.c @@ -743,7 +743,7 @@ bool ipu_plane_atomic_update_pending(struct drm_plane *plane) int ipu_planes_assign_pre(struct drm_device *dev, struct drm_atomic_state *state) { - struct drm_crtc_state *old_crtc_state, *crtc_state; + struct drm_crtc_state *old_crtc_state, __always_unused *crtc_state; struct drm_plane_state *plane_state; struct ipu_plane_state *ipu_state; struct ipu_plane *ipu_plane;