Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp572932rdb; Tue, 19 Sep 2023 04:20:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEL1NDnGaKHoBI+4o2O8gpyMTsGcBnxc4dWqkQYaxrkoaOMSuNNqaGP5MKVYSwj05cuYtPf X-Received: by 2002:a17:90b:4b46:b0:267:ffcf:e9e3 with SMTP id mi6-20020a17090b4b4600b00267ffcfe9e3mr10413391pjb.46.1695122400805; Tue, 19 Sep 2023 04:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695122400; cv=none; d=google.com; s=arc-20160816; b=K8dI93gFRZxLtYJRp1Z3Q//AF8U3OS3W1cHRLIywaG4rRCZ6L0Hj/BeBpiEL/lqfNd Ib/R48ynihjfFUyFF4X0j2/JIbQTKZ0e0E+nRWEEyKPvFbp4Sic9P7jyd/UT5GqRIcwD zC3zoN2eedfte8+qqr/Z39caTLXRKQkFwGmkEJWCVMPqTPMUGZMzwEgCn/cUMo8Lgimo Lp8GLOXgY0T2Lc1BCOJVdKsu2hJTx1Ac+3kB1xIJc2psnoHgkD6M9sV0oY6xymOWiEAo 8M7jUGB1xvUl1Cj9XR/y3cxgJOOafIrbGd06jth01e9Mcp1fcgmWQM/WXBfzm3lkBS/w cd1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=RVfayBrkG3MmTlRAQhH7GKJ43BUvCSqSov1VbKijaiQ=; fh=4jU0JXtXq7fsKv7ewqjXWuI+DncAV/Q9HJ8FEad5qw4=; b=NKw8Isb30PZfAqSPVXJA/x/ZZG5GTpQvnbjljRESFbh6h7Mwba2Zh+IPCVPqZi4rse gR6Cmj5QiXZo4kJO3p/gViGyCjT+crbuDGJWLG8lG38VFLeQMmbt6wtaswlmGQ/xJwsI MW8cdxa952Gneruv2ncAU3K5EG0fPmdPCiHXCgVPOsdgYolcFsaZvhfEfrNX4O29NqQE cHXeBY5irTH73znAPvVZ3Y8FY6SI+6FSXZxC0rH2AI6Ar/ws510azhT39VipCxPYV/Pt DdbGP0zD3ckqL0bSzBWHvbCiDBUZ10tRe5Z4nRk7kCzO45aM+WHcDvGEp9DtqCP7Jr9T Imeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p5-20020a17090b010500b0026b698fdda6si7083123pjz.98.2023.09.19.04.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1692B80B79E2; Tue, 19 Sep 2023 03:45:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231278AbjISKpc (ORCPT + 99 others); Tue, 19 Sep 2023 06:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbjISKpa (ORCPT ); Tue, 19 Sep 2023 06:45:30 -0400 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5814AE8; Tue, 19 Sep 2023 03:45:24 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-9a9d82d73f9so691837466b.3; Tue, 19 Sep 2023 03:45:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695120323; x=1695725123; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RVfayBrkG3MmTlRAQhH7GKJ43BUvCSqSov1VbKijaiQ=; b=KPma/3nX84EtdDH0yjN1GKa2H42MQ1/9U1t8jNuz/dZrjVdLHTKC/MFCjhiwo5YeOt XjqB7lLAuvVYSgw0y6Qkc+a70dqkybsb3rez9tHDDieTG04X5LsPgiKYjI0ArkgjRmcj fqsI9NrA05wl4ogE/gSSserf7C3n1VWzegac9aMQubwvCI6frV1YM9YuDgbX+6mk/yMJ 26FtVYwahnIhNyA9mVx7c22QVnm4zQ+SF+Cwxd+LNc0FVOHanO7Kyrr6bsmKin19AeLH FO6yZxqk/lZys+Lq/9plFJmLMJJXiiHpscMS9fK9qwNlSmTMoZkNRVmE13FkecDPrPNT rS9g== X-Gm-Message-State: AOJu0Yw0l3bjz4DBDKBiL0KSm4BIQkIFk8ZPL34opjDTvW7S/SW95FgL 88Y4B5eOwp05HVcHMhQY2aE= X-Received: by 2002:a17:907:a07a:b0:99e:5d8:a6f9 with SMTP id ia26-20020a170907a07a00b0099e05d8a6f9mr9166806ejc.66.1695120322344; Tue, 19 Sep 2023 03:45:22 -0700 (PDT) Received: from [192.168.1.58] (185-219-167-24-static.vivo.cz. [185.219.167.24]) by smtp.gmail.com with ESMTPSA id gv23-20020a170906f11700b0098ec690e6d7sm7614689ejb.73.2023.09.19.03.45.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Sep 2023 03:45:22 -0700 (PDT) Message-ID: Date: Tue, 19 Sep 2023 12:45:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 09/15] tty: fix kernel-doc for functions in tty.h Content-Language: en-US To: =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230919085156.1578-1-jirislaby@kernel.org> <20230919085156.1578-10-jirislaby@kernel.org> <6033668f-71cc-b21-a034-a1ff31d7279@linux.intel.com> From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbtIlIrpvWxckucNu6ZwXjFY0f3qIRg3Vqh5QxPkojGsq9tXVFVLEkSVz6FoqCHrUTx wr+aw6qqQVgvT/McQtsI0S66uIkQjzPUrgAEtWUv76rM4ekqL9stHyvTGw0Fjsualwb0Gwdx ReTZzMgheAyoy/umIOKrSEpWouVoBt5FFSZUyjuDdlPPYyPav+hpI6ggmCTld3u2hyiHji2H cDpcLM2LMhlHBipu80s9anNeZhCANDhbC5E+NZmuwgzHBcan8WC7xsPXPaiZSIm7TKaVoOcL 9tE5aN3jQmIlrT7ZUX52Ff/hSdx/JKDP3YMNtt4B0cH6ejIjtqTd+Ge8sSttsnNM0CQUkXps w98jwz+Lxw/bKMr3NSnnFpUZaxwji3BC9vYyxKMAwNelBCHEgS/OAa3EJoTfuYOK6wT6nadm YqYjwYbZE5V/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OGeXYh6ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: <6033668f-71cc-b21-a034-a1ff31d7279@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 03:45:33 -0700 (PDT) On 19. 09. 23, 12:07, Ilpo Järvinen wrote: > On Tue, 19 Sep 2023, Jiri Slaby (SUSE) wrote: > >> tty_kref_get() is already included in Documentation, but is not properly >> formatted. Fix this. >> >> tty_get_baud_rate() is neither properly formatted, nor is included. Fix >> both. >> >> Signed-off-by: Jiri Slaby (SUSE) >> --- >> Documentation/driver-api/tty/tty_ioctl.rst | 3 +++ >> include/linux/tty.h | 21 +++++++++------------ >> 2 files changed, 12 insertions(+), 12 deletions(-) >> >> diff --git a/Documentation/driver-api/tty/tty_ioctl.rst b/Documentation/driver-api/tty/tty_ioctl.rst >> index 9b0be79fc15e..3ff1ac5e07f1 100644 >> --- a/Documentation/driver-api/tty/tty_ioctl.rst >> +++ b/Documentation/driver-api/tty/tty_ioctl.rst >> @@ -5,3 +5,6 @@ TTY IOCTL Helpers >> ================= >> >> .. kernel-doc:: drivers/tty/tty_ioctl.c >> + >> +.. kernel-doc:: include/linux/tty.h >> + :identifiers: tty_get_baud_rate >> diff --git a/include/linux/tty.h b/include/linux/tty.h >> index 59d675f345e9..4b6340ac2af2 100644 >> --- a/include/linux/tty.h >> +++ b/include/linux/tty.h >> @@ -390,14 +390,12 @@ int vcs_init(void); >> extern const struct class tty_class; >> >> /** >> - * tty_kref_get - get a tty reference >> - * @tty: tty device >> + * tty_kref_get - get a tty reference >> + * @tty: tty device >> * >> - * Return a new reference to a tty object. The caller must hold >> - * sufficient locks/counts to ensure that their existing reference cannot >> - * go away >> + * Returns: a new reference to a tty object. The caller must hold sufficient >> + * locks/counts to ensure that their existing reference cannot go away > > Shouldn't this have also Locking: entry instead of hiding the details into > Return? /me left to fix both in a separate patch. thanks, -- js suse labs