Message ID | 20201116174112.1833368-38-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | 705477b8961ee21cd691e1874436b37483ed0a1d |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3508216ils; Mon, 16 Nov 2020 09:44:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwY6apxkUDgES2MXTaKAgD6ahnmSVV7HEDH63+lTMeDpmXFJPUczmeOQlbhGf6i3yW4Vhsi X-Received: by 2002:a63:3117:: with SMTP id x23mr295328pgx.306.1605548563361; Mon, 16 Nov 2020 09:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548563; cv=none; d=google.com; s=arc-20160816; b=v9CC8KTUDEF/bvOcoRvXkCebIqeK4zHFJJpej/Up21ZTWlcjrKKijM883DhN5J+Uy9 Qb7cen2VMy/8oqHSIr4S8f0g29Onw/hAIPqMnPGSzsF0N0kZx/WaL/R5dVWIglpYlKLM s2i4i6+IoaBancOmc6lrRDPzR6z4P1JVJTBmUDlJza0ro2b9frkQiTvcjoHwMjr/7giI Xn4pmPFjPusLCiZdW/MllyfEMBbDelCcul0icSY+eeZK/ni25E3y5kgsGoo03vanu336 3div6LNbRrUspK2fZPv/s10XmqjmzPm/QnAVV3crHAxWD/E91BvpjG5gMWDGSf1qHX85 zKrQ== 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=vLxPHlMzImH1PDj4F6zKZasK2HEMgwzKSb9TIVhNmkPIsrD8xRDLZoXJWYNv0RBJDN RJhcNTQa6luVJXAByJkUvCT1Wjb6/akVDkHHs8xM3zo8BMsxd47xiVYuwUkfcI5p8GeC Y9BL7UcTueaOTIGf07pFonC71XxU+eRwnF7Rdgl86UHlNP0ZiblVqsdkEnO/RM+7AcVU RQV+AGy12Ogvg4no3K3GXDMNh7dxQJ9x1PVI334toXe/QuqH8lgq2sCZFnAqtXyoFHFF gpFA0OXD/+bDwc6AcgN3T+LTZBgKnpQPJf8fBQlqYAMKo/Q7PyBJZhfE7BT/WlXN4rh6 tJ4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VzWzCJBP; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id b4si16094056pgb.261.2020.11.16.09.42.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:42:43 -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=VzWzCJBP; 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 79B366E9FC; Mon, 16 Nov 2020 17:42:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0594D6E9FC for <dri-devel@lists.freedesktop.org>; Mon, 16 Nov 2020 17:42:14 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id c17so19630512wrc.11 for <dri-devel@lists.freedesktop.org>; Mon, 16 Nov 2020 09:42:13 -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=VzWzCJBPPmyM3LpM7la4ilnDI68trSv7JH2kfu2f+DU0i4SMuZmeKKXiNLD1Hu4Etc wIhTyantuHh0S7h+NwM9t/QpaHtrBiT/mhLmz2It8yTttVcJAvk3V+u2b40CnNADXgKR HA6ChwT3TtKgoqlfuS732ua9sE7/x3Av0/dDNvBe+qbOU7Qkb4DYV+WabOT4A/++AZgY urAa0e+d4vnAcXCsaIw3qiDif6pZknYz13s9Xt2VaOHpca1hEYKNdjSMuim15K33YJXr wcsFYRRcZBKmBLiqjcaZk+SZrNmLGMiuVVoTO+Hja3MJLGnOx6GDJUgm/SZVzDrPyaAJ pwiA== 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=rZUHILw54o+kdBUjQXSdRCgWvGYz9F8P/yWzA7xkIrsVKv99bwRJkVUyPHJ4WARuHD 6BcW0MaPee5TYheqgP26dJuPbE/Ym6W2SZdVChwZGrN4+KDbGqx3nB3mkdffimTD8UBD p1Ck5WhYQC3mAcm961ETSrmZRsws3U8Ts/5O3E7gRPBraEN3BYLdJI7iC5GQh8SZRIUW xUjRyCYn3eISiYN1Y+mQ6i5EZXSYcrR4aUbLhUpYtpGGyyqcTRy/m52gH4lb72KT4Ule 8oLbm6Bw+Fu86mILWd76z5VucRymdIvBmIGRfCu3SL5nz7b1y+tGGPOZVOjSm8swlxjr u5FA== X-Gm-Message-State: AOAM5310p5f4lZVPt4gjf+YhJAPWYvwIEGpQkM37XBl8SGRijf9hSih9 /FpeqCUhPs1ivO+Nb0U/HcqTtw== X-Received: by 2002:a05:6000:110c:: with SMTP id z12mr20268702wrw.214.1605548532636; Mon, 16 Nov 2020 09:42:12 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id n10sm24667224wrx.9.2020.11.16.09.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:42:12 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 37/42] drm/vc4/vc4_hdmi_regs: Mark some data sets as __maybe_unused Date: Mon, 16 Nov 2020 17:41:07 +0000 Message-Id: <20201116174112.1833368-38-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 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/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),
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 <eric@anholt.net> Cc: Maxime Ripard <mripard@kernel.org> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)