From patchwork Tue Nov 10 19:30:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322861 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500333ils; Tue, 10 Nov 2020 11:31:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8wfXE7rBncKq4LeII1SDMZJGZc3xnKyLSltzxZyx/QdxOTOmDyq2Oeq53VnLTmQXT8Lql X-Received: by 2002:a17:902:7402:b029:d6:8558:7920 with SMTP id g2-20020a1709027402b02900d685587920mr17536966pll.8.1605036701902; Tue, 10 Nov 2020 11:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036701; cv=none; d=google.com; s=arc-20160816; b=gfNDmctfCggvl7vmxmz18aY9qmF1EU7CM9xhWc3VAWv6T/LEI3jr7JRz0ynkTGiGeg h4S3tRwbWwLUV4T3+WmSISBMTtZxMMX4k3AcklW9h/3yfKSBECfkwmLjSQc2bbDykecN 9qaC4IP76BzKClX6DEF4bunbUbUvQ1K1ReeVo6KQwEdvcv9LO+ZNx99R56ADiFn/ZuYv opzbntnuI6mBajlwa4ZHUpEE2sp4HVjF5CjI6s7ITWAxMepFhR3s2cGv3C3OTtB5dPBa oRrs3UfJEF+cdbw6y4G6zIo1egvzUvSPFJOKovYIBu7DlbrS+hIV19twtZWlTAqL1Xos oiSw== 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=4OdMHix9d/XtW0AHP7cNAdmXH4Kr0MT5R7LC0zVtk5I=; b=wB5sHftHvx3kC83xrmBL8yaYiHw+P5v5lCHTPvYXiVLomEjsreYoYT/mvRrGmNd5JJ DVcTXOJYC30+vMwarh+cwlpn21nCxZBXXeisCIEpxsTFHBhcvWor/0CPjTVUctdN+jnp qFhicgmOyDYaUoFEG1snD9PyGu7dwtHzJZ47E9mkOcHWiNrRuF8+rdP+9M5mo/Qw6HeL ONyHK+i5QTtsVsutpFjHRhcBE5NV8Gv9avU8dShfjsaj+4E5fJuWnBkxZtUtk+d/5Zxy A/utbkjsELYLK6+xQJl7Kv4nJoWqefSxZ92LdyriYI5n8uXs5FVDLYlLGtcDhH4Wv10Z xHtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kLlPJRNg; 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 3si661664pfg.129.2020.11.10.11.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:41 -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=kLlPJRNg; 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 71F1889BF5; Tue, 10 Nov 2020 19:31:30 +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 590AA89BF0 for ; Tue, 10 Nov 2020 19:31:25 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id s13so4299909wmh.4 for ; Tue, 10 Nov 2020 11:31:25 -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=Xcbh8O+/omHL2VrpacAkpBtVFmAXD+djrz0urDPaJVQ=; b=kLlPJRNgN1F9oKbujE00llAPCqrZ6ps66Ok/S6/KvHh1EKNq12UMi2auweIku5QZ+d kHgomKu/9dundePmvfQOGcT3iLzJpwwonRbLSzxLYarevW+J9jAwUduNxg5s+KKMBtIs zcB01rcJI9EQSfNlkP7Kz+lx5eGQyi7U35uMuSzgK4juZGPgYBVkN083Z3gQ4bksEj83 MgScucPUFTtvTp6/SqtM/6ITyUMzS7vQsX78dK9WlKYUcs3TF+DG0c8eZ7hrua/sAJo9 VGaE8FoAHbQc0tOPZbBtQxjA+q4Z91crPXwSM7Sol4f4JqTBUOx6t7l+5es/l4561Q/S pWTQ== 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=Xcbh8O+/omHL2VrpacAkpBtVFmAXD+djrz0urDPaJVQ=; b=oTpqRfEdOi/3P1S55uKkcdDLpHBJUGnkVV1m9eL2KuA/iqmM/Pj5krWLu7SDYqx9ZK s2DPyYoKVERU+5Ak66CiyOlr9OExK12BLA5xh29UZR3yqQS3qPDCgI9XvqroxyFNSOzy 3+tG18Qd8yjPzrHb/OLwdQ+CfnWmbtVYwXBHRvl4WkmkvjmKLa9h/Kota3qF/LR1PCOb PF3CzjxD1f4h4R9A/Spq2AWjo8UvqXBqZXk5W09VJ506kLKfyQ88tjtRp88c+8iNWrPr kIKVHJoR5RuzuWVk58mJMetstHiTlNG2hOL4IFAoe9k+Q12mA/e2CQdtxr1GxoJgRaAK rgCw== X-Gm-Message-State: AOAM531ytNj5s4JbqBjw72bPK0G05kL6lBt0Vjfkf6NPX9CBUPzHbaz0 SmjUTRP9NJ4vJyYeG3A0vmmQPw== X-Received: by 2002:a1c:964d:: with SMTP id y74mr669038wmd.129.1605036683897; Tue, 10 Nov 2020 11:31:23 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:23 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 06/30] drm/radeon/trinity_dpm: Remove some defined but never used arrays Date: Tue, 10 Nov 2020 19:30:48 +0000 Message-Id: <20201110193112.988999-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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/radeon/trinity_dpm.c:146:18: warning: ‘trinity_sysls_default’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/trinity_dpm.c:131:18: warning: ‘trinity_mgcg_shls_disable’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/trinity_dpm.c:120:18: warning: ‘trinity_mgcg_shls_enable’ 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/radeon/trinity_dpm.c | 44 ---------------------------- 1 file changed, 44 deletions(-) diff --git a/drivers/gpu/drm/radeon/trinity_dpm.c b/drivers/gpu/drm/radeon/trinity_dpm.c index 4d93b84aa7397..e005c18aac00e 100644 --- a/drivers/gpu/drm/radeon/trinity_dpm.c +++ b/drivers/gpu/drm/radeon/trinity_dpm.c @@ -116,55 +116,11 @@ static const u32 trinity_mgcg_shls_default[] = 0x00009220, 0x00090008, 0xffffffff, 0x00009294, 0x00000000, 0xffffffff }; - -static const u32 trinity_mgcg_shls_enable[] = -{ - /* Register, Value, Mask */ - 0x0000802c, 0xc0000000, 0xffffffff, - 0x000008f8, 0x00000000, 0xffffffff, - 0x000008fc, 0x00000000, 0x000133FF, - 0x000008f8, 0x00000001, 0xffffffff, - 0x000008fc, 0x00000000, 0xE00B03FC, - 0x00009150, 0x96944200, 0xffffffff -}; - -static const u32 trinity_mgcg_shls_disable[] = -{ - /* Register, Value, Mask */ - 0x0000802c, 0xc0000000, 0xffffffff, - 0x00009150, 0x00600000, 0xffffffff, - 0x000008f8, 0x00000000, 0xffffffff, - 0x000008fc, 0xffffffff, 0x000133FF, - 0x000008f8, 0x00000001, 0xffffffff, - 0x000008fc, 0xffffffff, 0xE00B03FC -}; #endif #ifndef TRINITY_SYSLS_SEQUENCE #define TRINITY_SYSLS_SEQUENCE 100 -static const u32 trinity_sysls_default[] = -{ - /* Register, Value, Mask */ - 0x000055e8, 0x00000000, 0xffffffff, - 0x0000d0bc, 0x00000000, 0xffffffff, - 0x0000d8bc, 0x00000000, 0xffffffff, - 0x000015c0, 0x000c1401, 0xffffffff, - 0x0000264c, 0x000c0400, 0xffffffff, - 0x00002648, 0x000c0400, 0xffffffff, - 0x00002650, 0x000c0400, 0xffffffff, - 0x000020b8, 0x000c0400, 0xffffffff, - 0x000020bc, 0x000c0400, 0xffffffff, - 0x000020c0, 0x000c0c80, 0xffffffff, - 0x0000f4a0, 0x000000c0, 0xffffffff, - 0x0000f4a4, 0x00680fff, 0xffffffff, - 0x00002f50, 0x00000404, 0xffffffff, - 0x000004c8, 0x00000001, 0xffffffff, - 0x0000641c, 0x00000000, 0xffffffff, - 0x00000c7c, 0x00000000, 0xffffffff, - 0x00006dfc, 0x00000000, 0xffffffff -}; - static const u32 trinity_sysls_disable[] = { /* Register, Value, Mask */