From patchwork Thu Nov 12 19:00:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324228 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp588938ils; Thu, 12 Nov 2020 11:01:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAGW7bDUtA6eM/T0pKjV0Gnhv8uB8sGqDPTmMT4kifOTTb7kpFn+eAHNPeMIq3K6JHPrB9 X-Received: by 2002:a17:90a:c383:: with SMTP id h3mr627250pjt.150.1605207670075; Thu, 12 Nov 2020 11:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605207670; cv=none; d=google.com; s=arc-20160816; b=dmq/CU6oNU7C/3+BZZUHNJmidbDpTH5CkO2k90ZXaToTkLD/JsVJHp6LQIenTe8+To JTUbm1tI936en1FdCCp0LkwHkDK2aPsJbZVHQOMgVwtIDWgr4xV+/Qy7/PiSYK4TAdvy REgsL9M65TGI28y8L0J2HiAVoeBNICCKl4I3NcAs5809YKY6qO9ld5CIJS4dbISoPIKg bqpa9I9F8IN5PFWj6KU2lxL13zB0gfKdDAazIm2snbslHcL+DjBz6882y5HN6Zrrn3Ev HzJGpbwsp2dI5PZI3kmG9EKruLsUUPkgWvrw+QhaM3eusEMwI/0dzCpcbm4NBa2Wrz/R 3Y7A== 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=4j+0EYQ8SnIj/tVDN8l5FMZkxZjo5SRHivQ3XwfZmrk=; b=AEyY5J8cOvSIeP8WwigqrmUtLc+ldYgMybPsphFVL+V9gNOqKtnEOIXBJ4Oevmts2O g3THL48NEAw1n7ytluKSIPmwdWgWfoY+SPoysBewfJWTKHEc9B6ZLapJg7/f/eWwj1Vq aQlx22csFqQKcpGrYdoqJAtd7z6vJ/Nw01CbjIlznwcglDvfqcpEBunA57lSnJlIzSHj zPqqBKVXTf0fRUGpUhN4+flYtCqX/LmxWrXvHLYCO0v4jm9BAZBJSHl3C3Bl8F2l6Tj0 h7CkhwJ6mbG4LUZZXpgckVCHx6RHVfiJMP7EWCviBPptuWq9AHM6Q/1lsF1KnyPldE2G UHnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=s8i5onDX; 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 17si5507054plo.428.2020.11.12.11.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:10 -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=s8i5onDX; 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 E7AFA6E32F; Thu, 12 Nov 2020 19:01:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 45E6D6E32F for ; Thu, 12 Nov 2020 19:01:07 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id p8so7170902wrx.5 for ; Thu, 12 Nov 2020 11:01:07 -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=z9hqlcpW7hereULOoI8627Xoa15VHuxF/Ol1jNzvX80=; b=s8i5onDX/rg5gWCD7HaLyJM+wKiQn/RZHAN9N9s+jIYLgKocbJRWeJW96iZ7piGHrf cUr8rpL/UIFShlV4GrkjRsUCsedoNDq/fh/oUHIWBIyscRKe8qiIrkvUYW/2CpQF45so T9ZB4CcBZIJOhzW8rea3CXj3gRVDYzXC/aMzOvVQKn+pceTygbzdDUdFCj3gng5sd9HD iolE2XLyKcEBDSYrqmdxvTp1D5N8IfFOYD6+jUfNaUD08qpeq5jIcTWy9qcFqonNF+LH PT+Rpe69EN5bZ4oNGoUhkIJ767NqzJSxU+YIikqm+6fYF3H56oTb8abF9G3LtFRQtClZ +Q/A== 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=z9hqlcpW7hereULOoI8627Xoa15VHuxF/Ol1jNzvX80=; b=EF2Uu9FjjCgZFxpnOYKBUAVX8Awscr2VhAtA1I2v2sYSgML3mo5WGoIYOtW9C0HTz9 8YH/urJyx+gjU1SRh/ZvekhcCfQCbg8SJF1/8KyR5v47h5ZuKlVify754+FmwaIQiKsl /SFIy86hupV+/CPeL/r/X6DjZvBJd355HYWfsk1Veg2Ma9SkZu+8rh3IyEiWfRxEi1Bb 4tRDMM/JzwUy5/p7AhRzwVpddWBU090DwUt0KbHrsgOYmgDxF0s9ZrbhXC/3Vn/vrDUP nXqPnxbBsXjkD4ee1FBU0eOHXgmKUvH8h2NhE7w1sP6t7DI8+xt3VFsmoXHJfAL6boKS GctA== X-Gm-Message-State: AOAM531BJra0zltB2JpY0IUiV8eh0TlSSCScrAc4ykDjVCT8x8wGK3Cc DuzgRWMoNashiE+jL+kg/fwZdA== X-Received: by 2002:a5d:54c7:: with SMTP id x7mr1071487wrv.359.1605207665964; Thu, 12 Nov 2020 11:01:05 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id p4sm8105214wrm.51.2020.11.12.11.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/30] drm/vc4/vc4_hdmi_regs: Mark some data sets as __maybe_unused Date: Thu, 12 Nov 2020 19:00:19 +0000 Message-Id: <20201112190039.2785914-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112190039.2785914-1-lee.jones@linaro.org> References: <20201112190039.2785914-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 , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The alternative is to move them into the source file that uses then, but they are large and intrusive, so that strategy is being avoided. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vc4/vc4_hdmi_regs.h:282:39: warning: ‘vc5_hdmi_hdmi1_fields’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vc4/vc4_hdmi_regs.h:206:39: warning: ‘vc5_hdmi_hdmi0_fields’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vc4/vc4_hdmi_regs.h:145:39: warning: ‘vc4_hdmi_fields’ defined but not used [-Wunused-const-variable=] Cc: Eric Anholt Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi_regs.h b/drivers/gpu/drm/vc4/vc4_hdmi_regs.h index 7c6b4818f2455..96d764ebfe675 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi_regs.h +++ b/drivers/gpu/drm/vc4/vc4_hdmi_regs.h @@ -142,7 +142,7 @@ struct vc4_hdmi_register { #define VC5_RAM_REG(reg, offset) _VC4_REG(VC5_RAM, reg, offset) #define VC5_RM_REG(reg, offset) _VC4_REG(VC5_RM, reg, offset) -static const struct vc4_hdmi_register vc4_hdmi_fields[] = { +static const struct vc4_hdmi_register __maybe_unused vc4_hdmi_fields[] = { VC4_HD_REG(HDMI_M_CTL, 0x000c), VC4_HD_REG(HDMI_MAI_CTL, 0x0014), VC4_HD_REG(HDMI_MAI_THR, 0x0018), @@ -203,7 +203,7 @@ static const struct vc4_hdmi_register vc4_hdmi_fields[] = { VC4_HDMI_REG(HDMI_RAM_PACKET_START, 0x0400), }; -static const struct vc4_hdmi_register vc5_hdmi_hdmi0_fields[] = { +static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi0_fields[] = { VC4_HD_REG(HDMI_DVP_CTL, 0x0000), VC4_HD_REG(HDMI_MAI_CTL, 0x0010), VC4_HD_REG(HDMI_MAI_THR, 0x0014), @@ -279,7 +279,7 @@ static const struct vc4_hdmi_register vc5_hdmi_hdmi0_fields[] = { VC5_CSC_REG(HDMI_CSC_34_33, 0x018), }; -static const struct vc4_hdmi_register vc5_hdmi_hdmi1_fields[] = { +static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi1_fields[] = { VC4_HD_REG(HDMI_DVP_CTL, 0x0000), VC4_HD_REG(HDMI_MAI_CTL, 0x0030), VC4_HD_REG(HDMI_MAI_THR, 0x0034),