From patchwork Sat Oct 14 10:49:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vamshi Gajjela X-Patchwork-Id: 15370 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp2411152vqb; Sat, 14 Oct 2023 03:50:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrK6//xwKf0r93EKXkitr75hY144igRkvx/G4wzrmOb16S7z2aOgP1UqkaqnbiftfFnLG5 X-Received: by 2002:a05:6a20:c18f:b0:16e:26fd:7c02 with SMTP id bg15-20020a056a20c18f00b0016e26fd7c02mr21138927pzb.2.1697280619860; Sat, 14 Oct 2023 03:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697280619; cv=none; d=google.com; s=arc-20160816; b=J/en7Qtk5KGjJnSA7JlI6xf7TygyDN8FfE84MgjtKga+YsJXSsFmPdYUgK07x+G8Ke +uMwTdPZhc/99MCUFt11ElfDYenqSKSLwVRezHyGaJ5emLZZsWKEWLCxGHA7E2jodJvY D4Xo5bjnuYxMC1PLokMBiGqt3aOM5Poye/Mf8eJly10Bvg1eSuefjGjrOZKRhB/LprDC gwZXqq4WP4Ne70jR8Lw7um0dFe/XK330dimob+mEWP2wTfSXfG6YPnLnq4o9WHM6tZQq EfHeB2Onxo3hnK2InhoVQeVJ4h3rQA5n9Klp6S32M1IOc20BtjlpBsWwJfvqTk45WJuY 80Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=NAiku5347ZizUWkMfV4Tpm0aCJ6vyX6cDZT3shueHrI=; fh=4iPUH3SCaUeHRPwZInlqPLZI8cmh/b74OgcORLvvuVM=; b=nrukkIwf/IhDT839HpZ8hMEdhEzuNh8lfRzCglMHPdOwR4cSRk7Nd+zm6reMPwzt78 9lz7jGq1qG7bnF+LF3K757VudM4GVAJ+tJCZkUbr7zBwwyoqcQWtBg+y9C1KLJVIWng3 Xq5SnbckeEIfPbaeJcjvQMiHag5UIODhTQih6+3XLgKORjVvCVsle2XZBdDKlKvU2Fay iThkAySIDJcrUiaFpfLRtXp+MWVGq+o5cn0oQmNNXxl+PPfGwE7OzCb0HkhDuXkYHaCw x7d6KDbVJ39/m89CgAwrZE4Ra9T+HWwepl4tCb3NicyYiY6iMNCftrFAJ4Pnq8svWZFM PoWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Xz/Ji1/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u62-20020a638541000000b005ab11ef76a4si3445832pgd.682.2023.10.14.03.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 03:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="Xz/Ji1/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E356480BCF41; Sat, 14 Oct 2023 03:50:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233060AbjJNKt5 (ORCPT + 20 others); Sat, 14 Oct 2023 06:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232937AbjJNKt4 (ORCPT ); Sat, 14 Oct 2023 06:49:56 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1965B3 for ; Sat, 14 Oct 2023 03:49:54 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d9a5a3f2d4fso4109253276.3 for ; Sat, 14 Oct 2023 03:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697280594; x=1697885394; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=NAiku5347ZizUWkMfV4Tpm0aCJ6vyX6cDZT3shueHrI=; b=Xz/Ji1/iNeybrU3FIMIa2jzsgoOuhNVYCrUetsmuuq/f49zaoxvrKTtl+e4/x0xTbU +SaZqYnXMrJwt0Cy6RzdiiWRa6NWSXwGyyL8Z2eNH0lOVmXG8voWrSzCV8eh3cZY0+en 11PbcBV4NJYX6RaqH6trXV9Z+UwhaIL3fEWtGce/41fopOlSlKp5xqyvCjr+wP8UW5d/ hkIK5snyWt5QGlXCZeEWJH2znb6YomFR+TA45zoo5PFSg9VPyhWqs15j0uZZ3WdCwQHV C03X8YP661+pv7jKABFOG9znGqd9+ukq2+V7g4R2omioHMJxRyIpeVrA9L0znqRWDyn0 yCmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697280594; x=1697885394; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NAiku5347ZizUWkMfV4Tpm0aCJ6vyX6cDZT3shueHrI=; b=S3u8s/ahXoAT1uI0Meyctx/HKZnt2UEZM4ZbcBSb5lw/WmqK8euxFUL40f9n/dja36 gxTEFzzzF+DGwgO2U3YXeqf520QhxnjQynn1WgiAIkj9OdqD5kksh66O7FBfcmW+mLzh VOcc5bmN080BzJRH8k1ZJd2PyvmaoNdwnDGkEQIEqB358y0okYxx10pNXXXtX65VMhdD aHCXfd9/c18hsHOHumqxsU/RTJT5B6RM4LIEbA6Sqg3JFQevHFnveyvmSjVKdLNP44mr +gUqs3Oywv8J90YvfaidFnoMPxUdfVa8naE9VrBXENFxRkpfA7r1q5wqW3Ev1oy0kYMJ uHDQ== X-Gm-Message-State: AOJu0Yw+KER4riL+bhU2TejfuMADNl9+MIj5kvj264kO+p6/EFkzYOPG GIhM49ggcFnZI/jgc/mg2LPLTSNTKY67lbDiDdmm X-Received: from vamshig51.c.googlers.com ([fda3:e722:ac3:cc00:3:22c1:c0a8:70c]) (user=vamshigajjela job=sendgmr) by 2002:a25:cf48:0:b0:d9a:3ebc:3220 with SMTP id f69-20020a25cf48000000b00d9a3ebc3220mr358048ybg.11.1697280593824; Sat, 14 Oct 2023 03:49:53 -0700 (PDT) Date: Sat, 14 Oct 2023 16:19:39 +0530 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.655.g421f12c284-goog Message-ID: <20231014104942.856152-1-vamshigajjela@google.com> Subject: [PATCH 0/3] serial core type consistency and overflow checks From: Vamshi Gajjela To: Greg Kroah-Hartman , Jiri Slaby , ilpo.jarvinen@linux.intel.com Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, manugautam@google.com, Subhash Jadavani , Channa Kadabi , VAMSHI GAJJELA X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sat, 14 Oct 2023 03:50:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779727723155566626 X-GMAIL-MSGID: 1779727723155566626 From: VAMSHI GAJJELA This patch series introduces a set of enhancements to the serial core, primarily focusing on improving type consistency and ensuring proper handling of timeout values. The changes aim to enhance the reliability and maintainability of the serial core. VAMSHI GAJJELA (3): serial: core: Potential overflow of frame_time serial: core: Make local variable size to u64 serial: core: Update uart_poll_timeout function to return unsigned int drivers/tty/serial/serial_core.c | 4 ++-- include/linux/serial_core.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)