From patchwork Mon Nov 23 11:19:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 330601 Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp1907767ilh; Mon, 23 Nov 2020 03:20:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwK569AMmn0iZPAbXL6J0V0yxM5E+ADuVOOCtBNFYmI5ShkLYbl2Oqtq6T6VISuEm+jXp+ X-Received: by 2002:a63:1c53:: with SMTP id c19mr25851991pgm.392.1606130427637; Mon, 23 Nov 2020 03:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606130427; cv=none; d=google.com; s=arc-20160816; b=uJP4YA4jHTY29jzLrYC/+ZQdnrJD2ioytUxjJHLgrVy2qXCTQ13OtnO/TCnLAFpBQg OdtjIK70Zv3V0+FjY5HBeQ/tfjl3CZXLVN/h3hclm+F/Pismp8dhE/8UMEAYLUVP5FPe AcMDRk7TO9GLqSgoQhaJv6pxH4SktRkEQ7SqsVEeQfGdvDlVKoKBNIhBcoRXl0rb2Gel bi8brnaoBSgfgHNz5jA23jV8lKtuY2zTdQ7H7nHOAyVYcAnPxGX8CtyJFEjoaC8ToKmi Iy9tpqMkr30l13w7bZnxkjFeyMf5WBEPFUVcWlHbNgA9nJHVThYVrZh8qJa0C0qdxXHv Zb9g== 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=NDPlO3tijx4T0WMXzEO8AvdmOkRfeRjM4MM0hpwKPdg=; b=sVKuna40/jMrCxn3BF0De8a8LLiAw35MdEyrMoilfiPq5yOM+jVsg91NOiHKzrs+me 1O3jh6BA2YjSg6YyzR8JjJV6Cvgeg0Gp3/ka2kIA7aDgzTzKmTdoM+cGYWjfnpdVOrzJ mlJMZDcuDLFmgIfaD4tfmtteZkb4tN0R101Qdz89YOUtLdeDBDtXrLdUyAWeCt9nlUKP Y1QJGO6EVKn4pY3pDldnkigpBLuFTc4GQ6Qebway3V6zNe7k9uQOyj0DaMtGkvEkXDeG 7HXwDvQDjwr3p1Xy/XoPemIyqBwgxMChbW0iBGqI0yPOb9sC38mywHS27Lbu2dTTa5hF insg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kq+yTUs0; 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 s21si10370776plp.223.2020.11.23.03.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:27 -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=kq+yTUs0; 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 41BD06E030; Mon, 23 Nov 2020 11:20:12 +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 F071489DC1 for ; Mon, 23 Nov 2020 11:19:57 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id s13so16853821wmh.4 for ; Mon, 23 Nov 2020 03:19:57 -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=+BSX8iGmFlpNBkCwyYHsXehrutNO54wnnUYTt1a8UO4=; b=kq+yTUs0Z36Ahw7u+PzIXO7sgObe2HM66BxwQRS4z8siLlP0bqTJ1E4ekPh8ZzB2xV KrPXoI5LzXiWCUU6gv/h+Ac5AkvBrXCtGIdXzqiD3E6fzjlaykwmpnp0ncc9mpMPXwpF 7ZO7x5sszZgxTW0UZBhGM+nZPJNMfDadL033J9dDknwd0n71CmxAJxEfiOSfp9ZWRYzT VjWz7KhkCFs8qGvbkbLv6YhVXaOHIHxX+gga4D1/GLSvPxglfwfHNhszl9lcqHMNlukf 3bU5zyK0fgnAlzHDZ9nRCXu6URdAznRm6+l/O3LsPeBn+y817mC4us+NHZemgltRJsTy MAFw== 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=+BSX8iGmFlpNBkCwyYHsXehrutNO54wnnUYTt1a8UO4=; b=o3y3PYS2Fw1MRtWZibexf9AtfMqPsYxBLo3XtmH1aa5GLb7rxDhX7Gd+HR8DW1TSa6 LIzNjnW66lYkWtQvXCF1M2+3BWAhaaUex+0tITBWjke8mIiHr6iHhOebA41Tg7jHrB2b dGjmhHarxKd9bKsOBRfkbIbkE2cYcK99DeSwhJ74x6Jxv99fT45/cfn1/xh3Nw8m0aG/ 1L/7Va1aqIQpUB/6nn1X1C7fjgzJr3dwLGX2bW2FkE2eIYXDR5cehgHdlkOFq7FlO7qI wZKs/OgityWj8tv0RX0jBHsBiZ5+aGEn6mCsye/uYRiy+Z/CuhelHIWsuCbMvIHKjpD6 uzFQ== X-Gm-Message-State: AOAM530JTJeBXMoRWsrw/Rdc5rl5Acpfyvu5KzzSJoAgWy7u1AUN0Y5y 00QKKWK2gmKMBgft1i7hZUoNzA== X-Received: by 2002:a1c:a185:: with SMTP id k127mr22882338wme.23.1606130396662; Mon, 23 Nov 2020 03:19:56 -0800 (PST) Received: from dell.default ([91.110.221.218]) by smtp.gmail.com with ESMTPSA id n9sm16317290wmd.4.2020.11.23.03.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:19:56 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/40] drm/amd/include/navi12_ip_offset: Mark top-level IP_BASE as __maybe_unused Date: Mon, 23 Nov 2020 11:19:06 +0000 Message-Id: <20201123111919.233376-28-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/navi12_reg_init.c:27: drivers/gpu/drm/amd/amdgpu/../include/navi12_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/navi12_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/navi12_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/navi12_ip_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/navi12_ip_offset.h b/drivers/gpu/drm/amd/include/navi12_ip_offset.h index 6c2cc6296c061..d8fc00478b6a0 100644 --- a/drivers/gpu/drm/amd/include/navi12_ip_offset.h +++ b/drivers/gpu/drm/amd/include/navi12_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 } },