From patchwork Wed Jan 13 08:07:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362036 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp296658jap; Wed, 13 Jan 2021 00:08:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzp2GrYcZtYPjUx68wkMV9GlR+T3ztNlXoNMC4s81L+4ghk5LxuYX3z8FbyBMc/bbgFkO7r X-Received: by 2002:a63:fb54:: with SMTP id w20mr965870pgj.419.1610525287450; Wed, 13 Jan 2021 00:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525287; cv=none; d=google.com; s=arc-20160816; b=0B+d7/IRj5aQao4XQPqLXBJ22cNl1lfw8vVIQ7lF5Jo0jwDyXJFYSG5pvCP0mR/Lbl blA3C+ZvRDLN7dIYA+UcBhP58VNBONrcaQMYnmrjXxxrGsQW7migxO34nQ841eT3m2dE kM607fT7zAvU0zS46QZcQvtMnYV5597UMs3moBp8x61uuR7FtyxejpCS2nry1N5UGW9q tKuwuS7OUEAUAWghe4tm4lgf+0u6z9mTLVhZliLWf6AwupcYM6oMOhfMVA0RpeUDUzwm Mkro13fWs77+t3IfR2Zt6RJPmxSU8eijXD6RbKH2CGYalyNCSrcbq00XJZYQKSucF/x+ YxPg== 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=AT4pvcGNm9CfhX7D5LQVRSbRFPtPy9rOBMHqq08v/Vk=; b=xt8nYfchL4lRjz67jH7aasKYK/rmvLTqeEDHjlELohBCki4TReFz/hvIt9k4W9HMCP S1nax7YWSBKIxicaTh8lH3err1nqKTug4SyC+Ar8C1Hv9ezdvdXRYKKvyGHJA/m5Nmqw Laab4/dN9UzCfnkUiuhpSXqQOpCZ7ye3OrvX4GYrWph6q/Rd8jUHNuBlIS9fe4FkhVrh ftjuE+5gMiqHK7FmTaLqP49iwW0wYsxehrrpkO9cLXROsaNHja6IP56D19YYAjq8u6z2 fWs0pcIUrW9cyEqvBhl3aZdkH+EDCytxRzJvzMTvrExeJAhshTts28r+Sw8y0gyADDIN Db5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=duF2RanH; 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 q204si1411436pfc.280.2021.01.13.00.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:07 -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=duF2RanH; 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 285C789F01; Wed, 13 Jan 2021 08:08:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by gabe.freedesktop.org (Postfix) with ESMTPS id BB7AF89F01 for ; Wed, 13 Jan 2021 08:07:59 +0000 (UTC) Received: by mail-wm1-x332.google.com with SMTP id e25so721776wme.0 for ; Wed, 13 Jan 2021 00:07:59 -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=ktFTv6l4Mkv6rjYtIWuu+I32vPP5PwPZZX1XhOAIePM=; b=duF2RanHvTZtsFkj9JgIpTcO7sj4u+KL/w+iBKJHU/Jy7Ckx1RaphwzUDE5jMsMwW1 27Vu+V6wWLo70FLVwF6yaUnm6CGARm9TGfpCPseqgVLB81AJoIqmjg78Dd7H338ktFkL 2C5ESgv0CGHxiCpgR8ZmDB6z2Ih7+LFTLwOqII2XleZa4h7gHjjoLA5GAth7fi5bVOjT ojVglKHj9Ur+xL7hBUUbkCeSi05acptXTjue7hh/8reUx40w42Hso10hElHJG7YyD5VH LhlgKsgmn8G9miWgTseJ54BB+KrzWHcTwOO8NGVgd3RzHzqf2QI/lRHEgdnRPQ/rkHrc DrKw== 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=ktFTv6l4Mkv6rjYtIWuu+I32vPP5PwPZZX1XhOAIePM=; b=M6kj0bdHZkgBX2d3YZ5TJwe8Va/KovpE2uH1p4nzDf2xzoqzUp7VuPhwhLwisZ9rh8 LUko46MCEl0OglUuDu1typFG5nkZjT2I28F8SCGL1oF390/fcxDtQ/EJdvc23kCRfjGO zm+Js7MVC9BTaNnsZvIq3JcwjDuW495A1fjWvW+KGZELxP/vBQfRNmBAjDsMvuTdTsI8 IqAvZ8T+togzDvqbmuzwBtVGJRcQ3QKDjk6aznXYxKAzxj6h7yAXDxFvNQxDAT0XXEP4 OYEKHa8fCTNgvpg91/E44Cn2clhkBG6gxE2Ho6tyFucoJWTxU21mj3QFdglG/z2Wpra0 gSVg== X-Gm-Message-State: AOAM533QzGpPEHX+IfVwQPFZ6zMJAfOy19TED901bibp4bKCyyOoV4eY pRvi192oRtAEztrtMfoFo010jA== X-Received: by 2002:a1c:2cc2:: with SMTP id s185mr62474wms.36.1610525278481; Wed, 13 Jan 2021 00:07:58 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:07:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/30] drm/amd/include/renoir_ip_offset: Mark top-level IP_BASE as __maybe_unused Date: Wed, 13 Jan 2021 08:07:24 +0000 Message-Id: <20210113080752.1003793-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113080752.1003793-1-lee.jones@linaro.org> References: <20210113080752.1003793-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): drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:226:29: warning: ‘UVD0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:219:29: warning: ‘USB0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:212:29: warning: ‘UMC_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:205:29: warning: ‘THM_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:198:29: warning: ‘SMUIO_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:191:29: warning: ‘SDMA0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:184:29: warning: ‘PCIE0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:177:29: warning: ‘OSSSYS_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:172:29: warning: ‘DCN_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:165:29: warning: ‘NBIF0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:158:29: warning: ‘MP1_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:151:29: warning: ‘MP0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:144:29: warning: ‘MMHUB_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:137:29: warning: ‘L2IMU0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:130:29: warning: ‘ISP_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:123:29: warning: ‘IOHC0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:116:29: warning: ‘HDP_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:109:29: warning: ‘HDA_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:102:29: warning: ‘GC_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:95:29: warning: ‘FUSE_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:88:29: warning: ‘DPCS_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:81:29: warning: ‘DMU_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:74:29: warning: ‘DIO_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:67:29: warning: ‘DF_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:60:29: warning: ‘DBGU_IO0_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:53:29: warning: ‘CLK_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:46:29: warning: ‘ATHUB_BASE’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../include/renoir_ip_offset.h:39:29: warning: ‘ACP_BASE’ defined but not used [-Wunused-const-variable=] 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/renoir_ip_offset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/renoir_ip_offset.h b/drivers/gpu/drm/amd/include/renoir_ip_offset.h index 07633e22e99a1..7dff85c81e5a7 100644 --- a/drivers/gpu/drm/amd/include/renoir_ip_offset.h +++ b/drivers/gpu/drm/amd/include/renoir_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 ACP_BASE ={ { { { 0x02403800, 0x00480000, 0, 0, 0 } },