From patchwork Mon Jan 11 19:18:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360544 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139416jai; Mon, 11 Jan 2021 11:19:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpW/iHfohG3aipWPBOH6oAFIKfGzfPjWW4RBASWboMl+7grwS9foTn/WQ0fDEsqu1Lxw0L X-Received: by 2002:aa7:9a07:0:b029:1a6:5f93:a19f with SMTP id w7-20020aa79a070000b02901a65f93a19fmr832271pfj.21.1610392797453; Mon, 11 Jan 2021 11:19:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392797; cv=none; d=google.com; s=arc-20160816; b=wdCBFJVE0qjPUBtLFjogwNaCw8iRYXbYvQOf7ZFnr7fqdgn/w/sWjgadRXDQCw+yhs fX2xDXwztUb2TPyQc0NZTLCkUrHftLBfqMDOefe1kTPSQ6+nBCp/QPXvznwrivdoQw6w 3PxVNpqouTLPARxz7iBblaDJW0cY0P8D4MCg/g8aetIQoMRbMwJVJ2p9mzf8psBFags/ +zqmXRiE00CAxU+nm6hA1ciNkTPj9YGvIo4OlpIZ6ZJu8whv3b9HXzZEWFyiaVaDGYJT 99ajxTi6eTnsHxrDGJFJpUUKQP5Q9gcBpU/uxDidwbwz7eU1vCK88hj9mkY156yuXQP4 psFw== 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=ngGAmpqKYWPqLjEONz5jup6q39QtUNt7aOG3ViMNyHs=; b=PDs8nMmh6qTUj0OQ7rtBEeSldGj9OzqEex0F73ZpEfoAVt1sV63OzqBX2RproISlPW qHsF3cqOd45M2NuR3IZBZgfDzgABKfjTUnHLfNgvp6v2VaumYkqeXiVjL4hcOLNlS4Lf 8CyIiDU/v9//zU5AO1uW1+jn8+SHCruThUR60wCQ6hpTNn16su7JZ8rAbCsZXx3vQPEu Zea1ANi/ZDoIxqBgQG5j6MtA9ctBisMYZQBrMvGq4/tpfJbP2Wg01thl4YDKEZ+XFZ5V PmT0Yxx3Kxc18Xcxoiyp115PKOJ2czjGwmZZ62z8Drjm6kUGwoWw/6ZWA5z0hZVnKHyq 2tDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="A9a7/txq"; 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 w14si459797pfn.263.2021.01.11.11.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:57 -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="A9a7/txq"; 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 2A83089E19; Mon, 11 Jan 2021 19:19:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F68989DFE for ; Mon, 11 Jan 2021 19:19:44 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id r3so958979wrt.2 for ; Mon, 11 Jan 2021 11:19:44 -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=a2Y1r1imcED85eFixB5AGXQS5WVhMYvk3Zres7MALT0=; b=A9a7/txq8Sk8aZPWjqlVS7sQ7X76uzBkQT+uQKbCuBAo6drReTQXWZzzobNcV+49OM pvmfjOh3M1yF+g53OxFNO/eVMX/9KDnyoXnJvlMGgp9k5u+2lbEQwmsAiQ+qTe0z4720 h4sAgdSkVS4WAaju+KzUlV5nDOxBJwQN1H4rB7+H3WeuPQVHAl53ZfPgPt9lvOMG9CqD +nMhXKTCFutgeUQqBtyIO5KKAv6e7VamtSiG1HwXUi6EbynxBAZgFFmsZTUMwlIvf0ku Ehr+GTNdqFcdN83P3mFAC3mZ/ZuK6kDWklTQaSJBI4NWhVdL1LGS2VZl+jp8araC7iay v2xA== 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=a2Y1r1imcED85eFixB5AGXQS5WVhMYvk3Zres7MALT0=; b=rfiKXMjQJsJy8+vWP1kcHLoIiyHaZ+yR55qSYDa3iUSKztzxbHOsz4enmaAOYDQGwr /uubIRgBxRWMNpq0H6c2bCZuhptwbOUWBfpcpAUfmWaf3XbarFFLoCHui7AeDi6C/l8B h78mKqlLJR4QpYlwgkkEiimTCt3daCD2Jp9j9j0nWvyi8DiAvAS4O+Lc92J7c2Jn72UI d/4kt8c4GDk9s6PHjiuKvn6bnmoHhBzYfpkjCwjT4pJXpX/HoiGcz8q14Ok+unr6eDpM iHPkF2B9JGFwrloeW87FXPjgmsHPSfxCOGN5H2Zi2saxbt7B/zimKqiiDh/CGTWj4aMe 4QkQ== X-Gm-Message-State: AOAM532lRqy3cykUdMtOKDFgSpJiWehnaZZx/kjOux7YXfgmgJ++Fw6F mnCGwGmb1dcgNKqjoriczTywiw== X-Received: by 2002:a5d:610d:: with SMTP id v13mr565190wrt.425.1610392783332; Mon, 11 Jan 2021 11:19:43 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:42 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/40] drm/amd/display/dc/dce120/dce120_hw_sequencer: Encompass defines in same clause as their use Date: Mon, 11 Jan 2021 19:18:56 +0000 Message-Id: <20210111191926.3688443-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Ideally someone should strip-out all these garbage 'if 0's. Tempted to carry out the work myself on principle! Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_hw_sequencer.c:53:47: warning: ‘reg_offsets’ defined but not used [-Wunused-const-variable=] Cc: Harry Wentland Cc: Leo Li 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/display/dc/dce120/dce120_hw_sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_hw_sequencer.c index 66a13aa39c951..d4afe6c824d2c 100644 --- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_hw_sequencer.c @@ -50,6 +50,7 @@ struct dce120_hw_seq_reg_offsets { uint32_t crtc; }; +#if 0 static const struct dce120_hw_seq_reg_offsets reg_offsets[] = { { .crtc = (mmCRTC0_CRTC_GSL_CONTROL - mmCRTC0_CRTC_GSL_CONTROL), @@ -79,7 +80,6 @@ static const struct dce120_hw_seq_reg_offsets reg_offsets[] = { /******************************************************************************* * Private definitions ******************************************************************************/ -#if 0 static void dce120_init_pte(struct dc_context *ctx, uint8_t controller_id) { uint32_t addr;