Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp35516pxb; Tue, 12 Jan 2021 19:13:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzM3ooQOOl0hDxYTfdZbs/c53JYlSKyZsTWxuMHSW078ewj919u7mpNyHjdtWuvPC7ZKB29 X-Received: by 2002:a05:6402:4252:: with SMTP id g18mr95676edb.231.1610507628412; Tue, 12 Jan 2021 19:13:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610507628; cv=none; d=google.com; s=arc-20160816; b=IjWPmkaNUqUEFfoso1QOU3AuCGg5I3rP+DaYYCogFosYKtAtu0Iksb2Ab20XyPr1nL w7YHNde3JX62BjcT9I23rc+0VmbHzAMiptcAwylW22ty/TdwwZX6lex07TBCsy6W5tEL NXL3qaGYKg4N3zx+xJgk1xk1Dx/EvZQ0VqhHpV1mc2T9Nid+XItH9EbcVL3TQApWJcyk tiSzs4nyNfAZoXGwnJoZe+LnkSI8KrwL9c/ETq2FaUxNMMSAdZT/VD7gGtbGsRKo0bhz lxJYAsLt7BZ1ogSsUeNFZ6G/MJJI2lDqfcIGMAY5+A1R0XMPCCvE9UaycDbAGatkYwy9 JPVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=trCTWdvjHMkvPDEDmT3pUIVTBrdeeOfcyXQgZDcVJx4=; b=M5L+WCrIFOfLf1TrP5T8x5ZflspYpUtCycdnXtMo3pRbwQMLFg2YWbuSZicOcdx5sR GiQfDocrk74IHzZm29rJRVNzA4/LRo08iaeE72rjgrnJrtW0tuKkLR3lL1B2iLBwrY3y qH/yfc7NRPQtpkvhRIH2c0fLarf8VYZxlCFdA5NTQhUWf+wKEstdYpCekwDiXZ3I0MwC EC4Rkh8jfaXI3rNBjo1htStuYnH47Pz4GcdnbviOzgvjdRqRJMg9UXy4GO+APRoXMdQB 8SzXCnhI5t/PSLxXtz/WCX52v3UwQ/TV97eoqHVcBR8rI9BTB5kK6XpOIKzW63CTQYM8 PpAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=muS1YPhl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d9si312093edt.564.2021.01.12.19.13.25; Tue, 12 Jan 2021 19:13:48 -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=@gmail.com header.s=20161025 header.b=muS1YPhl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387642AbhALW1n (ORCPT + 99 others); Tue, 12 Jan 2021 17:27:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731556AbhALW1k (ORCPT ); Tue, 12 Jan 2021 17:27:40 -0500 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED57BC061786 for ; Tue, 12 Jan 2021 14:26:59 -0800 (PST) Received: by mail-ot1-x32e.google.com with SMTP id x13so19553oto.8 for ; Tue, 12 Jan 2021 14:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=trCTWdvjHMkvPDEDmT3pUIVTBrdeeOfcyXQgZDcVJx4=; b=muS1YPhlz4qgL7ceLFn6pIbbjGWGMgOZza+OnaaW7VlWYR3J2M2OjcCZo3pIV+yafO Vf6+DMKqkoS9l84JDL2Yq6/BjkJsySedrz2NXMqRl3eSpop5oU8CLmPzCvyjNvGK+NtE Oiw1/e7+KvH9IIYv6as3G6b6zYkXRs0J+PmQ/gpQfXMQLW0Fmz9D0vy4RlebIjHOPnfE 4hVTAczfzJ7/FStB42OlahmmaPC9AK/b6BPpOVOLy25Yt2VBSwWQfJRFTOSA8OI8Dz1t rt+EE1JtqwD1bvCSfcjHw0v1SAuokEG52nhSxuCIj/X0lwdhNcGUQgfhGTAAGwxqc+u/ 6EOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=trCTWdvjHMkvPDEDmT3pUIVTBrdeeOfcyXQgZDcVJx4=; b=AnIFaU9GlLJeZKrBKn5RT5USzdYgfi/VunbgOk14WyXKVeQGNLPTqdWWAWlHJVFreH oHJSJQiCkqZnZ/RCHwbWKcdRQ2VWgGjLH0U9q8l4Kja1dnDswjbwS3WUpbnfjCqzIfhb /8uKtBOMeqQbN4qOj1IAx3Z/PtJ10QVvhrT1mJcHvZOIA0oGTiWb+0EIPWqOJAcJQqbJ d+4LAf5FM2zN5GI4zvPbdPJwHIMR+IFipWUNKq4jHF1hrW3d+h4RxkJvP4g/YynA5dj9 epIwWyNwTjwnS+V5hKOtFNDytP3XdteecBlWIBgFKjWQ37sKNfCQUBudGeyArDpnZYM6 4pMQ== X-Gm-Message-State: AOAM5330ZsSezB0hUpOhsUPy0Bf1ci8dXeLfcuRrurZlpFtmqygkRMID 2RRgQJwMHuA1AiIyE80UnJYhqQpaFCAlP3UP86U= X-Received: by 2002:a9d:2ac2:: with SMTP id e60mr1051458otb.23.1610490419441; Tue, 12 Jan 2021 14:26:59 -0800 (PST) MIME-Version: 1.0 References: <20210111191926.3688443-1-lee.jones@linaro.org> <20210111191926.3688443-26-lee.jones@linaro.org> In-Reply-To: <20210111191926.3688443-26-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 12 Jan 2021 17:26:47 -0500 Message-ID: Subject: Re: [PATCH 25/40] drm/amd/display/dc/dce120/dce120_timing_generator: Remove unused function 'dce120_timing_generator_get_position' To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 2:20 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce120/dce120_timing_generator.= c:602:13: warning: =E2=80=98dce120_timing_generator_get_position=E2=80=99 d= efined but not used [-Wunused-function] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > 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 Applied. Thanks! Alex > --- > .../dc/dce120/dce120_timing_generator.c | 43 ------------------- > 1 file changed, 43 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generato= r.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 =3D DCE110TG_FROM_TG(tg); > - > - value =3D dm_read_reg_soc15( > - tg->ctx, > - mmCRTC0_CRTC_STATUS_POSITION, > - tg110->offsets.crtc); > - > - position->horizontal_count =3D get_reg_field_value( > - value, > - CRTC0_CRTC_STATUS_POSITION, > - CRTC_HORZ_COUNT); > - > - position->vertical_count =3D get_reg_field_value( > - value, > - CRTC0_CRTC_STATUS_POSITION, > - CRTC_VERT_COUNT); > - > - value =3D dm_read_reg_soc15( > - tg->ctx, > - mmCRTC0_CRTC_NOM_VERT_POSITION, > - tg110->offsets.crtc); > - > - position->nominal_vcount =3D 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel