Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp61694pxb; Tue, 12 Jan 2021 20:09:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2lgs/jR1kfOlzhztJ8XfLePVnY0VbPJqtHYg0DElx8uYy8Ulhc3AnFYxaZi5SYbbasQ0P X-Received: by 2002:a17:906:7fcd:: with SMTP id r13mr171072ejs.242.1610510952477; Tue, 12 Jan 2021 20:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610510952; cv=none; d=google.com; s=arc-20160816; b=u5SglB+zHbokHdhdbz9ruSiQCY7e6Kgkwws0oE8vbJnWGBIId2CU27BnIeZ+nClhEf QdUB2xrSNpq1gXPGJbNi1h2qz+rG7Z1zo/gxAJxqIW6XGEW0kijdv75nMnvaCOJKp734 WtlGVj8Qsdog/ey0gmo65A192IZqQ62nsH/4ecAZGyMEhdNS3auRQp4M1t/zMMMnt1w7 SDe69paE8UvJVrEYwArtCOZtN/qTCpTOa4DWUaCBwQlslCPtWsJeZX2fVdVXxqCFZRyU 8dzKoIIwF3AyfJKwxN6rQjC4lYls2345gOGtVzWCrT6bK4iIt3BLU/Sm6myAitSmQnSV rl7Q== 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=AoUDA2QHniDR7mf7zEUOWTW+Wr2iXHVQBuhQ6j/vnxc=; b=gDbA5EHafcAsXNaLubHyzMhTfOSl+SP3cGPLL53zB3StpAIWv0nvOE0L1L6htOVPfM j21OFW6dg69MLXqLI72zAEhgNjXTMgqDANiDKwVW+sSsFYrixJAhVgbIopuRjKnfBeji zUKf5iFgeg4ndSH7myrzf6a9u2soz5W6fBKBZ55bxq5gpztxP8157aFs5Ta1DEaqlFmB xlgCyOmB+8iwcPSUb8QkZKRBMv73X//zKB1GaLXJRa/DakWlrY0ndx9S+swFkI9IULso WXQapXbm6fxIBIC7xgsTYCtJiS0soecGEJ0WwmPEvCmW+p4dcRWnkh1Xd8+UYRp4BB4K OaXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JnPp+nXZ; 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 rh14si366352ejb.210.2021.01.12.20.08.49; Tue, 12 Jan 2021 20:09:12 -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=JnPp+nXZ; 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 S2404761AbhALWVK (ORCPT + 99 others); Tue, 12 Jan 2021 17:21:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404681AbhALWVC (ORCPT ); Tue, 12 Jan 2021 17:21:02 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 196B2C061786 for ; Tue, 12 Jan 2021 14:20:22 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id s2so29431oij.2 for ; Tue, 12 Jan 2021 14:20:22 -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=AoUDA2QHniDR7mf7zEUOWTW+Wr2iXHVQBuhQ6j/vnxc=; b=JnPp+nXZRLtRwBPO4ZZNOXC4+E9XHHYEOKxyfA8NR2VPX7enweEQqBiTJEVwVa+CY6 r8czRjtZQczsXac/S9UNwdmDb8QNrr6vDtcRLlC5e3AlLHvThDw/m0BgImcLVkfct8Y2 aoDmquGKB/7MCKT3DzPwSH4iyQTz/AOKAVPEWWWXZ71gIRzQOvQVpunN0AzcqLfh1otp unpKIAnipJfwogG6lx+D8BwHI4G1cf6qqCqAsf9/mFK8AtCL2vqUGQnoQOuy/U2bPKSH uuJFMrGfyb/B15XLVawQRAMkH6Ptb5yomdsW6geYH1ikq2Ek4NgKdhgOjI8Q5iE4TUHt 8fRQ== 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=AoUDA2QHniDR7mf7zEUOWTW+Wr2iXHVQBuhQ6j/vnxc=; b=oNyQIgNgi2bsSKKmKVsyDdSjcl4WtxJIYy3mY+hMdGQN2CBL4Zl44h+j9DvKgvoUDW 6wUhJMi/WQ2+OIAv6uQHpV0iNh5HnNCI/QD4I4hEXeyv5kdDZ6JHX29AHJNRA/SsdFBR UFpuhhKcAo8Ao78q92jcBMyI36yUVKcJI2JI96uJbdP0JcMazWhLoEiEt/gQ9grT6d7w XkdmpPhd6sLK9eY7NPYN2TcZaxDDG3q50L3x8/Y0ArcmLMGd1FJoPpCIAVPgFlM6qLsW B3H3xRffud+tgwDmuQKoA2hwR3L8Q0bhul904xWUbov3cfNJ2V2g4ZbBrtZwYF2TG1GA S6nA== X-Gm-Message-State: AOAM5319W771z+uA68HgLKmGjjfc7uEE6rJw8ln5KP3fpkuhRSLsCqNf 72hQQEy/RN7pYoIJg7eh7o/iFoTfXvHfr4AXd0Q= X-Received: by 2002:aca:6202:: with SMTP id w2mr773214oib.5.1610490021530; Tue, 12 Jan 2021 14:20:21 -0800 (PST) MIME-Version: 1.0 References: <20210111191926.3688443-1-lee.jones@linaro.org> <20210111191926.3688443-22-lee.jones@linaro.org> In-Reply-To: <20210111191926.3688443-22-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 12 Jan 2021 17:20:02 -0500 Message-ID: Subject: Re: [PATCH 21/40] drm/amd/display/dc/dce110/dce110_compressor: Remove unused function 'dce110_get_required_compressed_surfacesize 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/dce110/dce110_compressor.c:415:= 6: warning: no previous prototype for =E2=80=98dce110_get_required_compress= ed_surfacesize=E2=80=99 [-Wmissing-prototypes] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > .../amd/display/dc/dce110/dce110_compressor.c | 30 ------------------- > 1 file changed, 30 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c b/= drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c > index 72b580a4eb856..18b0a69b0b1e8 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c > +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c > @@ -412,36 +412,6 @@ void dce110_compressor_destroy(struct compressor **c= ompressor) > *compressor =3D NULL; > } > > -bool dce110_get_required_compressed_surfacesize(struct fbc_input_info fb= c_input_info, > - struct fbc_requested_comp= ressed_size size) > -{ > - bool result =3D false; > - > - unsigned int max_x =3D FBC_MAX_X, max_y =3D FBC_MAX_Y; > - > - get_max_support_fbc_buffersize(&max_x, &max_y); > - > - if (fbc_input_info.dynamic_fbc_buffer_alloc =3D=3D 0) { > - /* > - * For DCE11 here use Max HW supported size: HW Support = up to 3840x2400 resolution > - * or 18000 chunks. > - */ > - size.preferred_size =3D size.min_size =3D align_to_chunks= _number_per_line(max_x) * max_y * 4; /* (For FBC when LPT not supported). = */ > - size.preferred_size_alignment =3D size.min_size_alignment= =3D 0x100; /* For FBC when LPT not supported */ > - size.bits.preferred_must_be_framebuffer_pool =3D 1; > - size.bits.min_must_be_framebuffer_pool =3D 1; > - > - result =3D true; > - } > - /* > - * Maybe to add registry key support with optional size here to o= verride above > - * for debugging purposes > - */ > - > - return result; > -} > - > - > void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *m= ax_y) > { > *max_x =3D FBC_MAX_X; > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel