From patchwork Mon Nov 23 11:19:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 330616 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp3415154ejb; Mon, 23 Nov 2020 03:22:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxi3uAsqgdWzM9u9VzLdUUsjG7tPTFX/FyDUE3ZJZXjR61CpvFpr9vpGcehCYGqkk3aiYxx X-Received: by 2002:a62:cd85:0:b029:18b:36c7:382d with SMTP id o127-20020a62cd850000b029018b36c7382dmr25448414pfg.14.1606130446147; Mon, 23 Nov 2020 03:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606130446; cv=none; d=google.com; s=arc-20160816; b=XiPwwbUCvyDn7U6r8e2zSSDVVI6xVPZMFpNtJtVVMrbP68QkHWm8Ge4q63Jrg/0oQ0 OpmamcjB79PWv2ap1hXR1XfmkfagRU/jI2imZMeT5uOzZ/5EaIn/oGT5tyJwQ0u6HO8u 9nBr1wLUrO0iQbxSR5LVbgx17H+sEc6VwxNJA3cccSK2DCLjCDEM75M1FSmZeR48XkvD BwbVPoSzFWsqOwMd4DIuxhC+B2D0Qp8P8C0ijeL4Mv8nys3gdCv3vghE1vDvkMCrxlth H/iDYQZFVDeTh/uVLL9Ksetn2JaFVnOQGOmRERBbN/RPrj8DzW+i5WfSPefDInVTHvfi +kxQ== 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=9UemGfEehqYrLD110F8kJH1DX9/TAi94QXT8rE3gYUw=; b=OmJNcUx26/3KiMJCKkRr3Bx0A+H4Gq4hNVAOcxXPr25ToHKbf5ZaZ637JCY6ZwFLnX DTxNRQ08hNwhTFKiJ/GAGjWV6JaWgJ4l1gmPBxhsGnYQ4b5iZZPV0sU9BDn4nto+KzQZ i1lotznkioPov6DHjFhiijh5grA2ZqXNvtfYW5+a3Nyd7Xrapr6r8VCyVpnRh9KxgYb1 P0jGY3sY2MUYZkARHDjiKz7QIAGhFJhbQn5YkX0BWyVRX42ACXuTf/CjQ+N1F5yd3i2P VKIUIXCm+BzOUhrppWFDqCWeb7ABxulIb865WimsATpTG/MEIkVr3NkXx/VcKsCnH0qz yrxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ii8qj0ah; 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 t8si10322338pfg.345.2020.11.23.03.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:20:46 -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=ii8qj0ah; 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 2849889FA0; Mon, 23 Nov 2020 11:20:15 +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 95CF689F97 for ; Mon, 23 Nov 2020 11:20:06 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id u12so18263357wrt.0 for ; Mon, 23 Nov 2020 03:20:06 -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=Gwlhc6VWNQpc30FQNQL/2GN/SmFNbQKQvmIwzZcrdLA=; b=ii8qj0aheF693rKVv9viDbBG3uIBD3b1E/d48+r0czABOQzGbo+zl+Inp9aHhbiI8D quQKTjsklt1ekVGzZYrPVj50Tr1V0Zm5iuosIuVA8jbF13ZPgHjnYK/R5aO8uoEYMbMg R8jdbDEsd0nTHR5e/K6gw/CAluupMzSov0+8gEcmQaIKSEB+89kapqJU5OstjXmu+PHE 6iS8H+q6YomiC4vS3QMI7bSl5kfHtYPCttEAyMyLHKZXC6m/lYCiPCOUjvKevuo2r+WQ 56F94rTw6+KuYZGBmY+nRjet4KL8v28PXyUz5LlAtFPPkmMs7Ajuw54jRum5iSxfYa7s EGwQ== 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=Gwlhc6VWNQpc30FQNQL/2GN/SmFNbQKQvmIwzZcrdLA=; b=a5Y+Ow1SBliVQzTdZm1Z8jZ78rloI3heyWX5AC4XzK56uTbao65Unar0WSfsgf5vDm rWR72wSVqq9SB6Mqd8BrYzYoGhB6yFibRLNvtt8MRTkQgfLhAVNJ8qLHJCMSUbxvIg0j CXgA8ONTuA/ATbd6hXwf9BVHjuvZRmb/cCZbMZTr/khi+CgtqTVJZ5tODk1imlACxEk0 HOEoXdKX/jPJzdp56iKpe0tpwRmb8XNmd5ODH5dYSw/qBWuJPNXpzIYavzO+aMihYV3+ 6G515D3gcGyHbDVFDXONMPIvUXf1mqJmv21ZyNFK1YuljqkdCf47tl/+BfuNIEIOrgOZ L2Pg== X-Gm-Message-State: AOAM533wqVsXQ+hmJ/fUH3eOQv2gExRIvVxlWZ73E42vy4MqzSxvrOgR 5p0cVcpnO0T2isU9CG2bDiIu/A== X-Received: by 2002:a5d:4d92:: with SMTP id b18mr9165183wru.260.1606130399449; Mon, 23 Nov 2020 03:19:59 -0800 (PST) Received: from dell.default ([91.110.221.218]) by smtp.gmail.com with ESMTPSA id n9sm16317290wmd.4.2020.11.23.03.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 03:19:58 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 28/40] drm/amd/include/sienna_cichlid_ip_offset: Mark top-level IP_BASE as __maybe_unused Date: Mon, 23 Nov 2020 11:19:07 +0000 Message-Id: <20201123111919.233376-29-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 , Likun Gao , =?utf-8?q?Christian_K=C3=B6nig?= , Hawking Zhang 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/sienna_cichlid_reg_init.c:28: drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:186:29: warning: ‘USB0_BASE’ defined but not used [-Wunused-const-variable=] 186 | static const struct IP_BASE USB0_BASE = { { { { 0x0242A800, 0x05B00000, 0, 0, 0 } }, | ^~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:179:29: warning: ‘UMC_BASE’ defined but not used [-Wunused-const-variable=] 179 | static const struct IP_BASE UMC_BASE = { { { { 0x00014000, 0x02425800, 0, 0, 0 } }, | ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:158:29: warning: ‘SDMA1_BASE’ defined but not used [-Wunused-const-variable=] 158 | static const struct IP_BASE SDMA1_BASE = { { { { 0x00001260, 0x0000A000, 0x0001C000, 0x02402C00, 0 } }, | ^~~~~~~~~~ NB: Snipped lots of these Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Hawking Zhang Cc: Likun Gao Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h b/drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h index 06800c6fa0495..b07bc2dd895dc 100644 --- a/drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h +++ b/drivers/gpu/drm/amd/include/sienna_cichlid_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 } },