From patchwork Mon Nov 23 11:19:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 330600 Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp1907756ilh; Mon, 23 Nov 2020 03:20:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7DgiNc/DeyBGizthdtFR5N8vkxppWkM8DCUhYZxVcAT2j1tDEMNcM/kwykHhvon0hDfKI X-Received: by 2002:a63:c251:: with SMTP id l17mr1934790pgg.160.1606130426072; Mon, 23 Nov 2020 03:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606130426; cv=none; d=google.com; s=arc-20160816; b=H0cyFX+iyJqko7qXqF2GSZGFBQsmThiyxlVxFJXlnzoMp9prmqnOvUFCiJqdMcRkjz kZ/8bvrhfwRdi1Hh40VDww9pbMDURWFHi780vmN3yqcCzuGS4JHZChnpOf0X6VCmGYjW NGd/IJcIQ+QK6aWafWR7WSuy+rgPz9T9HAQLy5qb7GvMsuXCgJzlfd1M6Qk4Lsswf5nD 7iQQuUHFuf19qROfle0lcwXbRkVlhyeDpzLoL9Qr1MT6JKaO05wISyjhcvjP1uITDby4 j7QKOU0f7VADzg1JryHfKRxdRLDkFa1JI+bS/Wjx/cPdt9L3EvxwV3mnedT9CsLZGqE5 KnBA== 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=GBcMOATVdw8u1ehZiDbkuYx0kOVIXMrtPlnLUnWcVBE=; b=jm97yQ+EanmQGIJ4Pv/m1My4IBfTmjS/z/+1MIGKtDl8JGwMfbHg0svR1NsWa0E09J UU+gn7zi5LyLz9wHok1vC/M+6bsLOYzi8AM58HbSu7hiwd1q4IdIcpGxRbkXJFtJ5KTw bI7WbHgXjeY69LduFa1OYObzxOUClh49XVeQGZ6nvknlHkho8N6S2tKTi1DuYzJpPMgy 42UVcFJ3qcS9kBTwBBKDeEysBhFc7qtR+tCWWr3uNftwfRu15vUKjvtc2g6XGobSWsau HYgcXbYcfA3SAMOy899GcBAN4TFxk8xfLr42y2b8AU0ru+ge/RWdGyjYFSbcMZeCwW6L lzBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=x43XL5Sj; 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 lx10si10479945pjb.109.2020.11.23.03.20.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:26 -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=x43XL5Sj; 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 CB84489ECB; Mon, 23 Nov 2020 11:20:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3A66789DC1 for ; Mon, 23 Nov 2020 11:19:54 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id l1so18173160wrb.9 for ; Mon, 23 Nov 2020 03:19:54 -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=GNPMH7+BshXFtHvJRFR/Pz67utL4+c2zXgvOMeOYi1w=; b=x43XL5SjSI8fFhB+JucQYDS6mMeFgr//tbZ0jm1MCQ9P0QBt6aEmfPzxG6yD50eqQd NMHzrMMk4AgiHPrCgw9MpvOFhdCWMwZYGoD0lFKSesvOzp88G8aRRsbScKsdMbf9Q3p8 QYi8NcCu1k5AzonhQ1VCH6zCT+3+AkNgrwjHiMtXMveewofVxbNK/makoLjx6W/mvQb5 w2WODjf+b+8MZRkQF7lxK3wFyP4wZiynPH2YI42EtGDXT+d75ltrHmB4OZkczxlduGLQ MvIfrBqudWXGr7o2EHHoLMrgkL8mpc96BMWOhnOSnyiegEQ7PlOG2hlcT5EjOxDI35z4 ZjsA== 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=GNPMH7+BshXFtHvJRFR/Pz67utL4+c2zXgvOMeOYi1w=; b=KPb4N0TpO4yMnoDHYvW/lxvf/9ZcGw3b7lYbRgXzn9WEREB+4My7AVTmAPn8dFRbqL ojqPYiQVHC8eoEw51bHS9xrGjD2ekzCIuysMrFv7qzpB1IBXf59G2KeV6n+Ta58axMz7 4koaa6yAao0pZsh8d676sMMRkdBAKmfuW4f3515yz8XUj5tzI+RA1hCZ7Cusr8VKKtzQ fI5rPcMzldxj/1ByqAoiowdW9u27pVImIkANjxmG1ELO5E8kmuH1lSxFpyZfF+7GARUn QcxKL/8om480bwem+BScHbrmoKsaDxW1x2wu121X3ucAgUhZm0N5wNmAaf+VdYQI55Or NcCQ== X-Gm-Message-State: AOAM531RHEgbbM3S44J25XOmMRWWqrkoxcoeM8/wpbk76S/+GKOYWFKl npJeSSBEqSqzbnT6G4etnS0SKg== X-Received: by 2002:adf:dec3:: with SMTP id i3mr931833wrn.263.1606130392924; Mon, 23 Nov 2020 03:19:52 -0800 (PST) Received: from dell.default ([91.110.221.218]) by smtp.gmail.com with ESMTPSA id n9sm16317290wmd.4.2020.11.23.03.19.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:19:52 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 24/40] drm/amd/include/navi10_ip_offset: Mark top-level IP_BASE as __maybe_unused Date: Mon, 23 Nov 2020 11:19:03 +0000 Message-Id: <20201123111919.233376-25-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/navi10_reg_init.c:27: drivers/gpu/drm/amd/amdgpu/../include/navi10_ip_offset.h:127:29: warning: ‘UMC_BASE’ defined but not used [-Wunused-const-variable=] 127 | static const struct IP_BASE UMC_BASE ={ { { { 0x00014000, 0, 0, 0, 0, 0 } }, | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/navi10_ip_offset.h:109:29: warning: ‘RSMU_BASE’ defined but not used [-Wunused-const-variable=] 109 | static const struct IP_BASE RSMU_BASE = { { { { 0x00012000, 0, 0, 0, 0, 0 } }, | ^~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/navi10_ip_offset.h:61:29: warning: ‘FUSE_BASE’ defined but not used [-Wunused-const-variable=] 61 | static const struct IP_BASE FUSE_BASE ={ { { { 0x00017400, 0, 0, 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/navi10_ip_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/navi10_ip_offset.h b/drivers/gpu/drm/amd/include/navi10_ip_offset.h index d4a9ddc7782ff..d6824bb6139db 100644 --- a/drivers/gpu/drm/amd/include/navi10_ip_offset.h +++ b/drivers/gpu/drm/amd/include/navi10_ip_offset.h @@ -31,7 +31,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, 0, 0, 0, 0, 0 } },