Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4125226pxu; Mon, 30 Nov 2020 18:42:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5H8cZcUqqBY5gze1XiQPnNrJXldkhTODh3f8mGE81tSppq/7MkPWbre7DVhrXymgo+T3W X-Received: by 2002:a17:906:34ca:: with SMTP id h10mr912814ejb.417.1606790568095; Mon, 30 Nov 2020 18:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606790568; cv=none; d=google.com; s=arc-20160816; b=Z5VEyDvvg6LBKEkIUy8/L+eeKzw5wdOLYsPXzWQAG55vI2mA5o8hzj+QBEjLcxmsyP 0ucMWF0NYLQKAlf23+emYEdFh0lGX19ElJfS5Iuj6nGXmW30/SiI5A363b0MvVLZwNxq 2VvLrpNj+t9gEBRmAurmXYcnLxaI1enL2LRNwK1jYddI1khlVjt7LgswlZ1BY0AfLGEB G7Oan2tcVjiAV2fXhjPVxQHdjBCXw01hlcw93Ehhu7/6/q3MMoX2njH2wMjE0c7IiOUR FxqVHkCCNaYarWmuFcMUCNiUzx80SrnYStDDwubRT1OGwhQXMHrDoeRYjAXFhSRDl/5Q vAng== 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=vwAi3j5hKUR5I3v6aaEnj4yZwa+jhIFvRIVmx73mGr4=; b=zKZ5xGbcfHzGpGRwUdvruqy8IMQ44W22Pb/yq/pLH4EkafjXqw0o0Kmb5RBb3qL3b1 r6c0MjfGel5yjetzMstp3Wb8wR+xrntzQAmcVShRm5gBh0q45yFpN2Np67T22ZlhmlD9 XpBs8TeEuZDipvSkjXWGb0S5IjTcMrdYiAgwPw6YHTAWCHauGeOFwluJAuore4Ma7kEH nvu5yIZXE7topI6HUrp4ga375VDTyPn5JVh1jP/JLD0zwgdesmCbw0NFFCLOyyyGVJ81 sTKcfhkgundl/tHOupLxwcw0I98giqIu65Cg2iPiHLWXx5DBWofr7A8XosaJIrwU+e9E 8/FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OccpJsDX; 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 zh12si99756ejb.148.2020.11.30.18.42.25; Mon, 30 Nov 2020 18:42: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=OccpJsDX; 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 S1730614AbgLAABk (ORCPT + 99 others); Mon, 30 Nov 2020 19:01:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727125AbgLAABk (ORCPT ); Mon, 30 Nov 2020 19:01:40 -0500 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEDE1C0613CF for ; Mon, 30 Nov 2020 16:00:59 -0800 (PST) Received: by mail-oi1-x244.google.com with SMTP id o25so16261458oie.5 for ; Mon, 30 Nov 2020 16:00: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=vwAi3j5hKUR5I3v6aaEnj4yZwa+jhIFvRIVmx73mGr4=; b=OccpJsDXy6hPItda+235fnSn3RIRuNx9jcOkicT3aqwbLaSal8DSKc8M2vcptYVgCF LTFJv5PqxAH9vQDm094SUFW1SAXEYcKoW2Z3tm3KjcoBon8LFhGAUQEj/iH94aR87SkU irGBc0VvtBPN3DGph717/v2k3wX5I3qWlT7YOsFG5x0kv8xRYVmXuU7qn2P7chMDDr+w ER1dwbim9HiWDTd+F6KiLbsoKmdoRfg5e+i6Kuzekxm5q3SGigkz0Gkvm3r/YCMdFgI/ gbwAyHrRcaYoPjDLW/8W9MydFstmDKcBez1zQXXbyYfv5Uo1x/bVxqP+V+rThVwYcjFY d+CA== 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=vwAi3j5hKUR5I3v6aaEnj4yZwa+jhIFvRIVmx73mGr4=; b=oTE1bflYYjI2mtNRefZQwF4TqMUkF5NCVu0QRKfrmFAcYaTJV4y/7p2tQCsfTO+BD5 LO67WyI1HG+yEVpmKyCHOoFyhuoofo50uPagRUHthMXAV+9xpXUXUeAPOwfGwmdvmlvM 8zC6yrU2rmD0+kh3wgaYrodjxEvjcAIgCJfilxOKETvaLeeSGrfPmJM/S/ldWAbqN+k3 PZTx9otV6SCMGRcgJTw0shO6XLu7KwXFUteklIPv66sABIUPCYHtmeCpXDTxqBiVvPZO 2wbsLyh8+F/lGwsRECLdjZAYIqrLtvh4VgiI3VUV1WtjFd9EnSxxg9p5rf88uyjuUf23 1FGQ== X-Gm-Message-State: AOAM533hojCst09ShyDenDDHHS+H8dPdvDrM21/qHPUoYavhMg4vdD/Z Ap64VRwSavk3PnbrHeqqpY7HGX7qkuemrceNkNE= X-Received: by 2002:a54:4608:: with SMTP id p8mr28704oip.5.1606780859215; Mon, 30 Nov 2020 16:00:59 -0800 (PST) MIME-Version: 1.0 References: <20201126134240.3214176-1-lee.jones@linaro.org> <20201126134240.3214176-34-lee.jones@linaro.org> In-Reply-To: <20201126134240.3214176-34-lee.jones@linaro.org> From: Alex Deucher Date: Mon, 30 Nov 2020 19:00:47 -0500 Message-ID: Subject: Re: [PATCH 33/40] drm/amd/display/dc/inc/hw/dpp: Mark 'dpp_input_csc_matrix' as __maybe_unused 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 Thu, Nov 26, 2020 at 8:43 AM Lee Jones wrote: > > 'dpp_input_csc_matrix' is used by some, but not all source files which > include dpp.h. > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: = =E2=80=98dpp_input_csc_matrix=E2=80=99 defined but not used [-Wunused-const= -variable=3D] > > NB: Snipped lots of these for brevity > > 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 > --- > drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h b/drivers/gpu/dr= m/amd/display/dc/inc/hw/dpp.h > index 6751186f6f904..ddbe4bb52724a 100644 > --- a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h > +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h > @@ -47,7 +47,7 @@ struct dpp_input_csc_matrix { > uint16_t regval[12]; > }; > > -static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] =3D { > +static const struct dpp_input_csc_matrix __maybe_unused dpp_input_csc_ma= trix[] =3D { > {COLOR_SPACE_SRGB, > {0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} }, > {COLOR_SPACE_SRGB_LIMITED, > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel