Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp437481pxb; Thu, 14 Jan 2021 09:24:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmkhDxqGzVKQkeikTykNaEAYnQtUsnrGqFrkFQklsNWFOhhRVnkm2cwmC+TjNAyDGFWfrM X-Received: by 2002:a05:6402:318f:: with SMTP id di15mr6554455edb.237.1610645048299; Thu, 14 Jan 2021 09:24:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610645048; cv=none; d=google.com; s=arc-20160816; b=rzgYS4Nb7rtL9AW0i10noC3NuaDA3xZ8Dd1BMImjELetilCuKI5CIIDihqASRYniz3 BCd0Gut+cXi4Ji2krFsQBpGf8SfpbGq/hmSzVIS5sT1GYqkFJgm38CyXPb4dOnXFucHX EI17g8AWijLxMWK6tOUubXNlquVhkWiGe3LHvu7EVnvc1CFwIrNEaSM8ojGYjYIMx/YG vVwgHD9myYqTsU7TsGmudA/Z2zY3sjvUbPZGl57RH/+hBHgdgHuR2q+ocZEVCRBeBeVa yRAViQOSueFGt0BFvNWbBaYERCLTBUS5gLTWIGqAx1ayeaT7ooPlV7JA2ZPwoxqTKp8T 2EiA== 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=0potRu9mijL2B6HQx5jkNelrrnJJVWm3UpHe2HZ0UkI=; b=lk2l9Vq6Nte/1HOt8CfNQAqt+aV3T7L9rwfBzk722NTKOGYJkme+4htcU+65aX+BNu SBkMN/jfJTJ8M406jR7zkbHc31fJbV99RbAEcAiCvl60GuI0Vi0nQ/THFHx/2JuI41o6 V0TxEHfbK6aq3ZbSMo5zvpkG83UfDnSL+0/KeEwCjxPIej3ns0rnTq/4JQzmZn4ifT3Y 9mNYGGQv4Gh0KSsLrjeEpZvu5EhxojS8HEGVTVk2BEFQ/iYz19T95+3/KuPWXeNA8FPA K0uh+TTzqQevBzSpsgGopIdhqhtsPXA/i76RaYqo9IeFkHJ/1R4FauT2ZKwhGJ7xXFm3 cEkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dkkmdGU5; 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 33si1763785edq.375.2021.01.14.09.23.43; Thu, 14 Jan 2021 09:24:08 -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=dkkmdGU5; 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 S1726442AbhANRVx (ORCPT + 99 others); Thu, 14 Jan 2021 12:21:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbhANRVw (ORCPT ); Thu, 14 Jan 2021 12:21:52 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2DBAC061575 for ; Thu, 14 Jan 2021 09:21:11 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id f132so6626822oib.12 for ; Thu, 14 Jan 2021 09:21:11 -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=0potRu9mijL2B6HQx5jkNelrrnJJVWm3UpHe2HZ0UkI=; b=dkkmdGU5SlZ0ua3SCcGU3Bpw8R1lwPTH0z7h9tR3dKOXN5O2GusOiBM8f7ZQX8w/DX V8qYgr75uDn1fomgq80iLg9hjx7GVbiFxxR5Y+/o5ojzkgqHwSV/4YOnG135poq9Heft WXcD7NkHAxhXI2TO7+bQ7DO+HcyZ1LbcTzChM2XREx65/QW2ZIsMjQOyiuBrYPiIBNjV OxRs8w7Sr3gxgXxSGLg5+lXEf4pYnG/QXxtUItf2sfst4lyZD8DtrEHXJcge6Ltp18Bw kQG7G2AEaYQatprXSeT2LxELLyL07gKUZjo22q2J+QWpLfXCIybbK4dkGu1YgPQs/q6n 7C5g== 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=0potRu9mijL2B6HQx5jkNelrrnJJVWm3UpHe2HZ0UkI=; b=RJgfPMkCAjmyxqt1Z5yqbtGavDNKLEOcLCXCezkZmpDPzRyUxxyjxpQtx7aJyNEx1Q rsLYzy0Chkj0Ik/axfXGLRJyQOBFIGib7ZNHiiJ44IgOLe8zayaVcSaCQjkMheB+hZM2 +bR041la2n5Mu78rTe6/3XnCMGymPLlXE5M0V0qkb5rdYlW62H0Fxw1+MYGM9SpFuFae RUCD0u89CrJAlS3tO3wROGPjckM+0Lj/SQkKkeq/x79+YgZesqDExohpdZEP5h81TPHW CtLFSBoo5PjkCjhzJBzb7zyiKZod9GVjlD0ZbDePSL85FieOTCudy0GA92cxvi777Tre 5LFg== X-Gm-Message-State: AOAM5338Zy4z4PQjzVQ3weNue3ZiXdev666ndoYn+zdbXEUGZRTsMGA+ SYXV0k0RJ0Emkz7oDvYLJ3b+r2uZe3QeafAhpXI= X-Received: by 2002:a54:4083:: with SMTP id i3mr3148051oii.120.1610644871430; Thu, 14 Jan 2021 09:21:11 -0800 (PST) MIME-Version: 1.0 References: <20210113080752.1003793-1-lee.jones@linaro.org> <20210113080752.1003793-20-lee.jones@linaro.org> In-Reply-To: <20210113080752.1003793-20-lee.jones@linaro.org> From: Alex Deucher Date: Thu, 14 Jan 2021 12:21:00 -0500 Message-ID: Subject: Re: [PATCH 19/30] drm/amd/display/dc/core/dc_link_dp: Mark 'result_write_min_hblank' 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 Wed, Jan 13, 2021 at 3:08 AM Lee Jones wrote: > > It looks like it could be used inside the DC_TRACE_LEVEL_MESSAGE() macro. > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c: In function = =E2=80=98dpcd_set_source_specific_data=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4403:18: warn= ing: variable =E2=80=98result_write_min_hblank=E2=80=99 set but not used [-= Wunused-but-set-variable] > > 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/core/dc_link_dp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/g= pu/drm/amd/display/dc/core/dc_link_dp.c > index 3c33b8fe218e5..b9e5e0eee3d24 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c > @@ -4400,7 +4400,7 @@ void dp_set_fec_enable(struct dc_link *link, bool e= nable) > void dpcd_set_source_specific_data(struct dc_link *link) > { > if (!link->dc->vendor_signature.is_valid) { > - enum dc_status result_write_min_hblank =3D DC_NOT_SUPPORT= ED; > + enum dc_status __maybe_unused result_write_min_hblank =3D= DC_NOT_SUPPORTED; > struct dpcd_amd_signature amd_signature; > amd_signature.AMD_IEEE_TxSignature_byte1 =3D 0x0; > amd_signature.AMD_IEEE_TxSignature_byte2 =3D 0x0; > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel