Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2507843pxb; Mon, 11 Jan 2021 11:24:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6vmTjVsbEuMU191/zZIWsghxz2ZQi5VVdqowsXSRaR6B56QBIqfV97puVEo9xDmnfFfCj X-Received: by 2002:a17:907:414c:: with SMTP id od20mr655427ejb.75.1610393047871; Mon, 11 Jan 2021 11:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610393047; cv=none; d=google.com; s=arc-20160816; b=tthYGGGMe0/sMTurbazK5MZSPMuFOHNRRE26eYL7gI7tfCdm1DUTzmcj/NOSNOuJDN X4fxh95PqbzBgAZcutJi5vwqGHSk0H4gFIxLShycXFjJpkCa6lshj7Qz5J3wcrWHIkvu NHLcq0Uc9QcdNw4iETNet/DsxElr0zaPUaI6Y96AQXlJtoRXIB/Snhn8J12+iAQ7GJQ9 O8FoqQ+SaYg60xG4iWaIEcTqZ2fr5kJgRzVbZ39zPZqeziAG6yI/th2kxq+FvzLytQWk pncypDPRCKK7kZjXjMn/3cASntdYkT/xFfTjkYmAb/UvwEjt9KHkF5lNa0I+Ul+GTdFD 43ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VihTPCTNoey/JKY1Z4Geihy/+CpWTn44EgwyKVU/So4=; b=IhM7giJ5F2eQLq07gnpfJseBY9ZGH7ZZd/mtnTbNw4PAnfZGzWZedsLZBvGmYrrOKt 7W6iX162koQvy5jrUomJY+MxsE90i8OkeAvwRgeJrNjKsapkskqCIq6+hFt4rADHWI3B r3Luj7B7yBJkotbwF0OJ1S1uQ5qWPSbMUMZrzOV0zRFYbb3e7lYwiDJjMbHqNIixgN+c liQ1GWZQtDffvMH1sA5frCyiMnm+Q2wpNyAFHP96MRg3U+MhkVLwbim/6dnQtfRSegI5 uhJNwZ7nxiFXHda4aGTMo1aoXPZUKFDOh9yXjRfOQwMxwTRj/QUKWJ1WwV0aJsqckUKL j2mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zm4hqUDY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a28si259617edb.462.2021.01.11.11.23.44; Mon, 11 Jan 2021 11:24:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zm4hqUDY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404007AbhAKTVh (ORCPT + 99 others); Mon, 11 Jan 2021 14:21:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403985AbhAKTVd (ORCPT ); Mon, 11 Jan 2021 14:21:33 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FC94C061386 for ; Mon, 11 Jan 2021 11:20:04 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id r4so278919wmh.5 for ; Mon, 11 Jan 2021 11:20:04 -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=VihTPCTNoey/JKY1Z4Geihy/+CpWTn44EgwyKVU/So4=; b=zm4hqUDYRKWhOH93S0m6OzMUm2UG0kbFx1gdPzIUP19LFjdloPHHu0sy2fhop86XTG lMCU33kWxfEz2L2MA9+m4H0OjD6rNFqjxqyf+fTeirC+7Y3E2TazSeF3rksQrfnfUJsd N87z5kKXvI2t/VK2m80dg7kK4749/ktGuBUBgpxi65KVqgbhjv1q9D2USLW6HEUY56+h zr5Md/jQvtZvIJZlamRiRiCxmqZIVxD5XQT/gbHuAi4gvU9+NeyMewqq1vPRXEODaPDt yFdthHeJA9zUM2cvKd25q75bYxtpHj8wkDRxbn6o1JPPDZtZmxaiqLbGNJjvJ7SCcGcP r44w== 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=VihTPCTNoey/JKY1Z4Geihy/+CpWTn44EgwyKVU/So4=; b=KndF3wWnpqBW/WrSsX+u0Q1wp6ZoF69bwxkF8ZLJQgyJcmfyjNAs5Gge05ODfhbtHb FA1N53iOnt1jiyo+grjDI16yoYz0kMAUB5Fk0BX131wSkgUafVY5wM5t3gVGj65AmdER q+bmhkuNtCv5T5KzE2rXwdL98gSivz2xMRIfW7tsBdA9HyCPMaxX+eQ0VzAjDhjOJCFZ h88OVMzXr5cAkh3WliOoo3QIL3bsODKOPYg3uArSGs90Hwz03xjOG2HbYdbzkRp8h3Mm Lf/IxTh/7oz0g8LTaNaOYRNTeVqVyjeNeG3w9xijNmmUcYuTT0/f8v12qJyNRnleO022 vTig== X-Gm-Message-State: AOAM5312crjqk8mkOpFmi2vpDoWOBUJc31r9v1eexVMtSV3LlWdY8e0Q 3vT3R10cvfbOA+11axTYUzFTug== X-Received: by 2002:a1c:bd56:: with SMTP id n83mr291291wmf.72.1610392802992; Mon, 11 Jan 2021 11:20:02 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 25/40] drm/amd/display/dc/dce120/dce120_timing_generator: Remove unused function 'dce120_timing_generator_get_position' Date: Mon, 11 Jan 2021 19:19:11 +0000 Message-Id: <20210111191926.3688443-26-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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_timing_generator.c:602:13: warning: ‘dce120_timing_generator_get_position’ defined but not used [-Wunused-function] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Lee Jones Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../dc/dce120/dce120_timing_generator.c | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c index d02ecb983c9cd..b57c466124e76 100644 --- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c +++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c @@ -589,49 +589,6 @@ static void dce120_timing_generator_set_drr( } } -/* - ***************************************************************************** - * Function: dce120_timing_generator_get_position - * - * @brief - * Returns CRTC vertical/horizontal counters - * - * @param [out] position - ***************************************************************************** - */ -static void dce120_timing_generator_get_position(struct timing_generator *tg, - struct crtc_position *position) -{ - uint32_t value; - struct dce110_timing_generator *tg110 = DCE110TG_FROM_TG(tg); - - value = dm_read_reg_soc15( - tg->ctx, - mmCRTC0_CRTC_STATUS_POSITION, - tg110->offsets.crtc); - - position->horizontal_count = get_reg_field_value( - value, - CRTC0_CRTC_STATUS_POSITION, - CRTC_HORZ_COUNT); - - position->vertical_count = get_reg_field_value( - value, - CRTC0_CRTC_STATUS_POSITION, - CRTC_VERT_COUNT); - - value = dm_read_reg_soc15( - tg->ctx, - mmCRTC0_CRTC_NOM_VERT_POSITION, - tg110->offsets.crtc); - - position->nominal_vcount = get_reg_field_value( - value, - CRTC0_CRTC_NOM_VERT_POSITION, - CRTC_VERT_COUNT_NOM); -} - - static void dce120_timing_generator_get_crtc_scanoutpos( struct timing_generator *tg, uint32_t *v_blank_start, -- 2.25.1