Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4185492pxu; Mon, 30 Nov 2020 21:00:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXY3FxKAPZkPqY5vg4Ob77cNRw4oY+HsbTqt/jrMd8xwL2TFqcXFHwCwfL/+aIgxEmZecT X-Received: by 2002:a17:906:17d0:: with SMTP id u16mr1293228eje.452.1606798832523; Mon, 30 Nov 2020 21:00:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606798832; cv=none; d=google.com; s=arc-20160816; b=s0k8E47r+4eJvWY9uO7kJ7X6Aq6tbnxU+mwSPQI7of7Y0UJNjQwtekXcWplmQiUsya QK7j8cS/gFqq0sSjXmavoRygjAqvtWm0xE4IpHLGuKfxazHbcEAQXWKQP/ly+23kwWcT m6nE8KzlvlrW22+Yn0IrNYOdtm5nSK1gfvs/2eFxqwxMDWpLvk9mVsz6Jvhn5oS8LfQm ciKrYIo0ZtBNiskVUxkx5ARK24E55JyzMVnSMsndLRjScB/fib6ublThWABb3elWqmsx oTzj5FHIQky1rTDdUW0N6IwIY5BJsNWmD2ebWbkcqEPZnEeDWw2v4jnMsRKb8wN7cGws VEYw== 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=+uMOErT0cr65Ou3LFaf1alFJAddt+nc1yJ4P5ZkXSgw=; b=SM1Hum5bFJ28w2RIweDaV1fOwtFylqF/7YEchyL+sh2v0ZjT891CsHAzEaeRfUdTqI zUf2YA9yh8aSfxeuG14XB88bBcmfwXo2m/gl9s4OHkoOU+epGJOOx1XBWWNZr8B9qOfi bD/5ciwa5igu7Y19Nv5SsPGI3k4vLmFx3T2jdEd0coZH19irrW90E2OvopERNhRVzwh2 8omiEsOHF5zXcztAGZ5+BU11Ugmbgh4991bLEzjrDiU74E1RQE4XG5NmL9097bI1boYt kjzyu+VIpjoewSqHlTFf3YydzSlEOVb8A0l84f489CtEwaergMBZcAvkS4YQuczhvdyb lW4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LMadV/9n"; 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 q23si268571eja.104.2020.11.30.21.00.10; Mon, 30 Nov 2020 21:00:32 -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="LMadV/9n"; 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 S2388666AbgK3Xas (ORCPT + 99 others); Mon, 30 Nov 2020 18:30:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388590AbgK3Xar (ORCPT ); Mon, 30 Nov 2020 18:30:47 -0500 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 696AEC0613D2 for ; Mon, 30 Nov 2020 15:30:07 -0800 (PST) Received: by mail-ot1-x344.google.com with SMTP id t18so4629555otk.2 for ; Mon, 30 Nov 2020 15:30: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=+uMOErT0cr65Ou3LFaf1alFJAddt+nc1yJ4P5ZkXSgw=; b=LMadV/9nvicO3vvuQxDXRrBC3owXn1KVMb0n/9FSUeUSXXxAFqgyrzU+op51wl1Vdi tuiuZrBC3sYtPAjhwQfYRmBxmfa+KjeI8DzNShbDtwD4Lh1Y9GtYXCX/3CQShqsMikpQ XyW0OvZjiPIo15Vjcwbh/xvdxlVarywtmfqN93pwMwUdq9eJO+I85tdt6yMUYcyI8mUi ezti7BgLs+TNquwGZblzt4NR6ryiipnvp8Q+2KnYDFOUN8ZoVvRjrCh5v8R2SWQW4zxz NczWkjyxN6sd7jx9Ub/1lp12yiX6NfpBDETw3Dlp4ac/Qv3v3hTV+uyhc5OBwf3m2Lp5 d+sQ== 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=+uMOErT0cr65Ou3LFaf1alFJAddt+nc1yJ4P5ZkXSgw=; b=q6Vf5EdL3Tr/GFJQaUUK5ycU3fnIg85tFnaorDuHenPf6v8v+BWHdsGCzfAZY0uRml /ejbWQyRpNH73MAXns5cISXv6kjtFErJeMa3zZDs5LkrF2/FWtRDccU6GIPIQ/GASKET 8oEYclzjUk+h6KvPds4YJSvHLpGcxWKsXvQlnsu9TS26foBgakve7hdba7ugb4aw6HLF b7lLKM/kUoVpRjrwYPc3g1ROW68tf3ORcuDOUwF8rMeY9SzXaJRryP6NHvbcfc9XAf5z PIRBF5Xm4NfGAfR+xfFFjWSKDTURrVUZZYsjJC+wvqU2JrT30YeLMkMkFVir/jg+VXXx VTcg== X-Gm-Message-State: AOAM533/nmaU2K3fag4H3eFYBXDR/tmaB6Spdc+qMrxPRpYgsRKPQK7B jimOUXV/WyBom8Ylyzf4wPls1RHCWWJP81rNCaY= X-Received: by 2002:a9d:4713:: with SMTP id a19mr19386387otf.132.1606779006892; Mon, 30 Nov 2020 15:30:06 -0800 (PST) MIME-Version: 1.0 References: <20201126134240.3214176-1-lee.jones@linaro.org> <20201126134240.3214176-11-lee.jones@linaro.org> In-Reply-To: <20201126134240.3214176-11-lee.jones@linaro.org> From: Alex Deucher Date: Mon, 30 Nov 2020 18:29:55 -0500 Message-ID: Subject: Re: [PATCH 10/40] drm/amd/pm/inc/pp_thermal: Mark 'SMU7Thermal{WithDelay}Policy' as __maybe_unused To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , Evan Quan , =?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: > > They are used by some source files which include pp_thermal.h, but not al= l. > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:28:41: warning: =E2=80= =98SMU7ThermalWithDelayPolicy=E2=80=99 defined but not used [-Wunused-const= -variable=3D] > drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:28:41: warning: =E2=80= =98SMU7ThermalWithDelayPolicy=E2=80=99 defined but not used [-Wunused-const= -variable=3D] > drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: =E2=80= =98SMU7ThermalPolicy=E2=80=99 defined but not used [-Wunused-const-variable= =3D] > drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: =E2=80= =98SMU7ThermalPolicy=E2=80=99 defined but not used [-Wunused-const-variable= =3D] > drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_thermal.h:34:41: warning: =E2=80= =98SMU7ThermalPolicy=E2=80=99 defined but not used [-Wunused-const-variable= =3D] > > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Evan Quan > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/pm/inc/pp_thermal.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/inc/pp_thermal.h b/drivers/gpu/drm/am= d/pm/inc/pp_thermal.h > index 3e30768f9e1cc..f7c41185097e4 100644 > --- a/drivers/gpu/drm/amd/pm/inc/pp_thermal.h > +++ b/drivers/gpu/drm/amd/pm/inc/pp_thermal.h > @@ -25,13 +25,13 @@ > > #include "power_state.h" > > -static const struct PP_TemperatureRange SMU7ThermalWithDelayPolicy[] =3D > +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalWithDe= layPolicy[] =3D > { > {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 9= 9000}, > { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000,= 120000}, > }; > > -static const struct PP_TemperatureRange SMU7ThermalPolicy[] =3D > +static const struct PP_TemperatureRange __maybe_unused SMU7ThermalPolicy= [] =3D > { > {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 9= 9000}, > { 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000,= 120000}, > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel