From patchwork Mon Nov 23 11:19:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 330596 Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp1907866ilh; Mon, 23 Nov 2020 03:20:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf8MOalV+F1N6HVsR9j49kDfCe1PJM6TqfZkkx1ey3e5+thyHv40IyKejmVSpaOth/VS4y X-Received: by 2002:a63:cd0f:: with SMTP id i15mr27438787pgg.46.1606130436337; Mon, 23 Nov 2020 03:20:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606130436; cv=none; d=google.com; s=arc-20160816; b=vXclr+7Q+YYAM4NYilqZIf3jFhXnytHH884Q645xi9cZTcemzOWe1NXjX2LR9iBOxv 8nAutqQDTxufu9h1r/DcGdeCR8Qs6fGQQDpA9pWBaa42PytUb1R/4bmqG+CSF4NA50i3 QxB3WKqdUt3IRK/7C0sB4snqgS7xtM5p1mhWNx3EErJOfYvBGtGNfJGCAHWYDRwOybej ZFEXa1h+XkF75u+ezgOM9WuOmbYOedEzKZxxt77AzBfCDtmYhvOf2fDD9UgQURj0JnHI Mea6WS6wdv2v9trj7S+cH11uIf8rD4gaEpP4ZN8Q3jxZvZxGaFY5tW05gpxmbw55mUlN h/5w== 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=r0gUYtBhl+kyscN6MMHUFESp6LW0bMMsJEd28YEteoI=; b=tzZJPiMfgMmHtzGjo7BoqC713Ciiym+VpDF5z05shM7TI7XLBQ4bdjD4PYEjPRlOnB SQuUvMXhtyoFk42nRWPn4GF6oNmiXVu7VRJcUQovgjiGyfY7qA4W19ypNLhuppa79gIM pNOdcBggGE0qO4fqGmTR7jBZGuT3kH6uavfgkdNak2EQMNyix0XNZoG6tO2wJMB9W64j eDhvcTUxOvx9RWQRcPBHOfG7dzgWBk+qbBU1f54Qso6CetuHYYKi9ibR6yyyCrkNy0BC LoONFQOqko/oBFrYuQnoQ2rIBPXjuaC2FfsRQkRBGAca8d4IRpGnBYRwIh6uiBNqQc07 MZYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=zzCeS97E; 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 v2si464718pjs.124.2020.11.23.03.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:36 -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=zzCeS97E; 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 23A536E029; 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-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id A365789F5F for ; Mon, 23 Nov 2020 11:20:05 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id c9so17534355wml.5 for ; Mon, 23 Nov 2020 03:20:05 -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=qHfHJykVaqUxn8L02JDHmsfIL28LId8QRd31LMjrFmg=; b=zzCeS97E1b2WK6Wk02PoTbIMKdaOnWgwalJAZYW6kwBbUSHZfi4uctzruRAlBrBi01 s1g0HUaTRY5GThIHL7s13m0kRF6AJUh51MBDnO1qSJ7R/Wjzz/1nZTgq3gQzdgtND3FG NxT7vDDk6oQpm2vYXtu0NykiMUQIPq+CtF9c2Q2iknriAg/d2LVw3UCzJOznFEIHj1Cc D1kKx99KdYvIn+VtlknG6LvZS8vcg1IpQeN2QXBQdQzGMf+KOxB39PXcZwiiOA6JxxH3 jrdCSO6PhSuIiXZ4xJL+9JROKhcgw1XIO3QB2KkHHsqLYKHYLFJf0sK5jjGG5m3Ey1RQ Ws2Q== 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=qHfHJykVaqUxn8L02JDHmsfIL28LId8QRd31LMjrFmg=; b=iXYn9fjbrFL3urJOTcPlpbS5FIEoc+p9BY8vpEV3rFvMLoojZfprljpnjDLfCDsPtW qXMGcvVe0VrVKu87jIoNUkkGmogegTldpBWVCMLvfs7z//OjYC2hRKp+cqeQtZPIfeDQ z/W7qVS09Dq1bzf9r8aVxRkgvsXpcKIxptzZqKCi5uT3n8hfXWwhEbTkdhXVU2UZi8Tv D0oo+oyOCGFmDUygDABMGjU/cLY7YvYJbYATcyN1wIVMRR8dIwlQPXpDU1AURERZDbAO jXvFB72Myq/jh9LT5IQirLu9nWKKdBsA90E2qfsR6VwI1uPxLjzO5sBw6JSXAqJ/tipi svZg== X-Gm-Message-State: AOAM530OrzvpXT3UnQq2rCtmThLEJ4X7zt2ET9Hu1NkBIhxn6krEzXR5 jJWLb9zq2f2yn3GDklBFEtFL4Q== X-Received: by 2002:a7b:c94d:: with SMTP id i13mr23152695wml.130.1606130404056; Mon, 23 Nov 2020 03:20:04 -0800 (PST) Received: from dell.default ([91.110.221.218]) by smtp.gmail.com with ESMTPSA id n9sm16317290wmd.4.2020.11.23.03.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:03 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 29/40] drm/amd/include/vangogh_ip_offset: Mark top-level IP_BASE as __maybe_unused Date: Mon, 23 Nov 2020 11:19:08 +0000 Message-Id: <20201123111919.233376-30-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 , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Huang Rui , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= 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/vangogh_reg_init.c:28: drivers/gpu/drm/amd/amdgpu/../include/vangogh_ip_offset.h:210:29: warning: ‘USB_BASE’ defined but not used [-Wunused-const-variable=] 210 | static const struct IP_BASE USB_BASE = { { { { 0x0242A800, 0x05B00000, 0, 0, 0, 0 } }, | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/vangogh_ip_offset.h:202:29: warning: ‘UMC_BASE’ defined but not used [-Wunused-const-variable=] 202 | static const struct IP_BASE UMC_BASE = { { { { 0x00014000, 0x02425800, 0, 0, 0, 0 } }, | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/vangogh_ip_offset.h:178:29: warning: ‘PCIE0_BASE’ defined but not used [-Wunused-const-variable=] 178 | static const struct IP_BASE PCIE0_BASE = { { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0x0241B000, 0x04040000 } }, | ^~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/vangogh_ip_offset.h:154:29: warning: ‘MP2_BASE’ defined but not used [-Wunused-const-variable=] 154 | static const struct IP_BASE MP2_BASE = { { { { 0x00016400, 0x02400800, 0x00F40000, 0x00F80000, 0x00FC0000, 0 } }, | ^~~~~~~~ NB: Snipped lots of these Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Huang Rui Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/include/vangogh_ip_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/vangogh_ip_offset.h b/drivers/gpu/drm/amd/include/vangogh_ip_offset.h index 2875574b060e6..691073ed780ec 100644 --- a/drivers/gpu/drm/amd/include/vangogh_ip_offset.h +++ b/drivers/gpu/drm/amd/include/vangogh_ip_offset.h @@ -36,7 +36,7 @@ struct IP_BASE_INSTANCE struct IP_BASE { struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; -}; +} __maybe_unused; static const struct IP_BASE ACP_BASE = { { { { 0x02403800, 0x00480000, 0, 0, 0, 0 } },