Message ID | 20201116174112.1833368-28-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | 7df5428975e97818b30d2b800c9e8b0734ea8da9 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3508132ils; Mon, 16 Nov 2020 09:44:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqZiuD5Edxbys6cr0nj9cBie3Am0fh0DL5GShlQbqYQAWrJ1pQ1TCYe37wAYruugEd19jr X-Received: by 2002:a17:902:bd8c:b029:d8:db1d:2a35 with SMTP id q12-20020a170902bd8cb02900d8db1d2a35mr12098896pls.66.1605548542546; Mon, 16 Nov 2020 09:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548542; cv=none; d=google.com; s=arc-20160816; b=BvEFY6OXs5wgkUvWrOcpwACVsAdBi1xlLdCx3Hr0FFLDA8ogQA6lL6t8VHV+cpjryO daSfmwqPVQ2+pWBpd5iJfs26GSAQg1dqQ5CbiSoHmbWmpRIjfS/sLQqOnbXEFcwbVJx3 ZrriEbx3Kyk79mswnf/c0b83mUWO3pQXYAslGN3tMZHaXWEQW7vdsRLvD3ku6qDJH8mz XpdhA4xT1d/G5KzJzEVc+aoZrWxumXvBBG5LFFgzrdpYj5qRJaeSazku13Ue27CrFnVV kYzNq0nz9Z2Oxs2N/w68YWBM5X8dNPTWDOkhSJuUigmgUPz6caYICW3q8sZV3v10Br7G +idQ== 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=fBXzztNMLuxedMg6aG/u8U+eAR1Om+SJtQF6kFgdCXk=; b=hclsviVgKgje7+4UC1gUGM6HcH/gxn+15GHQyrIoYhTgvv6QUbCSyAXTw8ufLn0EPO T63jDRH+Qbh2TkpUOuac76GZCzmXbHV0SWtXRMAewbU81UdRoQdAc0J6ipyP8xwKKfmp 8E775QMk4LHYZfJLnGevFmyTuq5N+f8Mv7B78UW1cmRXzrBcZn7Bg76fmqyRrpYdyJl4 ZCS7JkJb3GyXYBRKWmDVHYf/AARn26b0XOhQ8mCThTQEjpXWJxHpH7lDJchiOl/4O8Iv OIMxNIiBLLHEqU7DJpJ8Pd53W7ioIUGTuy+yDHJaTKRvlFppMxfP37lMWc6Y5zKRcJuH ay2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jjlCCiNI; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id az20si34856pjb.21.2020.11.16.09.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:42: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=jjlCCiNI; 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 9C36D6EA09; Mon, 16 Nov 2020 17:42:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE69D6EA01 for <dri-devel@lists.freedesktop.org>; Mon, 16 Nov 2020 17:41:59 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id k2so19704384wrx.2 for <dri-devel@lists.freedesktop.org>; Mon, 16 Nov 2020 09:41:59 -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=wbt6Bt9xb+nEOL+sC88FIyMMDCRwxeU6Sb1wX9bISpg=; b=jjlCCiNIxsXpA+Jb25gKyWLrqTzlSWECuVTeXlKwqjUFgAiMxr2Kg1XsOu2FBDybwM wlRkZCxOJb/RWj0i6Uh14Z8mZESJ4jsc5a5m97NFCFK10sB7oe7LWCpmkBLNACoAEDGT XsH/kfY8Xy6dWH0+U1ERkrX4+wT77JWiLWRTDYONESCjRkl7SpP+eTUmq5S69un0s8x8 tZlttEn9Mofc1vKl82qQa3htdJRCyrK6jakgRDCgIgeVn8u/bxzK6iGrPvoyWYFXKCOY U/LNolmUxpjXqFf14X66y15Q1pU0Ul51bCFk/mWMfRsyW4W+haj5BpTbHXJOfr3btsFP p8rQ== 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=wbt6Bt9xb+nEOL+sC88FIyMMDCRwxeU6Sb1wX9bISpg=; b=pze/6pnAG6pop5kxwc9vfN6Iau1eZ2DuqRWMgHNeKyU1viJewnap7AQNfWpM3/aDaN /0u5s/64B88/RRzJ+qLlzUYNLMHj7Au+4eSeLvu54UoX8L8f63HA/O6qbEFz1SOBKB4z xHz6HCvXMJwVdvtxq/6AZC5lDGyyxQEMIaZwqwusGnt1A5lWnMzl5iW+cFZi7pGh+2q3 jHs5sKzAuuPjg4Rg8wl0CEdccuVrjrpIa+NnI60kswgNFZ/ahEE5DMiiKoKTOC73EmVj kPmV6+gql6N2chJuZrdUbZ641ilNzSosb5cCzZpsZVVTmx9efQ0lHaPmD91j1gxE3U1B QO6g== X-Gm-Message-State: AOAM531HeiFQmOqP+tK0nLYB7SeRT6SxQz8UhASHPlfgSZ1C1zKtVMnm Z2KjcjFwH/mROPdRW1yi671NhQ== X-Received: by 2002:adf:8521:: with SMTP id 30mr20985238wrh.265.1605548518655; Mon, 16 Nov 2020 09:41:58 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id n10sm24667224wrx.9.2020.11.16.09.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:41:58 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 27/42] drm/selftests/test-drm_mm: Mark 'hole_end' as always_unused Date: Mon, 16 Nov 2020 17:40:57 +0000 Message-Id: <20201116174112.1833368-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116174112.1833368-1-lee.jones@linaro.org> References: <20201116174112.1833368-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, Nirmoy Das <nirmoy.aiemd@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from GPU (non-Radeon)
|
expand
|
diff --git a/drivers/gpu/drm/selftests/test-drm_mm.c b/drivers/gpu/drm/selftests/test-drm_mm.c index 95e212a9a74d2..b768b53c4aee3 100644 --- a/drivers/gpu/drm/selftests/test-drm_mm.c +++ b/drivers/gpu/drm/selftests/test-drm_mm.c @@ -54,7 +54,7 @@ static int igt_sanitycheck(void *ignored) static bool assert_no_holes(const struct drm_mm *mm) { struct drm_mm_node *hole; - u64 hole_start, hole_end; + u64 hole_start, __always_unused hole_end; unsigned long count; count = 0;
In the macro drm_mm_for_each_hole() 'hole_end' is provided as a container for 'hole_start + pos->hole_size', 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/selftests/test-drm_mm.c: In function ‘assert_no_holes’: drivers/gpu/drm/selftests/test-drm_mm.c:57:18: warning: variable ‘hole_end’ set but not used [-Wunused-but-set-variable] Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: "Christian König" <christian.koenig@amd.com> Cc: Nirmoy Das <nirmoy.aiemd@gmail.com> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/selftests/test-drm_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)