Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp567195rdb; Tue, 19 Sep 2023 04:09:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoIkwqAJDzmkU/+p2CUESFcpKmc6dSfxyrq/5OI0JHYiEt7hJ3wkSR6r78M9P0+COn06Cs X-Received: by 2002:a17:902:d2cd:b0:1c3:aef9:872e with SMTP id n13-20020a170902d2cd00b001c3aef9872emr12044539plc.34.1695121750274; Tue, 19 Sep 2023 04:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695121750; cv=none; d=google.com; s=arc-20160816; b=Hma3T9Zgx61oBO226m5pLt7kz7qGVboojD+XbgqhWk0vFFvz0k1K2T0flAbMbuKw/F Ll/wvBlenw4vp2mdHHmzkaAnHA5USWVc/2+M4fAldt3lKIBgSqtNCDPCic77Uqdm1atS ghS0fcHh57ZwUx0TkADidegxHMH4TiCGp6GMYH0h4woiprM8OwXYHUmc4flXCpnFHzVN PVPB0UD9aBjgjV9XUd5F4OdGN8oO0H6OC3fSJsPZEVAxeYCiFuSQxyNDcVkGTVOzJjOT 7wZ1+2f7jGzWgndkMPvZw4DaUusJURExnHy63IC9T+TM5ebViBzRTLXUNAv27Xn2QIql 493A== 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 :references:cc:to:from:content-language:subject:user-agent :mime-version:date:message-id; bh=wXV2+Y0J/079ElD38rTTba8O0hPp339AVJF54BgtAFA=; fh=4jU0JXtXq7fsKv7ewqjXWuI+DncAV/Q9HJ8FEad5qw4=; b=aWOlbMYwrbebrUpvB52VGHZ5/tdn2VAHHY2iu96VCxR4NgbL8eF7G9vDyqutciB/iv ITl5xsfvaOdjGoJ8GZGcf4qzoIQe09gzvSpfYQnZSgyjM1ZwEcKxQBj5jRrZTChEvswo sw8quuuLfD4fpUMH2FyA7dTUcrJqVWZB6n0Xgn8jQ8z0mwbMoY5W9UlISKq90qBeaVbr ZeCDJxS2YATi9HPbYJ1o/nupirOJyU1SKIVWzCyHf31UiZhbdssZn042SIG36BxkMpcM 4pJTM9Lx3xOu4UJBagPfdS1IdmhSSXEDYi6lFsyvw4B5NeNyu1UtVcnTwk7JO9TWKoeb Ny/g== 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:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l11-20020a170902f68b00b001b841d54b7csi9891145plg.206.2023.09.19.04.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:09:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id D0C4D818D527; Tue, 19 Sep 2023 03:47:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231833AbjISKrV (ORCPT + 99 others); Tue, 19 Sep 2023 06:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbjISKrS (ORCPT ); Tue, 19 Sep 2023 06:47:18 -0400 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F198111C; Tue, 19 Sep 2023 03:47:10 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so14115898a12.1; Tue, 19 Sep 2023 03:47:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695120429; x=1695725229; h=content-transfer-encoding:in-reply-to:autocrypt:references:cc:to :from:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wXV2+Y0J/079ElD38rTTba8O0hPp339AVJF54BgtAFA=; b=CesPj0d51889ASsLjJla2MDKLQsfDEU/h4XaRezMcLHASOKVulUvXuU1ZaJFkJhLOS Rwa6n2UNmFJC5Cr1fUTQTpP1t6vivq5LeVF5k1Hhd9QWGpwDXi+fquHgkpQu3PUQnz0C OhBWdK1NPiGGstS202QXvxfk9a0XcRhTpe0X5bZWHiWQDFW9XDY75TcjDv6sa8klnaQU 5FewSJHtHq73BzbEH5/8Wi4AJCoxdFYwihlWG6EdT7VFMrp2ChTL3g86kfnFJ+Q4LAXe DLxBWvsYerMEMh3mQ4Z0aJFPGFqL9yQ2yCwKculXe+g6tMiIRur6egVRiZwD5tJFq4O5 b2dQ== X-Gm-Message-State: AOJu0YwuZyjdA4UfZX+hYn4E3OIsyL7Xy5UYKWU6IhPGOTaoCVwidtLJ txN6f9D/58/3G0JfjTu77i0= X-Received: by 2002:a17:907:9690:b0:9a5:b247:3ab with SMTP id hd16-20020a170907969000b009a5b24703abmr3024157ejc.19.1695120429165; Tue, 19 Sep 2023 03:47:09 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:59? ([2a0b:e7c0:0:107::aaaa:59]) by smtp.gmail.com with ESMTPSA id oq8-20020a170906cc8800b0099bc08862b6sm7806263ejb.171.2023.09.19.03.47.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Sep 2023 03:47:08 -0700 (PDT) Message-ID: <6d06e531-6c69-47ca-9832-fac21ce6964c@kernel.org> Date: Tue, 19 Sep 2023 12:47:08 +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 From: Jiri Slaby 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> 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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J2jExmlO8JljuOGeXYh6ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: 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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 19 Sep 2023 03:47:31 -0700 (PDT) On 19. 09. 23, 12:45, Jiri Slaby wrote: > 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. Ah, no. The Locking Alan introduced means what _this_ function locks. I am not sure we want to extend the meaning to _expected_ locks? thanks, -- js suse labs