Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp612919pxb; Fri, 8 Jan 2021 13:21:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlQJOs6mJ+Qcxpo2+W7CP/GXukoBUr7NUAsJOnngvN+OcJ7Oyc4CeMKh7eveM3+lWebF6c X-Received: by 2002:a17:906:2e16:: with SMTP id n22mr3983413eji.477.1610140894792; Fri, 08 Jan 2021 13:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610140894; cv=none; d=google.com; s=arc-20160816; b=jORIbHhIEUd6bsKuXZjqifl47RD/elgmIG8oUSDQ4Q1AjjRXptAAehHL8LRnXO8Gna /hx9aoJdfhlcuqQk0fuPzUXHAdJl3kEA+eFHq9XKRp7gnhoYeHKUthDwT7XbNIiuDtJX slw+wUiTRHvc/3BLEMN0C1vYwPy8O5Suy13XizrVFYCwcYn7KEd8/VP/cEDTPgN0EQ7C ZCv4sZIfAyuxE9HaZY+dwyhjZr1axXoLWF583uO1vzM1lFR+eVGTT6Ar0GO47vTPmTwq ioWfQaiz+CjIsZvObnfnVFi1Uu8z+OrUgrWQGDU9tO9nNablxczenSZ5FBpC2Y1rZQFI nDzA== 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=+BVMFNqO9VtQw50JkrleUaGJ0i7fU8M+bV3fNxrSKxc=; b=Bd504Yk+oM2AseeD2tZshoADtfzGpnOQ9nDeKHNr6cOZsAG8o7XW2ktCqXwsRjyPtC 5gsgro3KwEDmC3WKS9cxm9wWC/vjWuPl1rY6fOSeAC2TBo30Fr6+YmeADnJ9y7vuEqJ4 pMIOfh4EyumbbA2oDD8Ik05h5KRiJGgCr37rIypucXTAYcgb/HpVHxra98vewPWPQU8R 9UQHHGjhhgo/1yswKw4PXzzK3ne5SC8C2i9nbzeV2LWsygWNk0XjDBOdU9AkXUaqVVxx MkIvU4A1KqV9RdVJizckgZPhu3ee/fUp+lAOtmHSN7MQ850Fbz6oZu/iFq+1dF/f60Ma r1gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pLgTcndf; 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 g3si3871545ejf.612.2021.01.08.13.21.11; Fri, 08 Jan 2021 13:21:34 -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=pLgTcndf; 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 S1729753AbhAHVTu (ORCPT + 99 others); Fri, 8 Jan 2021 16:19:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727845AbhAHVTr (ORCPT ); Fri, 8 Jan 2021 16:19:47 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97978C061757 for ; Fri, 8 Jan 2021 13:19:07 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id a109so11082539otc.1 for ; Fri, 08 Jan 2021 13:19:07 -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=+BVMFNqO9VtQw50JkrleUaGJ0i7fU8M+bV3fNxrSKxc=; b=pLgTcndfV6cW6spCSGmjB9Fb3TfBg6Tmw3S+ubIj/B1HgTeqyjz5qA9/Z7BpIp2tVT AIAdfrenkZLlqi0vENVzKN5z6sRCG/HRIxDlE7rXaBHDMJ36kgnddELtWGMAWeX+vZVE hG47TowHgJIpYX6BIS+tu8ABMiCtX3NfE+4x2yCa2ADEX5cIBZN4BPcu+oLBeXmVBk2I O4EZVDZdWPKEtDWDquMvP9o7hq9V4ooPyqjY+vttyNwgIS2+V3ZqjNC4mqBtuDuyhFW+ xK7g9eBKmIbWjVWdezeRFWB73Rm+B3xjuqs97WTfGUFhIdphaq81fYQ+YLGkggsDVhJq JEWQ== 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=+BVMFNqO9VtQw50JkrleUaGJ0i7fU8M+bV3fNxrSKxc=; b=JRfzeEHmcK5yolaZt8vTfoYgLUMk0bJ+1CA/5SCqv67UNOzzElfMtRUgkhzrG7ADZt miOQQmR1vjpqmxuXFJtEAjMncd9N10LRBrxSRb4IDobD8S/I1cTAATCD3RW9Gbaq14Sg pA6gwLD8kqG6yh1x9t9OoZuWzH8IrUEqzc4fkeqPZQMdUgYu3IC6yGAEJb1AamBlEGdm t4BigbWeXM12/m5g7rRuyQ82WT+tUYnhOUMRz+DTTwxm9JTkJY/QlLfkSeZvuYNKTPEo Dnjc27t8M37dJn5oD9TjovJdcUx+cGphN6Sn/iu+2NSaNk0k+KonKPoHQT2DxLl/VfNg ckhw== X-Gm-Message-State: AOAM533jRKJr8IIETInUicXaPOyS3yYuMpCxOjddsQiUz9Xq5hz/Nw2H PY0Us18GBzRyqXBruch3Ktw+WS1jAXOqeMpZfbRB2fUw X-Received: by 2002:a9d:75d4:: with SMTP id c20mr3901460otl.311.1610140747098; Fri, 08 Jan 2021 13:19:07 -0800 (PST) MIME-Version: 1.0 References: <20210108201457.3078600-1-lee.jones@linaro.org> <20210108201457.3078600-31-lee.jones@linaro.org> In-Reply-To: <20210108201457.3078600-31-lee.jones@linaro.org> From: Alex Deucher Date: Fri, 8 Jan 2021 16:18:56 -0500 Message-ID: Subject: Re: [PATCH 30/40] drm/amd/display/dc/dce/dce_dmcu: Move 'abm_gain_stepsize' to only source file it's used in To: Lee Jones Cc: Leo Li , Mauro Rossi , 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 Fri, Jan 8, 2021 at 3:15 PM Lee Jones wrote: > > And only declare it if it's to be used. > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:= =E2=80=98abm_gain_stepsize=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:= =E2=80=98abm_gain_stepsize=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:= =E2=80=98abm_gain_stepsize=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:= =E2=80=98abm_gain_stepsize=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:= =E2=80=98abm_gain_stepsize=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:= =E2=80=98abm_gain_stepsize=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning:= =E2=80=98abm_gain_stepsize=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Mauro Rossi > 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/dce/dce_dmcu.c | 4 ++++ > drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h | 2 -- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c b/drivers/gpu/= drm/amd/display/dc/dce/dce_dmcu.c > index fa2b47d41ee2f..30264fc151a2b 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c > @@ -65,6 +65,10 @@ > //Register access policy version > #define mmMP0_SMN_C2PMSG_91 0x1609B > > +#if defined(CONFIG_DRM_AMD_DC_DCN) > +static const uint32_t abm_gain_stepsize =3D 0x0060; > +#endif > + > static bool dce_dmcu_init(struct dmcu *dmcu) > { > // Do nothing > diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h b/drivers/gpu/= drm/amd/display/dc/dce/dce_dmcu.h > index 93e7f34d4775e..cefb7f5bf42cc 100644 > --- a/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h > +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h > @@ -317,6 +317,4 @@ struct dmcu *dcn21_dmcu_create( > > void dce_dmcu_destroy(struct dmcu **dmcu); > > -static const uint32_t abm_gain_stepsize =3D 0x0060; > - > #endif /* _DCE_ABM_H_ */ > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel