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: 320623 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp509452ilc; Thu, 5 Nov 2020 06:52:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAEFYqJIya4DTqiVPAISpZCctFNiE7grp4iIdRbP4BXCCQcLiJ5yr4XCv4SaOcaE8W8KCU X-Received: by 2002:a05:6a00:134d:b029:18b:2cde:d747 with SMTP id k13-20020a056a00134db029018b2cded747mr2896070pfu.60.1604587942946; Thu, 05 Nov 2020 06:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604587942; cv=none; d=google.com; s=arc-20160816; b=yFrfaHnQxT3fjPD27M7GDbbUhexnTQxw+x54vdigzPfoY1WZ7To3PFThwK21f34HHZ 9REhLnTkh7l1TUQY54BFL+n3Iz++0WBpZmgSKNlZ5kEQW3/fKZRjW6UFSoHke4AlzQMo Y3AgX/Dqa0yLM0BdxoSEe4ZBZGDpktaZIbLOEJPCSnehDzZzvFiiXW5By8w6drh/tRfZ eqbqFejv4Xg1FPEPoIUMBNnPMWPsaUKMj/hvZL+ab5IUzfS2jtLfECAvpUZRaksOykbJ 8HOPgb4MeDJr1q6nRTdPLRngMX5j3qbyspHnY7UF9v1E1xafb9vo8dyyN7Ni7oZib2gZ YW/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=qKIi6KmsLbXLPP1qX9Imz9rAPY/o0WmwXrl2Ziw9bR8=; b=SDDzSvSUzjs0FFVC6mcozDtOILKKrjfdFDay3Kd4d21HMNg3Cfx4pCZF+UT4zMZdCW fekqy4NilEas/z2EOd5/hSNzmqmM25ll3fw1mj98VdGLTlmUREHJ8yvF0L17oLFs3UIx gX6yIogaEdIf6PHwn8yUjHrKIr5ETLAih2+ffqg+3a4naGJp9m9IleSSB6nHqripBGCo a6ZAsF4OHyTC1slkyC6f8fsZvHMAYPZq9WfL0aLoMVnIlN5ZAc9QdRafgbshAbpLN5Kj EeDMcao2m8qd3BlcxvW0XNehv00nBxP9fOSFoRVvFRqQ5O7qg86rtEJj1hHL5YoaCZZ7 Qi+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TPoS4HuP; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id j123si2003724pfb.207.2020.11.05.06.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TPoS4HuP; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org 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-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;