Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp431660pxj; Thu, 10 Jun 2021 04:30:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSfS72rRby6w4LzqX0vlOoCYfRFq7u7WMkNuDYwfx7J1CRpdHYoJrAtowvnDvFtD7S34Qq X-Received: by 2002:aa7:db90:: with SMTP id u16mr4188140edt.106.1623324609728; Thu, 10 Jun 2021 04:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623324609; cv=none; d=google.com; s=arc-20160816; b=Nt4uEKmGJ68+oGX5f4uGH3qf1pKf8WAtz/y2/ZFRKqf1TJ+0iolvH++DfMkm27Hyw8 sWNA64/riSTRYT+8fCKMZvNMvh4tZZQ60/i6eHhJ/1t+sfqngvlimXEAOeozjLYkZ4VW tRTA7ZIisFGYxw8nvXnlLx7KfnIwZIiUuzPWtTfjJ1JxZz5TxLt2vsKmmAtKPq7qOV9x dSTKij2wLEDjhqYWLQWubanYM1zRdafgKu4tr+Y1KEPB1Fi4AkEJH/dcsPk5EUrj6Nx/ qktHPEo/mJH4U8vfrhnOR7LOVaoAE2/CHwDgoI4lJkKWaMXy0OnuLn9+kHqEcKzzvISG KLHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=B3UZvrwJVzCvntF8OxWzgDBqN2ebOwN3uWiV4MPb3MA=; b=wWgk/FF5Nrzw25vDYxpMXyv2XwVgGHTB29ZuoAKyBuYVkFC5qiv+P6GDSoSNzVaZIi RMiFxqikSGlNKQgCXIK6kqF9PoUkhfyazvhBXOCXV4FrJcQRrN+iJNxtq7GHLjMVfiEF 9z2jpcVfppD3oy+B3Gw+4NsAG8dOOw328D5X2kudBuvCgj/D7r+Hitfwq8LwV0GgzSqa z3IDhAHBwomp6sHoHwA7tvYV7KAv6cY0MkcPShftQpN0v85HYErTK2qzk/VzBcMEcoEF oToFOCC4D9o5xruHvf+AZelS9oPrhJdQlJlCUH2J4/Y0O4y4L6AAfC3Nw9lCTW9Hpzrk DO5w== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si2113191edr.197.2021.06.10.04.29.46; Thu, 10 Jun 2021 04:30:09 -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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbhFJL36 (ORCPT + 99 others); Thu, 10 Jun 2021 07:29:58 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3941 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbhFJL35 (ORCPT ); Thu, 10 Jun 2021 07:29:57 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G11pv2LLxz6xKk; Thu, 10 Jun 2021 19:24:55 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 19:28:00 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 19:27:59 +0800 From: Baokun Li To: , , , CC: , , , , Subject: [PATCH -next] kernel/notifier.c: fix doc warnings Date: Thu, 10 Jun 2021 19:37:06 +0800 Message-ID: <20210610113706.3439933-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): kernel/notifier.c:67: warning: Excess function parameter 'returns' description in 'notifier_call_chain' kernel/notifier.c:115: warning: Function parameter or member 'v' not described in 'notifier_call_chain_robust' Signed-off-by: Baokun Li --- kernel/notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/notifier.c b/kernel/notifier.c index 1b019cbca594..e776e65751c2 100644 --- a/kernel/notifier.c +++ b/kernel/notifier.c @@ -58,7 +58,7 @@ static int notifier_chain_unregister(struct notifier_block **nl, * value of this parameter is -1. * @nr_calls: Records the number of notifications sent. Don't care * value of this field is NULL. - * @returns: notifier_call_chain returns the value returned by the + * returns: notifier_call_chain returns the value returned by the * last notifier function called. */ static int notifier_call_chain(struct notifier_block **nl, @@ -101,7 +101,7 @@ NOKPROBE_SYMBOL(notifier_call_chain); * @val_up: Value passed unmodified to the notifier function * @val_down: Value passed unmodified to the notifier function when recovering * from an error on @val_up - * @v Pointer passed unmodified to the notifier function + * @v: Pointer passed unmodified to the notifier function * * NOTE: It is important the @nl chain doesn't change between the two * invocations of notifier_call_chain() such that we visit the -- 2.31.1