From patchwork Mon Nov 23 11:19:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 330603 Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp1907798ilh; Mon, 23 Nov 2020 03:20:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsPLPNx99A3PJZeUC4WJlTp2QW0ideew9VoUya+417irrsJ/OPV4F/CPIzoWpn/WuUiv2k X-Received: by 2002:a17:90a:e2c8:: with SMTP id fr8mr12073015pjb.98.1606130430693; Mon, 23 Nov 2020 03:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606130430; cv=none; d=google.com; s=arc-20160816; b=jmjaaTbtd9QgNKgg3XQUAneOb87Q67bw+X3g5uwiiF90tomAp/JT122CQopko/1Ab5 iofZOaVc14ehQFLAikCacMdbRHfNWrKQzYd3rADn/RppulOxJDmWJwuUz2qEHp0cOQFS GzY6qb0kmlHVsXUtGbz984bZKM6ZR0z+VrWMnow2Sk9kcBm92ffgl6LqAm6nxT27s1rR QOQJm7IVW2TPOhncKO54JIma8NXHxzUUmGHACOJGiyv9lh2PQYFTz5FlnRJEjNrF1U1h ufWuaobplwUcvkIIgbbO6EoLbe0CZSb7kD5C+F3nj7GFmYGvtYxwR64pW6Y6RnZHRfk2 63uA== 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=vQSagMg6Wo9PDNkNwpZa6vTkhESbHIcAPnGuv+RBJEc=; b=E/vUarte2ah9P/J/YtPP6DGvqPCHeTSXdeZ0iBBue7F8IzWaiCC1kAjGgDLXmf34jk u+YCYiCqV4SOh/svPfq7rBwjHythvSLOmDLh0leDi4Y2Cn6mKfh6yNLsQ605QhzRRvvH iKTZxXz5iGvvRMVlGqW831eW+MFTZ3V/NNa40EusVL2iEzxXMWw0+FE2UGQwskKkIkkY OBBMDN8Zk1SbLmTLoU8wFDamd5UWRW2pxbptwwWFykGSujieHEU5sqeIWtGWi3XPZvu4 /VSQglrlijNAL1rl2F76qNg7eWVaNPzg3+jju7ORIbqTQx09uf9ZvglC/TgaDXkq1qsL yiCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=A7aG4NUk; 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 ay21si10264655pjb.137.2020.11.23.03.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:30 -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=A7aG4NUk; 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 6531389FF9; Mon, 23 Nov 2020 11:20:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 56A3189D4F for ; Mon, 23 Nov 2020 11:19:55 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id 1so16863221wme.3 for ; Mon, 23 Nov 2020 03:19:55 -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=Dt3qGeaR7mDkGDOtCiBYSSJ0FSX/4GBqlT4FsqhW3aU=; b=A7aG4NUk01QTYOgfaJYXiLRsQmxZSN2RZbte2BKCTWb7GV74h+fgN95VPh8F+EWuHa ZwehXJ9Gp9hSTDJO0D6lO5a1PodY3r/JCC30/5lOfGZBR47e6USHjp4tlQ5FPr3WXGeq JIyXY0TKeYAtUVV5rTxyT/XUhbnbWDN2sVGU9IZ36KXptQ75GggISLQEwO/Ai/GpDXlC 8QwJICGLpEy/GYJomAU2bCtyEqLPVpIh+LAstN5RbeKJg4yXPLuC+gYD1EYhlkJbexPE Zg5/3luMgUlZMF0HEVjFxIa3rQvyNcIsXwEikhJINH3R+7McVWPCMDJ0FBI8h4gCcRin tocQ== 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=Dt3qGeaR7mDkGDOtCiBYSSJ0FSX/4GBqlT4FsqhW3aU=; b=W0PKuw+0UvhLVYBFZXEmmZA59Tlul0/UDshhf7ghJXb8yFgGYFYNkdE8krjlp/8hmV rwpad+/oziV4VseVXA60AZygy2qGTzdOd8bmcc59IAqCWjTQAT/htvff8+wA96+Frhv8 lUJrdNyWenvQxoHd1yeh96qbTzW8qqnqQwuI7C1t4WjLzkMiRizfrdTqjMJ1+u+B87vg CkUTGwufCk1Nco2LVqllmZGye37uD+X1cWFSHnb6oPhBX/PkliwKbMfB7cR2/PznTLCR A4lsoXedZBKjHDIxaH4ScWZ9KzEuoemAFGIy3QJXMUaM5Hobew7DRCQRx1kvx8gnOcRH 6n5A== X-Gm-Message-State: AOAM530Zqt3y5YBZcSEnrVChXVsedkBILaaVixQu3FkeV+2j7GVtW4KU waZKS+ePZuHWoGXsuntXsdYYGg== X-Received: by 2002:a1c:2384:: with SMTP id j126mr23896282wmj.116.1606130394092; Mon, 23 Nov 2020 03:19:54 -0800 (PST) Received: from dell.default ([91.110.221.218]) by smtp.gmail.com with ESMTPSA id n9sm16317290wmd.4.2020.11.23.03.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:19:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/40] drm/amd/include/arct_ip_offset: Mark top-level IP_BASE definition as __maybe_unused Date: Mon, 23 Nov 2020 11:19:04 +0000 Message-Id: <20201123111919.233376-26-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/arct_reg_init.c:27: drivers/gpu/drm/amd/amdgpu/../include/arct_ip_offset.h:227:29: warning: ‘DBGU_IO_BASE’ defined but not used [-Wunused-const-variable=] 227 | static const struct IP_BASE DBGU_IO_BASE ={ { { { 0x000001E0, 0x000125A0, 0x0040B400, 0, 0, 0 } }, | ^~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/arct_ip_offset.h:127:29: warning: ‘PCIE0_BASE’ defined but not used [-Wunused-const-variable=] 127 | static const struct IP_BASE PCIE0_BASE ={ { { { 0x000128C0, 0x00411800, 0x04440000, 0, 0, 0 } }, | ^~~~~~~~~~ In file included from drivers/gpu/drm/amd/amdgpu/arct_reg_init.c:27: drivers/gpu/drm/amd/amdgpu/../include/arct_ip_offset.h:63:29: warning: ‘FUSE_BASE’ defined but not used [-Wunused-const-variable=] 63 | static const struct IP_BASE FUSE_BASE ={ { { { 0x000120A0, 0x00017400, 0x00401400, 0, 0, 0 } }, | ^~~~~~~~~ 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/arct_ip_offset.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/include/arct_ip_offset.h b/drivers/gpu/drm/amd/include/arct_ip_offset.h index a7791a9e1f905..af1c46991429b 100644 --- a/drivers/gpu/drm/amd/include/arct_ip_offset.h +++ b/drivers/gpu/drm/amd/include/arct_ip_offset.h @@ -28,12 +28,12 @@ struct IP_BASE_INSTANCE { unsigned int segment[MAX_SEGMENT]; -}; +} __maybe_unused; struct IP_BASE { struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; -}; +} __maybe_unused; static const struct IP_BASE ATHUB_BASE ={ { { { 0x00000C20, 0x00012460, 0x00408C00, 0, 0, 0 } },