Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp36516pxb; Tue, 12 Jan 2021 19:15:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwywc0EtHeKanHcpODZnWBdje2HuS7K0VgiyYyKolPlTtbMvm73LHGEmIJJMunrIsrGXMAQ X-Received: by 2002:a50:f61b:: with SMTP id c27mr108340edn.61.1610507757062; Tue, 12 Jan 2021 19:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610507757; cv=none; d=google.com; s=arc-20160816; b=ag+Dwf/qEzIS0a5gv2D/JeYv8WFaucFYEk94a3wsEYp1lfKlpZt4c/ZHMl7Rd3V/Ow V9HMZq1TyKrHD03svO89ooTxbl9BTWU+i/wdhgLU1SJC69dD7MIDQLjtSDCHZ6oxxRcW nlO4r244NDnY6zN5YC0jU/z8HMcvhVxaM0H/XN10S7Cdj4En5trneAN7uGJd+MLqz+jv MCjczS3ot825araKHk4PwF1ABbUALW2XzcAQG/X3GHol/hlOu2Lvlj7EugU8O+oER6EA dC9PiylFFb9XATGodzGr56nUldFDmWPcALzoqe6nqXOW7SF3KL6sqWIhbnsEXzdlFYW7 KQ8Q== 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=dF0yJHbbjBb5erCUCeH3GN84OQvrBthurVO49Uciku8=; b=Jp0Hn+TvyhGTp5oAkV5V40PNzevBlsXQJ83jC0lqo1AzjDNFoKt9AyXPwO3PUDVPRo 9cW1AtFLhgHtGcjGeOc/FJS3MyE0f7KdYKbarQmc1TeE4IZKpj4p2/BNnCkQ3aDjl5QZ FOT2axbuuSkZW+VbLC1WMa/PzzEJANKuMT8VGuEzAthuWg+AP2Idvfv4Sw+C+Y/jdJ8+ 79CZ4Mi47I1bkpaWF/pMuyBGUvpfXHKca8W42zN9qmxPAYrp9NG8ns20nYGlWWHmBXg5 aGSHS1vic0sdelcuUF8DzlP1UVuUc0eZC06doyYFRXWCKj+nZExM3wTkVhkoWhS+wZCX kVvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=guZqN+mc; 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 k23si376261ejk.337.2021.01.12.19.15.33; Tue, 12 Jan 2021 19:15:57 -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=guZqN+mc; 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 S1729345AbhALWbp (ORCPT + 99 others); Tue, 12 Jan 2021 17:31:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394647AbhALWbc (ORCPT ); Tue, 12 Jan 2021 17:31:32 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1BC1C061575 for ; Tue, 12 Jan 2021 14:30:52 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id j12so34454ota.7 for ; Tue, 12 Jan 2021 14:30:52 -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=dF0yJHbbjBb5erCUCeH3GN84OQvrBthurVO49Uciku8=; b=guZqN+mctqBHsmD4I1QYDAt214jwEM9rS8OLOeLW+xtLapW6NBfmy6T6Qmer5EXYX5 bFU5yxZlS/4SQGnqmm+FYm/toyJAHTqC29K4CBVguL7xxAiV1g2zPhwKR3YDCK6N9fp2 rKqtJKywncWwhmwG5qEb8a3O5NnGn7iF4+5PXzfzosPAVNRB14v38jmsRBWPLLizQGWx U/Xl4Xcwc9ySRHWeO3tSyHdy/jk7JpYEns3iU9kn3d8Nd/r7v4S7L3sDjSy9+58NasJq 75II5u4p71BsRc0gZKoNzz4AHnbwpvcSYbo9zyURaWmTK5329nKuzDkgA+b4Km5Rh+HA 2G2A== 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=dF0yJHbbjBb5erCUCeH3GN84OQvrBthurVO49Uciku8=; b=fblM1sXyY7Y5buLQGbNqWCvmkcR3c4OyTAmNJ1NK9etxWAAwFedLSx+xp9bOQHAE1s 5rOggLVFt0ZbTGMea1/w2/sPQZQi8HDhEY2eyrlQG3QkIcj0kYTUXZuijUzo5xJMzIIQ jaqZYJLkczOUYb8JhXdpJc9/hYrbAX7az4EozKNu0q7PF9oLedh2YczumaogUe1GaOhJ 7qPAnFXpmE73fqwxngy0QorieCGQDquV1sPc9PfcVuacTBjGpIloRuq2Xc2cLgYKLW48 je+B8uXlIpjAQg/FqeRzOTv6c+ucP9u5cdf6IvlzAUFzIVoW2iqHEEy4shssRuH+l8TL Rpgg== X-Gm-Message-State: AOAM5310DVmD0RbEOh0I8ypjL53oeCpl3c7n+16b5qItk+Rkj4+X0Sbc Hg34RwIyQ2u5tCHw6q0VCV0ngnmaMVU9vvuuZB4= X-Received: by 2002:a9d:75d4:: with SMTP id c20mr1044535otl.311.1610490651899; Tue, 12 Jan 2021 14:30:51 -0800 (PST) MIME-Version: 1.0 References: <20210111191926.3688443-1-lee.jones@linaro.org> <20210111191926.3688443-28-lee.jones@linaro.org> In-Reply-To: <20210111191926.3688443-28-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 12 Jan 2021 17:30:40 -0500 Message-ID: Subject: Re: [PATCH 27/40] drm/amd/display/dc/dce110/dce110_compressor: Strip out unused function 'controller_id_to_index' 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:429:= 14: warning: no previous prototype for =E2=80=98controller_id_to_index=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: Lee Jones > 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 | 25 ------------------- > 1 file changed, 25 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 18b0a69b0b1e8..44564a4742b52 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c > +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c > @@ -425,31 +425,6 @@ void get_max_support_fbc_buffersize(unsigned int *ma= x_x, unsigned int *max_y) > */ > } > > - > -unsigned int controller_id_to_index(enum controller_id controller_id) > -{ > - unsigned int index =3D 0; > - > - switch (controller_id) { > - case CONTROLLER_ID_D0: > - index =3D 0; > - break; > - case CONTROLLER_ID_D1: > - index =3D 1; > - break; > - case CONTROLLER_ID_D2: > - index =3D 2; > - break; > - case CONTROLLER_ID_D3: > - index =3D 3; > - break; > - default: > - break; > - } > - return index; > -} > - > - > static const struct compressor_funcs dce110_compressor_funcs =3D { > .power_up_fbc =3D dce110_compressor_power_up_fbc, > .enable_fbc =3D dce110_compressor_enable_fbc, > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel