Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4001672pxu; Mon, 30 Nov 2020 15:21:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSTZGMJlS0u3A4mTSNZeBPZutMKWpp9MUb6z5/QwMMgnmuClzkAFlxMJNCT+3pNhRJz7nO X-Received: by 2002:aa7:c60c:: with SMTP id h12mr63683edq.145.1606778474063; Mon, 30 Nov 2020 15:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606778474; cv=none; d=google.com; s=arc-20160816; b=NGRE81x9zelDF6HYqRuqwz8naB5OeU1cyp8rjn5Cyt5ucQ/GdZgPrs2BzwNfUuPTdH bFRlajwUiiyK+7t1j3Q015v7P4JIqfE7/4Yag+dMYiuh9nfzaJJX4/neG1gd1ICqqTPy 58cLFsW8gzJKo8IO5ICZ+IkG0AK051XNNC4trwjB2yCnyPdgx6Ei844qG4oKfZxWA0jX RkD0huHzGayYNZkd3OA0ZMy2yuEwlC6RZBKvshGwcX3yD3KR+FikbwXkEfuNTWGdRGma HAO/zDRS9sJDeiOVz7nI6qqvMlWA5Mc0ocBfJbUfMhiv6OkMRQdZ7y0sDuYu8gh3oCN6 y8eA== 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=WoziKHC+v4Z3OAENXM/ouuGFrIDPeNU+vHY9PKFX1EM=; b=rTIjjhZaM1ONUFqs4/n1uQEge99Aa+Y7ckdE4302stxi+GTTGBr55LahIy8WfqdLbY n6/u/Uh0j2+0dHqcANIqERSgjgwhiPTvJ3qiO3wPi6CUXkbaNL/L61+qHichUsnA1T/B vis3Tl4P+h5KbpXtqxJL2G5T8sw+iErodHM/gr2sNX+qLa7sY8kknf5RUhPO6HCQBGmS 8cqqTCb6z890ug/KdF4DXMX3qJ3R3SfQr6HmS0LdGOKvCDVRE2zlHtopnLHY06WmfPg9 IV0T234Dkh5HDmMioHlDoLvVh4+ZysHCnfM5g9RDg7bwWOUmTDLZSt3HCPqQJyUjr1Nu 7TQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pmy0R54X; 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 c1si11923245edx.275.2020.11.30.15.20.51; Mon, 30 Nov 2020 15:21:14 -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=Pmy0R54X; 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 S1727692AbgK3XQ5 (ORCPT + 99 others); Mon, 30 Nov 2020 18:16:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726737AbgK3XQ5 (ORCPT ); Mon, 30 Nov 2020 18:16:57 -0500 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61EA5C0613CF for ; Mon, 30 Nov 2020 15:16:17 -0800 (PST) Received: by mail-ot1-x342.google.com with SMTP id n12so13080573otk.0 for ; Mon, 30 Nov 2020 15:16:17 -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=WoziKHC+v4Z3OAENXM/ouuGFrIDPeNU+vHY9PKFX1EM=; b=Pmy0R54X8eY3knO6XtefsNf8EC9w4xiJxLjtgN5Tp6Vhq/RY8OyUihEHnHGfSTxzqX JPqwtrF2ZdRDapeZMAiWyQ2Dysy9uI1WoxNHoGszY5iXvKvUOx9GQOWAjMUpo6IITdBN ynHDBk2ntelaAUmkczLDpSO1I/niJf8Ceg1taGPQ/xhpMZisbzpqjHKkZ2zHilkTH9iR 9dtmLZfbWbJvFDVkHnBwmxkvr/xzSLiyMrzAPUpvqBv47gNYJyyhy2eJYrLkwhO8mEjA lLQeoC5TWcxbRPXziaOI8q63Omvxx0xhgDyJHnYjThuDwMFby1GNLfD+ZCElOvyeUXKT qskw== 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=WoziKHC+v4Z3OAENXM/ouuGFrIDPeNU+vHY9PKFX1EM=; b=CUh0XcxWsT1gW2LgWto1P2UYKAs6DZl08IXkhK7baJiZiXYAKH0I1SwbvcE7vpWSgk jCwh19j4/CwxfjsesoVzqyBHRET46mltE5I9r8elahDRup+Mk5qVtPGCNZWfpTbUOFLz fYJnuBTkHvI37trs/wFAjZPhk6QAt7OvKzk/i/yfJhM2iGeSdxxRJRquwfFAZPv97xTd X1R/Ggj0FatOLvjR6YSSazniUOq/BJ5mORTkTdGzhu/Vi5LIlFBEkKb1GFQYx14Z+9Bf T51+yZoM8Z6is5/QdJWXnG0XNVAsNKpQUT9RMjCR7+VhkY0FoN1YyWly4Nz4rDNnaQuN QN0A== X-Gm-Message-State: AOAM531hDVS2cLmdeW2uDZNAg3abGeI7zifjaTCpMr9vv5QOSrWinq26 gMi/qI002yXWIvMci0lFMAcaCSge2Ds4K8I7Q2c= X-Received: by 2002:a9d:4713:: with SMTP id a19mr19346501otf.132.1606778176787; Mon, 30 Nov 2020 15:16:16 -0800 (PST) MIME-Version: 1.0 References: <20201126134240.3214176-1-lee.jones@linaro.org> <20201126134240.3214176-5-lee.jones@linaro.org> In-Reply-To: <20201126134240.3214176-5-lee.jones@linaro.org> From: Alex Deucher Date: Mon, 30 Nov 2020 18:16:05 -0500 Message-ID: Subject: Re: [PATCH 04/40] drm/amd/pm/powerplay/smumgr/iceland_smumgr: Make function called by reference static To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , Huang Rui , 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: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2085:= 5: warning: no previous prototype for =E2=80=98iceland_thermal_setup_fan_ta= ble=E2=80=99 [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c: In f= unction =E2=80=98iceland_thermal_setup_fan_table=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/iceland_smumgr.c:2093:= 6: warning: variable =E2=80=98res=E2=80=99 set but not used [-Wunused-but-s= et-variable] > > Cc: Evan Quan > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Huang Rui > 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/powerplay/smumgr/iceland_smumgr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c b/d= rivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c > index 431ad2fd38df1..6a0f581de999b 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c > @@ -2082,7 +2082,7 @@ static int iceland_init_smc_table(struct pp_hwmgr *= hwmgr) > return 0; > } > > -int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) > +static int iceland_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) > { > struct smu7_smumgr *smu7_data =3D (struct smu7_smumgr *)(hwmgr->s= mu_backend); > SMU71_Discrete_FanTable fan_table =3D { FDO_MODE_HARDWARE }; > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel