Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp611352pxb; Fri, 8 Jan 2021 13:18:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJwEHV8qxKr/sH7MGCwA/+lQ37/b5HE91L0nDOnw4uQuaVyYOQbrhsN/TqofiaZDP2OXyP X-Received: by 2002:a17:906:58f:: with SMTP id 15mr3777928ejn.67.1610140703307; Fri, 08 Jan 2021 13:18:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610140703; cv=none; d=google.com; s=arc-20160816; b=AXOW6Gq3RQ7tS0BQUI+Q5tlv7rOLGHSA4uprmG+jOaMpmOdokAEVbmpYt6Z4ReQhV+ tFzBioHx8549PEP1rC+OHu6de47fwoUYU09k1+T6yu53YyQoeewLXWY8fwmioMkWFw7n rl1M3+cPM9JtmDyXRuCTaYtfBb4ItCkxK2HevfSDrgjj/9+QLYOams0xc2f2XMfCtSQM 27IZjWJTZT7bwA/X2FrC/vt3wcmx2B/qfS9vqads+6U9cXmBVLQJhSokJtMQrnjmBp74 fDKLsKAOtJ57HoRT7IGJVVLNlk4yi3X5Vsr+oa82MyrzIkoHiWg1kRLwySic51RcUhF0 NCYg== 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=RdHU0V+l/5mQjoD9Rkq0FokpPahQQiZHJdwaPeqIFOw=; b=WfhsZ2BkiUGs3M/WBqQAw0RIIwV/KgchoRxA/f9ogn2laUupEsBIMShxriPmbVxZ61 yJ0Tck6WrzCx4rlVZNsPbK6Rn0LArSyw+G7QEDJBXpq3iDURR6VS85ChVyu5S7TrM96h kaSDhsSkXh5YuB6WK+KmDoC0+7FuXjbLnrqXU2PAuByHHX+d43FPaTOslV/f1FISUuYf 05EECJSqd7oWB6ghM/GXwF2Rn8FLQL2tmKtyyf2qR0pfbDQ21+TwESGb5YId6lEfaubO u3f+ABVJtCjsUVmLT1jLH1WjKHZ+V3iaQTcq98B66z+hxXeMsAN0QC4AlNJA5KFSSXd4 7BaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="N/9q3tnX"; 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 q4si4165249edn.338.2021.01.08.13.17.59; Fri, 08 Jan 2021 13:18:23 -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="N/9q3tnX"; 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 S1729482AbhAHVQZ (ORCPT + 99 others); Fri, 8 Jan 2021 16:16:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727845AbhAHVQZ (ORCPT ); Fri, 8 Jan 2021 16:16:25 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBC2BC061574 for ; Fri, 8 Jan 2021 13:15:44 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id b24so11111311otj.0 for ; Fri, 08 Jan 2021 13:15:44 -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=RdHU0V+l/5mQjoD9Rkq0FokpPahQQiZHJdwaPeqIFOw=; b=N/9q3tnXNvoXj9NNSpNsp/WqUeWVnlXZmfdK5XKDodktfsDUrcKtMMoGr3+ipiy+kJ LSIfJyZzXDXtETPGIqnqGxqqHpxB9795RthL27QqsKOxtHlej07Jxk+VIk02x2vd5hLJ te5c3x9ZnSsi4p3D4P/7sBKCCs2vt2qB8JSpQiaJa0FoKFMLS+4/Hyla3wFQ6nKjBGuc oWwf64peHkELSW1QZsJRj+JSDPUuNtgOdYtDy1whEUtvKRbxmLJTLlY5EfEugO4y/awo 8RjDEf2IScxGiMTzkQXE4agUt3YLLGoMaCW9jB+VtO5/0827gEWrmQQimdkjHRu1iwBZ sMeg== 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=RdHU0V+l/5mQjoD9Rkq0FokpPahQQiZHJdwaPeqIFOw=; b=JQ0co9Qm2Z2jowuE629ECXtsH/ogI47xy17RHKGXe/dCbPol1kNxwfvGGafPdaW0/3 wY+27PvORB2oRoDrYuFYUjpDHtH+4fuQ5A7D3ZnYWb+iyGJ6RIIt63CG1aajkqpq5Tge 69/KeCWComIQEgNnOg39YUeY2G3v6PLq0hY0+2sOM5MR0672gwOPEZg8jxbvOoWbwSjn sdXFFwMmqlRf5wk9cWf/rQjWA30R4r2uHb5+Ii744kxlGehwMCQZQaqA9k1+Qqa4hhE1 7cJfPNJNYvEa8MRDskFbgWoCnqQenqFlDgSxu/cDy/e5Rg3wbzx7nqzPStuXjY1YgMJT kG8A== X-Gm-Message-State: AOAM531BkIsRyrDQho2x3/pRwdZ+d8Z695OoatCO6bXqUJUrNd33az47 Oodlwp0Pn8+sHMtheGALXvstCa0waOWdI/+AZUc= X-Received: by 2002:a05:6830:1b7b:: with SMTP id d27mr4083848ote.132.1610140544373; Fri, 08 Jan 2021 13:15:44 -0800 (PST) MIME-Version: 1.0 References: <20210108201457.3078600-1-lee.jones@linaro.org> <20210108201457.3078600-28-lee.jones@linaro.org> In-Reply-To: <20210108201457.3078600-28-lee.jones@linaro.org> From: Alex Deucher Date: Fri, 8 Jan 2021 16:15:33 -0500 Message-ID: Subject: Re: [PATCH 27/40] drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix worthy function headers, demote barely documented one 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 Fri, Jan 8, 2021 at 3:15 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1556: wa= rning: Function parameter or member 'acg_freq' not described in 'vega10_pop= ulate_single_gfx_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: wa= rning: Function parameter or member 'current_soc_did' not described in 'veg= a10_populate_single_soc_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: wa= rning: Function parameter or member 'current_vol_index' not described in 'v= ega10_populate_single_soc_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: wa= rning: Excess function parameter 'current_socclk_level' description in 'veg= a10_populate_single_soc_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: wa= rning: Function parameter or member 'current_mem_vid' not described in 'veg= a10_populate_single_memory_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: wa= rning: Function parameter or member 'current_memclk_level' not described in= 'vega10_populate_single_memory_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: wa= rning: Function parameter or member 'current_mem_soc_vind' not described in= 'vega10_populate_single_memory_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2871: wa= rning: Function parameter or member 'bitmap' not described in 'vega10_start= _dpm' > > Cc: Evan Quan > 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/pm/powerplay/hwmgr/vega10_hwmgr.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/driv= ers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c > index da470462d6e2c..29c99642d22d4 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c > @@ -1549,6 +1549,7 @@ static int vega10_populate_smc_link_levels(struct p= p_hwmgr *hwmgr) > * @hwmgr: the address of the hardware manager > * @gfx_clock: the GFX clock to use to populate the structure. > * @current_gfxclk_level: location in PPTable for the SMC GFXCLK struct= ure. > + * @acg_freq: ACG frequenty to return (MHz) > */ > static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr, > uint32_t gfx_clock, PllSetting_t *current_gfxclk_level, > @@ -1612,7 +1613,8 @@ static int vega10_populate_single_gfx_level(struct = pp_hwmgr *hwmgr, > * > * @hwmgr: the address of the hardware manager. > * @soc_clock: the SOC clock to use to populate the structure. > - * @current_socclk_level: location in PPTable for the SMC SOCCLK structu= re. > + * @current_soc_did: DFS divider to pass back to caller > + * @current_vol_index: index of current VDD to pass back to caller > * return: 0 on success > */ > static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr, > @@ -1744,7 +1746,7 @@ static void vega10_populate_vddc_soc_levels(struct = pp_hwmgr *hwmgr) > } > } > > -/** > +/* > * Populates single SMC GFXCLK structure using the provided clock. > * > * @hwmgr: the address of the hardware manager. > @@ -2863,8 +2865,8 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr, = uint32_t bitmap) > /** > * Tell SMC to enabled the supported DPMs. > * > - * @hwmgr: the address of the powerplay hardware manager. > - * @bitmap bitmap for the features to enabled. > + * @hwmgr: the address of the powerplay hardware manager. > + * @bitmap: bitmap for the features to enabled. > * return: 0 on at least one DPM is successfully enabled. > */ > static int vega10_start_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap) > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel