Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3735257rdh; Tue, 28 Nov 2023 02:21:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IExjbPxfj3gPLd+UbPkyUTjLEM3Yb2C1lnU59KMMlRTn6Z90Jxsa2jHVkjJzPq6l9xqlRXz X-Received: by 2002:a17:90a:e7cf:b0:285:2518:39d2 with SMTP id kb15-20020a17090ae7cf00b00285251839d2mr13939696pjb.27.1701166869309; Tue, 28 Nov 2023 02:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701166869; cv=none; d=google.com; s=arc-20160816; b=uyqeGEL+NHzzAAXhqlSeeRayZ3viXZQclSlrmH/bZpCY/Eu9qQazAHtX1sEb848jZB uzBI1eu8UmJ5ds1N7r8Vr8TxXeoVlIy32vsUv6lfvP2SEUxaw16kn6dVFaRTamLZMPol BEkje4HP7HhehL13/Qi1Eff6qEVI6thaaN0BSLYGu3S8aLkUghwbanSZywgNYPGBEZBC 4TFBSy4Z+utwGoiMg2ZIE/oPlIACuG4ZDCbME3TCXXHJPYpF4z0Z783SgC5sPoTCpdKS ulD/cY2CG85c+JeZ14VrnZdS42RdNpfxDl4xe0SoUu5We0eoKXlVP6QgCFXEfTgSqoKn dEuQ== 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=NZTayN7q1byCLqR+4N0WflMWlnES5VIpe40dylNoe9c=; fh=PxjcL/ZdiHiVcm76ua20Djv7HwMfZdoMlXIc51BfpOg=; b=SirbbjgvFDms0QkQYY95L/TeSh8l5BVtupkZqbjIO0MAeIa5y718+og88GPa2UTpiI aFS6uCstPeqh58pc2ZbMV4FA4ttJzVO/8qSZcE4XZ31uJ94Vb/wnfZhpxLQ+fvpT1mr7 XssrR11s3D28GUFZhOJSG/bLdZRXEA92xwJGiiBFDp1n4G+nwwQWcDN2yMZ22sQ8/ftq U/HF4EJw/Au1qrqe4sEoPu+hRmODPQJIId4YhjEwxjlX3HfpylYyuNlfEvMvYcOyrBZZ wQohNYf0a/3RkFiUSvRHRafoht3cRY5wUhCqoEQjQ1CHqwn3v3O6ZjhoNCPWWA1m0JQm jZIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a7wFYM5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id o12-20020a170902d4cc00b001cfc0272b48si6483997plg.103.2023.11.28.02.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:21:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=a7wFYM5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 41C7D8080E08; Tue, 28 Nov 2023 02:20:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232094AbjK1KUT (ORCPT + 99 others); Tue, 28 Nov 2023 05:20:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjK1KUR (ORCPT ); Tue, 28 Nov 2023 05:20:17 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5281DE6; Tue, 28 Nov 2023 02:20:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701166824; x=1732702824; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=pRg4A/1XNn/gV9f7Su5nwFL58C3OXhlWqDX8A+9UGt8=; b=a7wFYM5C+9kTgry+S3j4t9yuw/8GHGyAaAL7VVystUaWxMTETzGhFf7K fSroiWkt4KvFK7uzdxKJeRevuImOCGqqnEXbBdxuFWjYlqgkMI0W0vUgZ xpbA30Zt/DoAjm6WgtL55h4cpLzXS35l79L2uGWSDmQQ1Ss7/ZaxbZPZr sREUO2NIOI0QXM3AQxKU5J6AZbnI7qUWeGrxJjgpxQkvmwF7SdgQ+nYAc JqpLVJE1Qmh3OZVaUVuNgv3t40xjM3qio6fIHJFcaKE44cixAiRTjgMhY NyGgn+0gJOiypDS5tg9U2rNBsfWwxkRvuEQCaE69lkwYLkZAfG4xPsT5K Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="383278090" X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="383278090" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 02:20:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="941868474" X-IronPort-AV: E=Sophos;i="6.04,233,1695711600"; d="scan'208";a="941868474" Received: from haslam-mobl1.ger.corp.intel.com ([10.252.43.79]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 02:20:22 -0800 Date: Tue, 28 Nov 2023 12:20:19 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: "Jiri Slaby (SUSE)" cc: Greg Kroah-Hartman , linux-serial , LKML Subject: Re: [PATCH 1/5] tty: make tty const in tty_get_baud_rate() In-Reply-To: <20231127123713.14504-1-jirislaby@kernel.org> Message-ID: References: <20231127123713.14504-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2114108693-1701166823=:1797" 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 28 Nov 2023 02:20:33 -0800 (PST) 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-2114108693-1701166823=:1797 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Mon, 27 Nov 2023, Jiri Slaby (SUSE) wrote: > After commit 87888fb9ac0c ("tty: Remove baudrate dead code & make > ktermios params const"), the 'tty' parameter is only read in > tty_get_baud_rate(). Therefore, we can make 'tty' accepted in the > function 'const' for clarity. > > The "the terminal bit flags may be updated." part of the > tty_get_baud_rate()'s kernel-doc is dropped as it is no longer true. > Because of the same commit above. And it was misplaced anyway. > > Signed-off-by: Jiri Slaby (SUSE) > Cc: Ilpo Järvinen > --- > include/linux/tty.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/include/linux/tty.h b/include/linux/tty.h > index 7625fc98fef3..e96c85f4f91e 100644 > --- a/include/linux/tty.h > +++ b/include/linux/tty.h > @@ -440,10 +440,9 @@ void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud, > * > * Returns: the baud rate as an integer for this terminal > * > - * Locking: The termios lock must be held by the caller and the terminal bit > - * flags may be updated. > + * Locking: The termios lock must be held by the caller. > */ > -static inline speed_t tty_get_baud_rate(struct tty_struct *tty) > +static inline speed_t tty_get_baud_rate(const struct tty_struct *tty) > { > return tty_termios_baud_rate(&tty->termios); > } Thanks, Reviewed-by: Ilpo Järvinen -- i. --8323329-2114108693-1701166823=:1797--