From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB275C63777 for ; Tue, 1 Dec 2020 00:01:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77A8C207F7 for ; Tue, 1 Dec 2020 00:01:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OccpJsDX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730633AbgLAABk (ORCPT ); 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-Google-Smtp-Source: ABdhPJx5EW3BogA2TAlZ64hzqIRBxOKmP654oJ/bpQBGF7Yyxc8Qa/aoJ30NVr2vA++NbUaH/yizaWY2sbRPKMRxuHs= 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