From patchwork Mon Nov 23 11:19:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 330602 Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp1907780ilh; Mon, 23 Nov 2020 03:20:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2B3UkrWCpTj7xhJxF4ssSmSa5cdvuBrw4tXuYBUKWL+Ra9zcgSa58XoXhWlYlAgbrnnA8 X-Received: by 2002:aa7:8a97:0:b029:160:c0b:671a with SMTP id a23-20020aa78a970000b02901600c0b671amr24444980pfc.16.1606130429086; Mon, 23 Nov 2020 03:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606130429; cv=none; d=google.com; s=arc-20160816; b=lIcuBc/rEpEm3tA+TZGUD2XJ3VDC/wacKgIV3JdVPIZiyLDSg8LeSe3cy4nek76sRh pX+KXuw2O+q4jWWlVmOwNNHan17jI9tCZjXSdxNVmR1+PhBoBOtooB9yvVu+2cvd20un MPPS7xXy1VrUHR0XfdRUm/5vEnql/tFM3tlf6GgaOgXacHJqQhN+T6FlxlNmGEZhp6Wd X0eEB+VCLJz53jLgD9OdPziN1MasWqolmgH8Tql7Ee6/c66Y0lSObx4CeWKvDqsqTvxQ 0PiA/C9jIlyAbOzNYriQ1lNOj2Q/OvEBzvWzKXprJZFcFXLTl6auJYZc0tVDSwRAmSyo dvjw== 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=k7+bRe0hrFU5WAP0tPUbr6burfi+4izzwbGlexyhmB0=; b=fI3NZzM9eJWCdB2Hb5A2JVI3W2gpIFYFAZ1Cl1ad3Bvx2EiCSmH3ZKoz06b/abvJVx D6rImr84NVzlYxzSXm5FoCi/12m8+Ote7d5+agnnEdfpGiGzcZIIg5f8VdpEJJBf8YXR C73izQhpfcziKpmPDj0fv/e8oyGs/UTDM3LBTe5vbaXppCXcmH0F29F8btVlwcG8B1WW nfyuUfrAVuupf2rn+TABRzN7oZX6EFCRDMlRxNY/6JRZfqYz87ZpH8RtA7xRiyYb6ndv BBoRtXw/NrKsNXoQELvwb7Q4KpiEJDkmKYcGjTpmlibWxoM5IwZLoddi+Bbjiv2Iic7P GIhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ccDG24NQ; 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 j141si5117233pfd.284.2020.11.23.03.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:29 -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=ccDG24NQ; 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 B587E89FE8; Mon, 23 Nov 2020 11:20:10 +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 9B7CE89DA4 for ; Mon, 23 Nov 2020 11:19:56 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id k2so18248418wrx.2 for ; Mon, 23 Nov 2020 03:19:56 -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=rspc5DyHTiyjnt/zI3mhKCdrn/a3BO0urzTMZbliFpc=; b=ccDG24NQJV0M9KJ61WwazAEpBTPdZvVnUdJfyhTRyScfWGmVgacHz/60yz8QINN5xV MHc2Q5kRSuZ0EkpeuuLPxslbzc0RQluMm9BfqRo8+48ba3QnOlzMo/gwONBYO7BhoX0y NpB+d1tfjRGT6aFGGvnKMh3ZKCpwtgYGvYKDsQCXTKqGm8uziiuSsiHeGZ3Nl8GR1DDx de8bYMXazjeAI2NbukBgfZz2yGFSmJF9rKIIoGs8NlKUZcaJ84TCTYmZby5xAblXi0Jj 5GuPVXW9KTz7UU24M8bR2DeFOhn1Dh5/IqKeaymMW3XGdzJWS1e2lOuvZYRYmDNWSh0M FNhQ== 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=rspc5DyHTiyjnt/zI3mhKCdrn/a3BO0urzTMZbliFpc=; b=XYokQjZfHz2eqrh8ke9bP8FwqfnapIy4kIodwgkWEdSyGn6+GKXtC3gGZPIV3wJ73E Y4xA0nVlZvSEiVWaRmZfXck0Yew7X1qnc708OHFgURRv2tTav23+9hNexmxZ5plwpX8S y/Z43R0hvf6ZXEYMV53xHtWvqAATVj3yvopUKWkfK+FWO0kJj+Kf7vT4ovtjTRneoFil N8sktw1SERvOAGbPLm0yjJM6qPYJ2Jkf3FmdKlui1RKGG5jVULz2P3+cl9abYqlxVRGE KuHPacA7i7od36p7xuH4SyATKjveN9GtoUOPmrURzKvoj//SwaULb3t7Z6DbDPtXud+w jbRQ== X-Gm-Message-State: AOAM532ukI09HWhM2SYuaDNEo+nBaESUro6atUayAk8XPikfQ/pq7WI6 uY5aMYEDCGIBbVjbdY+ujqJfSw== X-Received: by 2002:a5d:690a:: with SMTP id t10mr11961847wru.203.1606130395314; Mon, 23 Nov 2020 03:19:55 -0800 (PST) Received: from dell.default ([91.110.221.218]) by smtp.gmail.com with ESMTPSA id n9sm16317290wmd.4.2020.11.23.03.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:19:54 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 26/40] drm/amd/include/navi14_ip_offset: Mark top-level IP_BASE as __maybe_unused Date: Mon, 23 Nov 2020 11:19:05 +0000 Message-Id: <20201123111919.233376-27-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, 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/navi14_reg_init.c:27: drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:179:29: warning: ‘USB0_BASE’ defined but not used [-Wunused-const-variable=] 179 | static const struct IP_BASE USB0_BASE ={ { { { 0x0242A800, 0x05B00000, 0, 0, 0 } }, | ^~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:172:29: warning: ‘UMC_BASE’ defined but not used [-Wunused-const-variable=] 172 | static const struct IP_BASE UMC_BASE ={ { { { 0x00014000, 0x02425800, 0, 0, 0 } }, | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:151:29: warning: ‘SDMA_BASE’ defined but not used [-Wunused-const-variable=] 151 | static const struct IP_BASE SDMA_BASE ={ { { { 0x00001260, 0x0000A000, 0x02402C00, 0, 0 } }, | ^~~~~~~~~ NB: Snipped a few of these Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/include/navi14_ip_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/navi14_ip_offset.h b/drivers/gpu/drm/amd/include/navi14_ip_offset.h index ecdd9eabe0dc8..c39ef651adc6f 100644 --- a/drivers/gpu/drm/amd/include/navi14_ip_offset.h +++ b/drivers/gpu/drm/amd/include/navi14_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 } },