Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3738358pxj; Mon, 7 Jun 2021 19:41:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUizVW8Za8zwyOYnFhaGOjfzP68ZDNMojS8G3+wmuBtY6ZE+XGApEx+d6CYRj0dRG7QdVU X-Received: by 2002:a17:906:1912:: with SMTP id a18mr21018998eje.117.1623120096000; Mon, 07 Jun 2021 19:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623120095; cv=none; d=google.com; s=arc-20160816; b=rGeE48BdvsOMKQO4zw1FtUgLNxqVjvRHgfYBs29OltaFhSyXkT32UDbA0ntiUwyZ/5 DkMrqMyy7nhz18dAaPX5j5GyprkEI0j6GfsKjZfYJx58T720C8rmVsEUos3WpmbRjG7t hp0R/RMo2VbVlWW57G9z8M4FsnNjynr5XTKA0IUtSkIXiaOvTLN7nYtVqWy+fh0aOCcU fMbQOTU9YAjoQYt2XBW6VPmYoTcwsJClmjrBEMFb2jiU410fbFjkZ8dri+RhqTLmf0u2 gEY0IaczJ0+U4H9QoQulmGBU3JGaTrZ4jMkNKSDdolaGrIz1uH41kF5D37N8bgm4iRTQ 8t1g== 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=6ua6JpPrMDkNQCdJF83LwrfBiyVQ7jeiuWYYIY9JLNc=; b=IslSSWjW0PqcxmSTjGoJWZlQ/VtHwjGYd8rrN6vwUgUoD1ts9hV0wm+vEafunoWH8P AnclzYA+5ZKKZh7T2/Oz/AmLGIIgL50xkhXK4dbyoOz0pu2YV3yI1BtqWCNYopUjVJAk 9wFYXtQ80BrRzQe2PlsRcQJzQg64f7nJrwZi9AMPMsWP8q9wByx9TOHjZbYObley0iZr tpViE66JiEoyUIMmvMpJlXS/bTkAX5SUY2kopVtfotDd7Rg5QlJt+ai4g3jSF40A8dmI Yz/Ykrkc2ySqEQaahmwhL9jobgzm4EwKyP2BjpC5X8qD6D7R57qt0EjTd7RjSWo03sI4 3i1A== 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 g15si6206266edb.340.2021.06.07.19.41.13; Mon, 07 Jun 2021 19:41:35 -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 S231148AbhFHCl0 (ORCPT + 99 others); Mon, 7 Jun 2021 22:41:26 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:4390 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbhFHCl0 (ORCPT ); Mon, 7 Jun 2021 22:41:26 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FzZ9B1G2rz6vTL; Tue, 8 Jun 2021 10:35:42 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 10:39:32 +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; Tue, 8 Jun 2021 10:39:31 +0800 From: Baokun Li To: , , CC: , , , , Subject: [PATCH -next] tty: tty_ldisc: fix doc warnings in tty_ldisc.c Date: Tue, 8 Jun 2021 10:48:43 +0800 Message-ID: <20210608024843.2756746-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: dggems703-chm.china.huawei.com (10.3.19.180) 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): drivers/tty/tty_ldisc.c:63: warning: Excess function parameter 'disc' description in 'tty_register_ldisc' drivers/tty/tty_ldisc.c:90: warning: Function parameter or member 'ldisc' not described in 'tty_unregister_ldisc' drivers/tty/tty_ldisc.c:90: warning: Excess function parameter 'disc' description in 'tty_unregister_ldisc' Signed-off-by: Baokun Li --- drivers/tty/tty_ldisc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 8edd73ab9148..756a4bfa6a69 100644 --- a/drivers/tty/tty_ldisc.c +++ b/drivers/tty/tty_ldisc.c @@ -48,7 +48,6 @@ static struct tty_ldisc_ops *tty_ldiscs[NR_LDISCS]; /** * tty_register_ldisc - install a line discipline - * @disc: ldisc number * @new_ldisc: pointer to the ldisc object * * Installs a new line discipline into the kernel. The discipline @@ -77,7 +76,7 @@ EXPORT_SYMBOL(tty_register_ldisc); /** * tty_unregister_ldisc - unload a line discipline - * @disc: ldisc number + * @ldisc: ldisc number * * Remove a line discipline from the kernel providing it is not * currently in use. -- 2.31.1