Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp907366rdg; Fri, 11 Aug 2023 04:04:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEO/T26Nbz4z3kD0oNKAVtXs50+R2sIcxYI5O9qgdwWQkney3g2Djbde+3YV9sBKf8bLhJq X-Received: by 2002:a17:90b:2344:b0:25e:d013:c22c with SMTP id ms4-20020a17090b234400b0025ed013c22cmr824661pjb.47.1691751845638; Fri, 11 Aug 2023 04:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691751845; cv=none; d=google.com; s=arc-20160816; b=1Db3xylQXHyEHdJY8qZkeUvxdsBxyyaT39gLpoA+p61ZqBjTfFcpe/TH+eSyyKP61D YtFkqQn3JakJTQgEfAwjXqtUV0OoUnqTg0vY1OEf5FZYvqyX12VOrufLS00wqaYwREvd pLJe8dWKp+eNlzPyBXdu7TgdNLp24KQehu2OQSE7KNjld2mMX0Fx/2IBQlTnICftL5rp GBhWOzLsWKF2C7TGOmvNkOOh5ln796JlqwD3tXIwlEnA6lIj9IU0Jzn7jrgmgO4b5w2s UC5+uYc1jN/h5NTiEQpP0hMW26UPT6Ols170JPY9wZqA21JbCON0LMvjWhMWNAO5ylw0 Uv2A== 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=qmaQVzCgrbpm/O6o6lNPxcj1IutqUayNX79V4LIueAY=; fh=e5Z4b8ZdZjd4stMreCyM0+y/kP/8sQwcz1yrYV3B7I0=; b=dhV8EzrF+JM89wZATIYPyB+In4ZZ64JvO2GvjwVO9Z2ChecewxoSIW32oZHHGQro1Z j87y37SBKTGOk/jDdfLjz4SP4C5MWybuEvAKP9Wn/1Q4yhzx06+rWiey608wvT3UeWIZ 9BzrarHe91mBl4nRcy0kf1v7Y9fYRKP4DvsL2Wuwa9CJ4XXkWszLiqstnCIOFe43f78w +/j//0QVX/0fYObefM+mwjkZC9gNULRt/A37EPlLUTZFtH1RLtIRFL7uoYqjzbHFRggA lJ4zzZtR6ww9ryNVDamVroYa1PGSeK9qvhmBNAwdXOAjBAnJtFSCxktXgfCg1onwRC43 zuyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QEqaV9xj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a17090ad98300b002633c436f4esi3229719pjv.34.2023.08.11.04.03.53; Fri, 11 Aug 2023 04:04:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QEqaV9xj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234498AbjHKK3I (ORCPT + 99 others); Fri, 11 Aug 2023 06:29:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbjHKK3G (ORCPT ); Fri, 11 Aug 2023 06:29:06 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1070DDC; Fri, 11 Aug 2023 03:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691749746; x=1723285746; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=1cuNBVAHm1eCW8DM16u/EOGsWYmWOHNYNDUo0LaepRQ=; b=QEqaV9xjcgjdYS5Z5NcrsdsYrg6UzKrFhdTAkjBNq1bKPTmTibDeyUOs DXK1JEWQxW5ybtNpxPwS92YmdKTGsXP4F+g+0cL8M9CcSJjtABBn54jbT o9Nszfe7agb2m7RGfSCbObCPkIM210umbbJq4Dh6PRvwS/F35OYZeJhE3 3EYw0hfc9Hi/czYaD9Q3ZGhONze/VaamqGLOrnC83N4C91EOceqJuK1EY bNy2454kYmnZL3dwfl1Fkd1QM5l7xHnG6d4Qi4Uvyh709xIFfuWwqpCci d2u1/SL0kglnLeKjBoGxEMxteplLr5sItTdWDjKe9Xl9i8EVIVQlDQwNi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="351250401" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="351250401" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 03:29:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="822620171" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="822620171" Received: from aberko-mobl1.ger.corp.intel.com ([10.252.51.87]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 03:28:59 -0700 Date: Fri, 11 Aug 2023 13:28:56 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: "Jiri Slaby (SUSE)" cc: Greg Kroah-Hartman , linux-serial , LKML , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Dmitry Torokhov , Arnd Bergmann , Max Staudt , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Dario Binacchi , Andreas Koensgen , Jeremy Kerr , Matt Johnston , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Peter Ujfalusi Subject: Re: [PATCH 16/36] tty: use u8 for chars In-Reply-To: <20230810091510.13006-17-jirislaby@kernel.org> Message-ID: <27366cad-30b2-e326-8d8f-c6fe17cf4899@linux.intel.com> References: <20230810091510.13006-1-jirislaby@kernel.org> <20230810091510.13006-17-jirislaby@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Aug 2023, Jiri Slaby (SUSE) wrote: > This makes all those 'unsigned char's an explicit 'u8'. This is part of > the continuing unification of chars and flags to be consistent u8. > > This approaches tty_port_default_receive_buf(). Flags to be next. > > Signed-off-by: Jiri Slaby (SUSE) > Cc: William Hubbs > Cc: Chris Brannon > Cc: Kirk Reiser > Cc: Samuel Thibault > Cc: Dmitry Torokhov > Cc: Arnd Bergmann > Cc: Max Staudt > Cc: Wolfgang Grandegger > Cc: Marc Kleine-Budde > Cc: "David S. Miller" > Cc: Eric Dumazet > Cc: Jakub Kicinski > Cc: Paolo Abeni > Cc: Dario Binacchi > Cc: Andreas Koensgen > Cc: Jeremy Kerr > Cc: Matt Johnston > Cc: Liam Girdwood > Cc: Mark Brown > Cc: Jaroslav Kysela > Cc: Takashi Iwai > Cc: Peter Ujfalusi > --- > drivers/accessibility/speakup/spk_ttyio.c | 5 ++-- > drivers/input/serio/serport.c | 5 ++-- > drivers/misc/ti-st/st_core.c | 2 +- > drivers/net/can/can327.c | 2 +- > drivers/net/can/slcan/slcan-core.c | 5 ++-- > drivers/net/hamradio/6pack.c | 4 ++-- > drivers/net/hamradio/mkiss.c | 2 +- > drivers/net/mctp/mctp-serial.c | 3 +-- > drivers/net/ppp/ppp_async.c | 8 +++---- > drivers/net/ppp/ppp_synctty.c | 11 ++++----- > drivers/net/slip/slip.c | 2 +- > drivers/tty/n_gsm.c | 2 +- > drivers/tty/n_hdlc.c | 2 +- > drivers/tty/n_tty.c | 28 +++++++++++------------ > drivers/tty/tty.h | 2 +- > drivers/tty/tty_buffer.c | 21 ++++++++--------- > include/linux/tty_buffer.h | 4 ++-- > include/linux/tty_flip.h | 22 ++++++++---------- > include/linux/tty_ldisc.h | 18 +++++++-------- > sound/soc/codecs/cx20442.c | 4 ++-- > sound/soc/ti/ams-delta.c | 2 +- > 21 files changed, 73 insertions(+), 81 deletions(-) > diff --git a/include/linux/tty_buffer.h b/include/linux/tty_buffer.h > index 6ceb2789e6c8..6f2966b15093 100644 > --- a/include/linux/tty_buffer.h > +++ b/include/linux/tty_buffer.h > @@ -22,9 +22,9 @@ struct tty_buffer { > unsigned long data[]; > }; > > -static inline unsigned char *char_buf_ptr(struct tty_buffer *b, int ofs) > +static inline u8 *char_buf_ptr(struct tty_buffer *b, int ofs) > { > - return ((unsigned char *)b->data) + ofs; > + return ((u8 *)b->data) + ofs; > } Any particular reason why b->data is left unsigned long? -- i.