Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp563271rdb; Tue, 19 Sep 2023 04:03:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzb55ySI+jRASjY3Dp4t3Pu2AQExHLK+ra6tlNFjPrteyeMqAWFTygq35AnoKISt7ZVPll X-Received: by 2002:a05:6e02:11aa:b0:34c:ceaf:b627 with SMTP id 10-20020a056e0211aa00b0034cceafb627mr12072748ilj.29.1695121385519; Tue, 19 Sep 2023 04:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695121385; cv=none; d=google.com; s=arc-20160816; b=NGBTerJCY9Sb5LfS5R9+S1w5VxRyJ/3tMkxWHYL/mbhAPMo1UdPoCZW8EkZ1dd//Yx 5xzXIZ6PfC8GTOzPTY9r+H/5fPbFIHGIT1GcD4SdS0QBlGTYLRkSNxK/BmX9W7Evomnl YbJ/LUFj799zoBBzNLPM3hnFG6ZssKsW3aVbWSm6nCqWXV3UDPvfBfe6XIGU4ixxDSD4 m6Vz92AylGnytDgl5fYRNvYKXwigh9s4f5ZoCau7Nlx+E3e6U13deh3D2IHZmZx3dlNl wmI8JCmfsTn6EvR9DqG+2MCsjkF6cKYOkSzMQADdblWShOJJZsV6tFwAI8jAQ73E1al+ SKXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=QpCs26Xkh79XyoUt0BkIAl5qheUzgBO8iEp0yXMz7Bs=; fh=fCGZTi0gz7Fhx8LG/CI2gRp4NpXGvpzzHQ9U99CtZJA=; b=SRT3OSJqK5Dy5FU+qheOcHbP4m+usx2L/+eRnhgss3FoAQT4bGBy/nemnNxNAIPJSH yVYYvEzu0JPUKDVQ9sh9bJeDOJv2iQAXxnw2Tdp7vcehm1XU6IVFKmnNPkvBSewXs6DK WvF+qWVNtATgQafZT5lTT93XF5su6mMd/B0oaoA9mLXEsXyFfvrEMuxyopgKNe/uiOSz Wf2C+L05xmglYn2r9p3+7OrhiEUOD1a9QemZb7EWyJfClh4VTdESG3bAJGEcftiJbq/3 l1lbW0hEV0VSA795ThKexEG5sbJeQ8YvBuQZj6rvNoSE2+A3kYMaBQhal2ylWnEJzqHq zRWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RHeYIwjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id k24-20020a63ff18000000b0055fd1bfacafsi8329813pgi.755.2023.09.19.04.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RHeYIwjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D7D7F80CFD61; Tue, 19 Sep 2023 03:52:27 -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 S231918AbjISKwT (ORCPT + 99 others); Tue, 19 Sep 2023 06:52:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231994AbjISKwE (ORCPT ); Tue, 19 Sep 2023 06:52:04 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6DF8197; Tue, 19 Sep 2023 03:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695120695; x=1726656695; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=phhHv2I8bhp2fLaES1pIOW2/yKxSA+u47qV6/kRzK04=; b=RHeYIwjPILtOAvOIVHpK2yuPKqmyCMg2VxXPVsdlKh1gWiRB7UgYgBqn wm7JF0F01dwaoN7po/bsRed5ISMz5a26XmGgTh+WL0UDMMXTTZslhxeat IdQLNVwO9emGeJ94ThFo6+8nyjsaszji8oXy8pe/LV4D2pokLqtjS3w9j UT03ZdFCSFrEmvzAqtfu4O4lgKFq+ZrNll1clamJrlOs/xf0fuhZEarnx nVe2889iSkcqBsO1gfiERr03zYg6o+epbxArTIv4l4alPfNtOgmPZGP8/ BBdqN/y3E2N781cG5jJX/E9biILfQ8m0RFMOqssk0bmG5pppchTLSF9iZ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="370225738" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="370225738" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 03:51:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="919827887" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="919827887" Received: from laichele-mobl1.ger.corp.intel.com ([10.252.38.7]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 03:51:33 -0700 Date: Tue, 19 Sep 2023 13:51:32 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Jiri Slaby cc: Greg Kroah-Hartman , linux-serial , LKML Subject: Re: [PATCH 09/15] tty: fix kernel-doc for functions in tty.h In-Reply-To: <6d06e531-6c69-47ca-9832-fac21ce6964c@kernel.org> Message-ID: <576ae74-19dc-84b5-7e8c-563c9561be5d@linux.intel.com> References: <20230919085156.1578-1-jirislaby@kernel.org> <20230919085156.1578-10-jirislaby@kernel.org> <6033668f-71cc-b21-a034-a1ff31d7279@linux.intel.com> <6d06e531-6c69-47ca-9832-fac21ce6964c@kernel.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2030825116-1695120695=:1920" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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:52:28 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-2030825116-1695120695=:1920 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Tue, 19 Sep 2023, Jiri Slaby wrote: > 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? There are plenty of examples with "Must be called with" or "Caller holds" in Locking. This is for humans anyway so one reading should understand it. -- i. --8323329-2030825116-1695120695=:1920--