From patchwork Fri Jan 15 18:12:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 363665 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp88783jap; Fri, 15 Jan 2021 10:13:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBAO/KGKYTRF6KHe2vgFzuV5RvrmDj0Z7j4rao+T2rcKMrrmkziBlC9dFa+rXwzvwMBwg7 X-Received: by 2002:a62:f943:0:b029:1a5:43f9:9023 with SMTP id g3-20020a62f9430000b02901a543f99023mr13783587pfm.75.1610734419504; Fri, 15 Jan 2021 10:13:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734419; cv=none; d=google.com; s=arc-20160816; b=B8zEjDGVqkoyTjYMmAGFJjOl0CS6T0mtP/OlRBbQ0nz6iQcIoTEOYDws6qJ72JQd73 /G5Zeh+e6Ak02HCpiZJch5+tL+bAeuO5uTcbrAnRwBttacXqzY1EWtlUs+UXBS3Ghp54 YemTMVLm8+WBbBafL2yFebLJXINBPBqFQ9A/PRWc0mdW/sRn/Uae1g616tClAXuQenV0 zFnaR3MqNY3lzXuVMOb1x8tpLWQi3EedLnBYtx7OM1+n2lGYWbGT7qdQYhy1jlWzgQJv qJNDybVr64jAnTXoXN8w8EBc5GYl5tER3ix5KLxmI9ahjUzfmv9iil8M6mRa8gI9Hc/L X+Xw== 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=+aryOJggHVGHUzdaxAwJsGT4WdKj6mAQq1qe6OZe6gQ=; b=tHat5faHaG/sbf7if4CCnMWbnOyzgIV3TsuGvzZH61SwTQGviG+1oRqVQr3rBRAShk hn8110L7rAomb1+mdvwRn9Hb38awBv2Fy7V3MLbpKMCWFgEfOroI5A9o0ktEcbuKoMVB APZc5l8IXSq35use8CzXIYHkFSb0fNCbxZCW+Qnu8GUYUgdT5CehGma+r4vDjdzj+tTv Qc7N/FtQBQpQns6gzbT4aKkc1xo+X6Gn1eqqY5kGStUBYGk90wLQFFTdvvjORr/2H45r Ec4pQrfWVcC+Znvs7egwadd+CFK4MNlkZI/pZ3ZHlYUBOVTp5lZiSh3Rqms5meQzdXKq 2RnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="VLv18T//"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id z8si9857348pge.299.2021.01.15.10.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:13:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="VLv18T//"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 6F9606E45E; Fri, 15 Jan 2021 18:13:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2ABF6E457 for ; Fri, 15 Jan 2021 18:13:26 +0000 (UTC) Received: by mail-wr1-x430.google.com with SMTP id 7so2965756wrz.0 for ; Fri, 15 Jan 2021 10:13:26 -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=8fzZ9731GhrMXMJmVGpMkWndZV2lCJZqnwJ5TjxPTSs=; b=VLv18T//m35e1+2dIqkH1SvDm6ep+u85+YiYVoBayhkJq0Fo5kGhkzJednDi3CEhS7 MQMCgq3ZXwij7qecAqGBES8zNlTtzDwbYxWmLwEVtInsV/7/5s8HK9SYgD0+YImGxUZa d4zqkA/OoYXoywIjLGYOiLiTdT/4vjUgOPBlhH+jOShM1ppshX1o44aHw0lgrwwS8R2b oSXF5ldU70vZ/ypBG955toEAbw+ie77kqQE90uSIs1cywTgldkiFsA8Isapd7EhNL2n7 zsQg/SAPRlcjSRyJlBVIRYvUCkm3Cn0ipnW5cE3CWA0KLOnp18viSfxPwMGN1JZ3r3/O 2M9Q== 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=8fzZ9731GhrMXMJmVGpMkWndZV2lCJZqnwJ5TjxPTSs=; b=t/Uw5RImy8Mu39Q5UIQio3IyMWjrhOZU0CewoAyMOwSZSg4jGZ6gsodC0A5zz/EZLa oF59vH/FW8ArKQW8xoAckDgYEdMQteOoxx3A8SXPRQvGJTKJdjIK7ED45qBpvw4ygDS3 BStQqZ3W9PXQPIh3GtWK2rK1Ye4N+jGMdmdooeUAPNfu3aEkdOevbmT47Ppb2DV2cfuM XIFZX9R3y6tqfh4A72KO+YMA85BVZGuNUSxRVX1/eyeJRQW3Ht6/bmTJU3y1GqOxHLL3 0aQtieAvZY0e0/ciahYf3xdX4TZxlFydT0nGb+vkTdJ2tvCyhR9vl2jsoOiZK8eLl0JW 9X+w== X-Gm-Message-State: AOAM533vOEYuBDY/TFKxV5WJPYDIfDTo1c0Zhm7E45Ar3Sn4372OV5DH TBO0CGnYmd4lIqL6W+i5FPEM6A== X-Received: by 2002:adf:ab56:: with SMTP id r22mr14631360wrc.351.1610734405570; Fri, 15 Jan 2021 10:13:25 -0800 (PST) Received: from dell.default ([91.110.221.158]) by smtp.gmail.com with ESMTPSA id j2sm16123484wrh.78.2021.01.15.10.13.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:13:24 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 07/40] drm/vmwgfx/vmwgfx_kms: Mark vmw_{cursor, primary}_plane_formats as __maybe_unused Date: Fri, 15 Jan 2021 18:12:40 +0000 Message-Id: <20210115181313.3431493-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115181313.3431493-1-lee.jones@linaro.org> References: <20210115181313.3431493-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 , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:256:23: warning: ‘vmw_cursor_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:248:23: warning: ‘vmw_primary_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:256:23: warning: ‘vmw_cursor_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:248:23: warning: ‘vmw_primary_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:256:23: warning: ‘vmw_cursor_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:248:23: warning: ‘vmw_primary_plane_formats’ defined but not used [-Wunused-const-variable=] Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index 03f3694015cec..6267ccf54944e 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h @@ -245,7 +245,7 @@ struct vmw_framebuffer_bo { }; -static const uint32_t vmw_primary_plane_formats[] = { +static const uint32_t __maybe_unused vmw_primary_plane_formats[] = { DRM_FORMAT_XRGB1555, DRM_FORMAT_RGB565, DRM_FORMAT_RGB888, @@ -253,7 +253,7 @@ static const uint32_t vmw_primary_plane_formats[] = { DRM_FORMAT_ARGB8888, }; -static const uint32_t vmw_cursor_plane_formats[] = { +static const uint32_t __maybe_unused vmw_cursor_plane_formats[] = { DRM_FORMAT_ARGB8888, };