Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3358953pxj; Mon, 7 Jun 2021 08:44:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFdx1/W3e355u1S5FwHzIX2m7kQU18IbfmLz+NGJNnZvYrud14K79IGT4LQjGiUnhGN0We X-Received: by 2002:a50:eb92:: with SMTP id y18mr15740699edr.249.1623080652900; Mon, 07 Jun 2021 08:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623080652; cv=none; d=google.com; s=arc-20160816; b=JSmd343ikCTJ2c6at+Dy/usc1QX4QbfM2NvuXbasS6lylepuqKYN6Y0Vk7b8m44RIM CZjlhvPy9hWVrT2bJviHZbUl9D+WzAovVhbYzaboFxEcJKEPkVEIS3x4leZv7iXwelqL O0OzvrcAIR0id3sYZFCwNf9GiDxKciomPWcECHggnRPICDXMNSMo+qnOT9D0UyRCDaqq boEOyFOYy9NuulEP1jt0mUzEOoWkvx6brywQ6KuDku218nkhe/AdROv/QgalO0Bg5Wif gm3SsMiZiIuMfp1ek4PvyLVjX82cqlizl3OOis1+votQoV/U3RPPmQ9kaMtR/z0+0Dkt UKFQ== 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=c2v/PS6KigiW/mbDGu/R+ZGoP0WYsTOzVw7Gji4PkqQ=; b=nHXAGU2MA+LJf/Ek+k/2PBWVu1mez0ilxQAxjMVv13UnlKMD9tqrC0DiyM3EEVkwmo j7qoGfuTNkenafCFpWmGHKwTaag2ExbDnBBkqIqqznC5KV6gwWdJqTTirTC3A5NfZ30v E9AQ6SQrK45qKiKOGUQ/41M/raHezwRGQdpkzJbZCx4vuTS75PhwdPHZl8dCTw73NizI gXBrLSwSJN44SquHhFBftpkBFu1jIMNefxIG1rSNSEH10yemtfc7lTkO2ajvTagUkuVJ hlw2f9ovemlrzb6GRyL2FNPxDTZuN0qgjpTnJjsvuL0MiubQWFuyOE8aSQihyGw0J4sm /NRg== 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 w9si13208724edx.381.2021.06.07.08.43.50; Mon, 07 Jun 2021 08:44:12 -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 S230428AbhFGPod (ORCPT + 99 others); Mon, 7 Jun 2021 11:44:33 -0400 Received: from mail-oi1-f173.google.com ([209.85.167.173]:45030 "EHLO mail-oi1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230306AbhFGPoc (ORCPT ); Mon, 7 Jun 2021 11:44:32 -0400 Received: by mail-oi1-f173.google.com with SMTP id d21so18472242oic.11; Mon, 07 Jun 2021 08:42:25 -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=c2v/PS6KigiW/mbDGu/R+ZGoP0WYsTOzVw7Gji4PkqQ=; b=NxdPzrD+h00jKr/tpBrZpJgrAylsmvx+VlMlj5r8pF1XMAU32QX+e3XDWsMJ1Drnzu Wb9yGYpPMOxv5MP85oVkbgsew9bUXZE8a92Kl4iHama5BG7E/1nxMxVWWixZXxrd/cop soweBmaIt4woDjwiBZeIpgqBzWDT4myXL50zqx/3lxUwXK41/F40Y6129OQjEJPE6HvA 9xOIh4xrx3it65Eke+J+gTksEWGZZvcSAleAY6BDPyLeQELchDL7Q+LS6SN0eXVBNmJg NzpeUuJpj18vNYvZfbTSgg5j8IO1Hqe+tYoNxAi5zcK8fZfP78dTlVhKbsvaY8cZVtI0 9aAA== X-Gm-Message-State: AOAM531qHXmks0xKzbcr3v4uW3fTX5Uz6IPOO/KapMoyiaZeqHNZGLKM 4WKrrnqs17gTnxnkEJzk1stSvOqcP25tb1mk5m4= X-Received: by 2002:aca:1910:: with SMTP id l16mr11149097oii.69.1623080545606; Mon, 07 Jun 2021 08:42:25 -0700 (PDT) MIME-Version: 1.0 References: <20210605063934.688763-1-libaokun1@huawei.com> In-Reply-To: <20210605063934.688763-1-libaokun1@huawei.com> From: "Rafael J. Wysocki" Date: Mon, 7 Jun 2021 17:42:14 +0200 Message-ID: Subject: Re: [PATCH -next] PM/sleep: fix doc warnings in main.c To: Baokun Li Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Linux PM , Linux Kernel Mailing List , Wei Yongjun , Yue Haibing , yangjihong1@huawei.com, yu kuai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 5, 2021 at 8:30 AM Baokun Li wrote: > > Add description for `state_show` to fix the W=1 warnings: > > kernel/power/main.c:593: warning: > Function parameter or member 'kobj' not described in 'state_show' > kernel/power/main.c:593: warning: > Function parameter or member 'attr' not described in 'state_show' > kernel/power/main.c:593: warning: > Function parameter or member 'buf' not described in 'state_show' > > Signed-off-by: Baokun Li > --- > kernel/power/main.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/kernel/power/main.c b/kernel/power/main.c > index 12c7e1bb442f..d508c8c582e0 100644 > --- a/kernel/power/main.c > +++ b/kernel/power/main.c > @@ -579,7 +579,9 @@ struct kobject *power_kobj; > > /** > * state - control system sleep states. > - * > + * @kobj: Pointer to the kernel object. > + * @attr: Pointer to the kernel object attribute. > + * @buf: buffer. Please fix this properly or don't touch it. This is not a kerneldoc comment of a function and so adding argument descriptions to it is pointless. > * show() returns available sleep state labels, which may be "mem", "standby", > * "freeze" and "disk" (hibernation). > * See Documentation/admin-guide/pm/sleep-states.rst for a description of > -- > 2.31.1 >