From patchwork Wed Mar 3 13:42:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392085 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133250jap; Wed, 3 Mar 2021 05:44:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJydGaIS9rph2cbb5tStZaBMWU9SEbbpGfIz+xz8ctMFdebhiAD10eGwFzV1a7apnRY4wLHq X-Received: by 2002:a65:5c42:: with SMTP id v2mr23364550pgr.339.1614779065066; Wed, 03 Mar 2021 05:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779065; cv=none; d=google.com; s=arc-20160816; b=q7Z3H3f2QufZfF3zvEHNLYv/7BYdgOqEim3FqPTuJoMuLL5ysHlagZo8DxF8RU9Z56 WwM69U4rTQ04FMstsfBJPDkFkMMQHDWDejqxb+tkkXR7AUdvJEx1HLAGijDK/bSVbXaB 0dnS0fPNrRtKYsLJIl3mjkXr/UPqy8Kfj4k4WwW03RC7S3HIbMivKv+PNFwHbV/twV5j sJbdcHJZOvJq9An/qfqDPXIS/6OskpibnLV8DgG8DbM5U/dB7GypLxz2vDHr9jSPDQTX 0o6xjip030DWD3DvbYh2jVfECSUOd7R5lmrFRRfYSLGiAFfBNDdqhb6x1+Xsv6xHgxmz H7SA== 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=iOYvAC1zwWppv7Yxu37WUTIT2hfcf+nJI9+++ydspO8=; b=aWhGc0hTzphT6j0DPbmwfvrUbHYSNeCd0FwGocm1zJHHab2b8hF4VmTKSUC1UVzfwl Uj8ExgRQRuwzEO5yNmSYgBO+W4z279btpT9dY/fpfn91Q6aQNGV8vr1ga9p7XNCMVkBY iZIvDtBJpzo+o/gcKNkKuigNLmPTagZxB0ek67TEHogIAXSERyqfuoeXGcJYZ/m45b1Y 31RzsvN6ngYFlB1WXWMn7S53dqqsO+8FOmEjxGnxVicxVFJ399ke3uXUzjm1PiLW0E+C 9Gpol0I65lk4UmjUOzB3nHQFXyK20Ne/UwUK5ntaYEbRFeLLtVOhVkqtcu00Kze4xYra CssQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yCtW0Uu0; 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 bj7si23627012plb.365.2021.03.03.05.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:25 -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=yCtW0Uu0; 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 B18DD6E8F9; Wed, 3 Mar 2021 13:44:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id B4CBF6E406 for ; Wed, 3 Mar 2021 13:43:59 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id o2so5882905wme.5 for ; Wed, 03 Mar 2021 05:43: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=87fsu4OIs39RkiShLHPl5EVCCmtcdhx0DNDxe5fguYo=; b=yCtW0Uu0wfAY7fOoVNPYGtXF8o5hem7JHg0aQPaKs1sqYNr2HI1Kz92nBLlu9Sgyzp gWRNdVmIkZmVmLYE87d51DQTZHDHFkInhe/0uWOYHxNS8ylaiX2lc4+/1L2qlCYAJU83 2I6YOzEaC4vuqy2Anc91mviMDAV3TFqX9FlV9TOgUfzYTAm6uXMDo6ZSFTxzgFmT4o2e EL6Xwwx7p4d4NvcyXm1e2ZuX2otL/va7ZXsp+vQRLQdgNJUZ10wrAs0RU+n+aM+s0KtK 9eEzRhiUuu1U2KC5dk77+h1PMAqrexS05ly8M7vuiqWh+vjHhwDdW8L5JTU/IqEifW2c kaqA== 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=87fsu4OIs39RkiShLHPl5EVCCmtcdhx0DNDxe5fguYo=; b=m61uh9stRkjkr8GmXhjncLnYcH5Je8tMKrxrypgyS0L96lBVNm+kgNtRWiWyylret1 w0jHOhvZJzRd9c7qjve6EjJackbSiVqE1sbhrr9tSy1T3JOFfzyrG6c7boM3/95Ce8lW t2CzlFq8CCDHTaLf0KDrIWn9IQ1kwiiFce2zdFRjYqg8TBCI0RchV1bp09HPHU24CTM2 t6Jry+IphYgyYs0DhljBT7+uCYOXzxd0PyAOaqReB9tksSi5dX1p8yyLXXZf79cwpik2 TZhw/iRa0Idb81ZyPvyyld0pLxLJPc9FZhvfzySF7jVe5SeMeXO6Px1p+piK/FUNptO6 fByg== X-Gm-Message-State: AOAM531N2o8eQtETaj5dKrExNjDYSn4G8GlRWRdUti/NoQUKkfz5sHJF RfyPF0cL1usBDlj77osqLqiYY/O3YffYyg== X-Received: by 2002:a05:600c:d1:: with SMTP id u17mr9479504wmm.64.1614779038337; Wed, 03 Mar 2021 05:43:58 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/53] drm/vmwgfx/vmwgfx_kms: Mark vmw_{cursor, primary}_plane_formats as __maybe_unused Date: Wed, 3 Mar 2021 13:42:51 +0000 Message-Id: <20210303134319.3160762-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-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 Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-8-lee.jones@linaro.org --- 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, };