From patchwork Mon Nov 23 11:19:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 330617 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp3415166ejb; Mon, 23 Nov 2020 03:22:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPeUHXcD5/kKdkXO/4EKhCD/gDjDsZKxtup5N/ZhtqKHI9V6XSeHnhszHohDbNe49cmmGh X-Received: by 2002:a17:90a:e615:: with SMTP id j21mr19997669pjy.74.1606130446144; Mon, 23 Nov 2020 03:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606130446; cv=none; d=google.com; s=arc-20160816; b=yi3lx/E+jpo3k69Pxe5RXT6+CQR1OCh5mSoTu3pkBb0N2OE9CFULwoTDTcQJKBkNM9 rEso6wzaVANKC1RME00M4DaQMKkNyXyokQxBzq/i+QKtmkAHuLhJvCZrshEFEDOkSd1p x22G2ZTtSKbPXx3cb0nzQ+IOhwbL7gjHEOY7CILY6NrIe27MGQLO9c/t/RPw4W5hROlw S2otH9t6exLw313Apra7fDPxrf/uwTPF5CoVCznEz1VWr7qYjdQXEMACcFeaZpDtDoTr kCKVi1NNBrIuHH44OXIDtF8GxyJ7gLPvO/8a7tv1+m3MHX5S9bHRLO9Cue9wAlCc3tDy T+Zg== 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=AqwkPpwYgaVs1D/El2ad2FUiHqfxM3JNs69zq1xk5TY=; b=Bdcu8fK8TDMhCccZHJ64ShM9hUyF9AKhprXv5J0Tc+rmLNM+b4BUdUeZnnQAH1s6j4 S7lkcH8o71/NWeeO5ZA4lHKvk137LwLs11FuOrA3sF3odjyLftbxkdtJtT/p8epsBTQJ lg3gn/44k65/T6q9S+mWs1h1yAhbYtIlx2Wuvm1aRROA57z2+o04pmEDlFOAG5fboBWU 4UUSNUtcKjnOW3AWcDAYp4Mc3viKqrJUzzsvgj7cItTOysqH+Td2vLKR5byb2wmYbqgo QkxAvG5knM9oRaKiWOUNzM5C3urcoWfdLKyLwaEp5P9oZOrsyQolrlWga0WttFimYsd5 Y3Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tj5vDTXo; 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 t15si10094235pfh.167.2020.11.23.03.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:46 -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=tj5vDTXo; 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 071B36E03A; Mon, 23 Nov 2020 11:20:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA4AA89F9F for ; Mon, 23 Nov 2020 11:20:06 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id c9so17534407wml.5 for ; Mon, 23 Nov 2020 03:20:06 -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=nVQkRWnV9jg6+Ada1H2Ew94/golbusCXMuvb/nmCqqU=; b=tj5vDTXoZ7s7BPKmO/w/NnSIr9175PGoUapOPiOyTm9MIvdIVTwGlWFPjgvv6ccVwu BPNoyYf9q/lfk+xKsUamao8DV4+aNU8DZRD/W6KSeAxQd2jm5pb/K4oOwPmyXlyutKyw 6jf5zucwL+kphS42Ud1rMc58qo/BM/kjXcGp2cOKoy+BOHyvMNfUKwWlG+uwWKogNljr J7edQrZj8GhEgIV4msgKIOWfO0B2hZkrK4NVEltL3QApq+hvQwih476iQyw08FtEyU9i rfeV1BdjA7rWMJcWEMP16O5ZnllwohZp31bhDl8WhtP6Jfkt3A70v4Pgi779K0P+UMtO IJWA== 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=nVQkRWnV9jg6+Ada1H2Ew94/golbusCXMuvb/nmCqqU=; b=rMku2+Df+N+eQxO6U6xlC0dUcRmA3RnnG7Jv8/7wqKEdWZsLq1JlNFgak0G19E0Cv3 B6IgJSisXaHpqX1cTUaRuPpdZJD61A92/02w1H3JlxWaXQ0qNCuNyp5jYDXWataFh3aj gH/5luueWYgDk6Y7exL4/yQHjtGhuFD0OZJfl0aPzUFEX88JawWMJZR3U9e2M2ZkF/yy il9v2dxVWui0k2NXaN1wADr2vhqJAWVjFhpm9d0aJ83pmuUDi7hNNO9+QKlJOQPmdNlF O5gK25EU/wccbwtj+A8Wem47/fF2QDnSZSF4wBlOTdIymXMymQvPvT8eE04pn1Vprahx v5Pw== X-Gm-Message-State: AOAM533tCMU1Z/Xj5W7bqDDrKqAAume14txaJtN/6EVEHqTZ0aE4Hp7w S2z864zikG6EdHwz8WhhBib9JA== X-Received: by 2002:a1c:2d47:: with SMTP id t68mr23427316wmt.148.1606130405294; Mon, 23 Nov 2020 03:20:05 -0800 (PST) Received: from dell.default ([91.110.221.218]) by smtp.gmail.com with ESMTPSA id n9sm16317290wmd.4.2020.11.23.03.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 30/40] drm/amd/include/dimgrey_cavefish_ip_offset: Mark top-level IP_BASE as __maybe_unused Date: Mon, 23 Nov 2020 11:19:09 +0000 Message-Id: <20201123111919.233376-31-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201123111919.233376-1-lee.jones@linaro.org> References: <20201123111919.233376-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 , Tao Zhou , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Jiansong Chen , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , Hawking Zhang Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/amd/amdgpu/dimgrey_cavefish_reg_init.c:28: drivers/gpu/drm/amd/amdgpu/../include/dimgrey_cavefish_ip_offset.h:151:29: warning: ‘UMC_BASE’ defined but not used [-Wunused-const-variable=] 151 | static const struct IP_BASE UMC_BASE = { { { { 0x00014000, 0x02425800, 0, 0, 0, 0 } }, | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/dimgrey_cavefish_ip_offset.h:81:29: warning: ‘FUSE_BASE’ defined but not used [-Wunused-const-variable=] 81 | static const struct IP_BASE FUSE_BASE = { { { { 0x00017400, 0x02401400, 0, 0, 0, 0 } }, | ^~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/dimgrey_cavefish_ip_offset.h:74:29: warning: ‘DPCS_BASE’ defined but not used [-Wunused-const-variable=] 74 | static const struct IP_BASE DPCS_BASE = { { { { 0x00000012, 0x000000C0, 0x000034C0, 0x00009000, 0x02403C00, 0 } }, | ^~~~~~~~~ NB: Snipped lots of these Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Tao Zhou Cc: Hawking Zhang Cc: Jiansong Chen Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/include/dimgrey_cavefish_ip_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/dimgrey_cavefish_ip_offset.h b/drivers/gpu/drm/amd/include/dimgrey_cavefish_ip_offset.h index b41263de8a9b6..f84996a73de94 100644 --- a/drivers/gpu/drm/amd/include/dimgrey_cavefish_ip_offset.h +++ b/drivers/gpu/drm/amd/include/dimgrey_cavefish_ip_offset.h @@ -33,7 +33,7 @@ struct IP_BASE_INSTANCE struct IP_BASE { struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; -}; +} __maybe_unused; static const struct IP_BASE ATHUB_BASE = { { { { 0x00000C00, 0x02408C00, 0, 0, 0, 0 } },