Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2827662pxj; Mon, 14 Jun 2021 08:04:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS2/AN1sY2lB283ERTvDPOuCwTh/19UeBy1gQoESgB1koL3Iu00e38PLZdFyGZ5TOuhOka X-Received: by 2002:a50:b2c5:: with SMTP id p63mr3864242edd.5.1623683096618; Mon, 14 Jun 2021 08:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623683096; cv=none; d=google.com; s=arc-20160816; b=Eh/rzK4UsHPcet/AniqFZpW+D5Jt9ZXf0Xv2NCxTVOgTDGyhTqfUGRdsyfFLC1Mku6 obuKgsODBf4PgKiqWP3hMqOcvZxItC26ffQLHzyQ4z7jEhKgD7Y3Atu6vCaj2V4APuPX wfiBpuB+PEgcPYcgbIAGnJjt+g0AabSN2Fn3aMjTVp+XwdUROX6u6Jf2z9qO5it1EOfS Lo5viuIOEQ+u/nsm3qSi5Lsnz0A/hLKuSgdvoKeFOAYGv0Rf6cxuRi9pRgBFbmJCumhV HWjS6//z6iDt6v4QeGYJgzgBuZje7c+xUYDqCo7nMPJPADf6Cjhp3L6d3/Tvsg62OklT Expg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=SPbYMcbVjJFWR65dIngP8E9l9yv1eYtUSpLAZBQAiGE=; b=EtDH0GSFsnUWGPqfwSh8sofZyJyBhgEWwhFY4QlekrqvNeJZ6xpmn1f9ANx3p2mvIk ofra05Wusi8mei5lu+iTidNrUY5BXdolfcTLXg8cDNodRyPu363TOaxm3NqAqVH1EEFd i0Y3Afg5yyLqxYsi7Y0ry6eV2MP+RUtbO0pOPFrh6hQz/f4FJBfIGkk1dSu1SghJE0Yv INokhd1DTxJBTgY7gEGqOoZKfrLMcKVtryLO2rHOdyPGHnzZJ+dwSNizy63pihXMlGNy CZsv63gAQh3Hk6shPYltms3QL17eLbjiHuMo5mXztKrJVSuVsLJfct/ngVM+zvtQpnYP eXvg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yh16si10708561ejb.343.2021.06.14.08.04.25; Mon, 14 Jun 2021 08:04:56 -0700 (PDT) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233080AbhFNPF3 (ORCPT + 99 others); Mon, 14 Jun 2021 11:05:29 -0400 Received: from mail-ot1-f44.google.com ([209.85.210.44]:33534 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbhFNPF2 (ORCPT ); Mon, 14 Jun 2021 11:05:28 -0400 Received: by mail-ot1-f44.google.com with SMTP id o17-20020a9d76510000b02903eabfc221a9so11149718otl.0; Mon, 14 Jun 2021 08:03:12 -0700 (PDT) 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; bh=SPbYMcbVjJFWR65dIngP8E9l9yv1eYtUSpLAZBQAiGE=; b=JI2pWFu8vuXqYrS5MEVNrJfwWBREkOBYPYmmTn5GGkpOvOEv8IPdfoBJ90lh/xvxxT z8FZrw4+TUDCtW18yW4FafIiqgY1mdqRTGzoAXiVpObQxoHCTYfSp/GyxvJ6+hv8wglM QnWr38PnFiXFYsmCYHMVUF/nBEAmCSBkFxhgzn3JN6OT1mu4RV7XRjX+QOUB6i8OTKLY qtrl2lQsGbJ4LGg1N4VZY3hzY81wwONANCMswwzojV/ICiY08IQbCGAl0A6hNo16rMxu JcQt1Ehl06WsaWAuSE0WgJ/+0mEwIXt7YvmTDhZOmrWgNauMXZ5A91QNnnDmEnSAtazV RBeQ== X-Gm-Message-State: AOAM532iwwRSkfOs3kx0S2F3yUjm/Dpl/Ky3IhG/exlceB8HRBIubMK5 G76DwaJnVbOJSsYue3xvOIxytOD6LEXXLPpfdkMNZVEe X-Received: by 2002:a05:6830:1bf7:: with SMTP id k23mr14214484otb.206.1623682991631; Mon, 14 Jun 2021 08:03:11 -0700 (PDT) MIME-Version: 1.0 References: <20210610074812.57973-1-chenxiaosong2@huawei.com> In-Reply-To: <20210610074812.57973-1-chenxiaosong2@huawei.com> From: "Rafael J. Wysocki" Date: Mon, 14 Jun 2021 17:03:00 +0200 Message-ID: Subject: Re: [PATCH -next] ACPI: fix doc warnings To: ChenXiaoSong Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , yu kuai , yi.zhang@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 9:41 AM ChenXiaoSong wrote: > > Fix gcc W=1 warnings: > drivers/acpi/cppc_acpi.c:1356: warning: Function parameter or member 'cpu_num' not described in 'cppc_get_transition_latency' > drivers/acpi/cppc_acpi.c:573: warning: Function parameter or member 'pcc_ss_id' not described in 'pcc_data_alloc' > drivers/acpi/dock.c:388: warning: Function parameter or member 'ds' not described in 'handle_eject_request' > drivers/acpi/dock.c:388: warning: Function parameter or member 'event' not described in 'handle_eject_request' > drivers/acpi/sleep.c:496: warning: Function parameter or member 'acpi_state' not described in 'acpi_pm_start' > drivers/acpi/sleep.c:536: warning: Function parameter or member 'pm_state' not described in 'acpi_suspend_begin' > drivers/acpi/sleep.c:663: warning: Function parameter or member 'pm_state' not described in 'acpi_suspend_begin_old' > drivers/acpi/sleep.c:956: warning: Function parameter or member 'stage' not described in 'acpi_hibernation_begin_old' > > Signed-off-by: ChenXiaoSong > --- > drivers/acpi/cppc_acpi.c | 2 ++ > drivers/acpi/dock.c | 2 ++ > drivers/acpi/sleep.c | 4 ++++ > 3 files changed, 8 insertions(+) > > diff --git a/drivers/acpi/cppc_acpi.c b/drivers/acpi/cppc_acpi.c > index a4d4eebba1da..611938f2c132 100644 > --- a/drivers/acpi/cppc_acpi.c > +++ b/drivers/acpi/cppc_acpi.c > @@ -561,6 +561,7 @@ bool __weak cpc_ffh_supported(void) > > /** > * pcc_data_alloc() - Allocate the pcc_data memory for pcc subspace > + * @pcc_ss_id: pcc subspace id. > * > * Check and allocate the cppc_pcc_data memory. > * In some processor configurations it is possible that same subspace > @@ -1346,6 +1347,7 @@ EXPORT_SYMBOL_GPL(cppc_set_perf); > > /** > * cppc_get_transition_latency - returns frequency transition latency in ns > + * @cpu: CPU for which to get transition latency. > * > * ACPI CPPC does not explicitly specify how a platform can specify the > * transition latency for performance change requests. The closest we have > diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c > index 7cf92158008f..6c0fb5c9b938 100644 > --- a/drivers/acpi/dock.c > +++ b/drivers/acpi/dock.c > @@ -380,6 +380,8 @@ static int dock_in_progress(struct dock_station *ds) > > /** > * handle_eject_request - handle an undock request checking for error conditions > + * @ds: the dock station. > + * @event: Event code. > * > * Check to make sure the dock device is still present, then undock and > * hotremove all the devices that may need removing. > diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c > index aaea10d39201..95521a8b49fc 100644 > --- a/drivers/acpi/sleep.c > +++ b/drivers/acpi/sleep.c > @@ -491,6 +491,7 @@ static void acpi_pm_finish(void) > > /** > * acpi_pm_start - Start system PM transition. > + * @acpi_state: Power state value. > */ > static void acpi_pm_start(u32 acpi_state) > { > @@ -531,6 +532,7 @@ static u32 acpi_suspend_states[] = { > /** > * acpi_suspend_begin - Set the target system sleep state to the state > * associated with given @pm_state, if supported. > + * @pm_state: pm suspend state. Well, I appreciate the effort, but this change doesn't really improve the kerneldoc too much regarding the information provided by it. In fact, @pm_state is documented already here, you just need to rearrange this comment. > */ > static int acpi_suspend_begin(suspend_state_t pm_state) > { > @@ -658,6 +660,7 @@ static const struct platform_suspend_ops acpi_suspend_ops = { > * state associated with given @pm_state, if supported, and > * execute the _PTS control method. This function is used if the > * pre-ACPI 2.0 suspend ordering has been requested. > + * @pm_state: pm suspend state. Pretty much same as above. > */ > static int acpi_suspend_begin_old(suspend_state_t pm_state) > { > @@ -951,6 +954,7 @@ static const struct platform_hibernation_ops acpi_hibernation_ops = { > * ACPI_STATE_S4 and execute the _PTS control method. This > * function is used if the pre-ACPI 2.0 suspend ordering has been > * requested. > + * @stage: pm event massage And here too. > */ > static int acpi_hibernation_begin_old(pm_message_t stage) > { > -- > 2.25.4 >