From nobody Thu Aug 01 22:27:42 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WZk9q6nnSz5RZN0; Thu, 01 Aug 2024 22:27:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZk9p44QQz4Z1l; Thu, 1 Aug 2024 22:27:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GsrRceYU7bueKJuQuuG4ux2jZp9Qgyfxnly72tZIaZI=; b=snL8W+Vs/Z3fGotZB/7uql63EMhdQk+NHStaZIZ3Q1+MszcUHwFqr6t1mKqKb+HYiZkNCY b2d9bhRethr3ve1/9u0OJotHetP5l1tNaXS7UVgXoNr/chotcc11AU+mg5J1/Nu1LeYJkE LxDGwBtOhbK7dZQg6nsIEFIgeV57GgxtqaYsJKIq1oLjmQz7vrtHT9fzLxL94wQD9fAhiS CR6DxaNaRE4Krrx7sqQoRjXc4l81amuKSqN1Oj+UYyZpieAKsDslxXjZvmxGLVHdTEDTBS 1z3Lm9IFDTfS8JFeB+SMTsgtCMv9xJLA9221hAS1ZqAxftznb9S73txqtazlcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551262; a=rsa-sha256; cv=none; b=B0hMz7XNDovx+M7MlzRKS3HZNIOY1U90Do5eXy4Ko6Ne7hhTYJxppyaLU4V1KTCKKfrENf YCcojToAiEhGsszl2FzV/j0PUQJUTE/YMKSSDWpxhCXS3AtMsfyksGtBIrzoIdSOdtBByw e3T3KbbZFbOGPfk2Sb0hDAgP6n4bMNxLyBv0qqWSzlgrcr6WQIp2v7boUgmZUq1aPHnM+2 B8m2EfyW+2ewHCx7QMcyngGQN+mxG/HSuvAKa6w+5IkcsdLk6Km44ctzdBVEN0L3IX5mee 3rbPmDxmcJ5az5yKhoGMjeXIPqdsbauAuXZ3xMzazOonzPXVj0Bmx2DqyHI+Tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551262; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GsrRceYU7bueKJuQuuG4ux2jZp9Qgyfxnly72tZIaZI=; b=qu97TciAoJgmE5oDOxTbhlrZFrjZwzu5DXQINI3GkPQcUKRrdSFosYgLkmRPr7zy5QBnBP Ot9kGotvBVXSo88qM6hkyeQ8NNR1UMKH9I6oHGRx1Dm8a3qYrkkPlKgxsyRsoBchLlh/5t REPJ+bQ0BKw4yNAkveVRxtJlTfmgDumCtOvil/TFr4q/AkCnEAu5BaQpowp19RGvmtkOag LSQrZBco1O/UQ1+ZbFPMt4d6SkRGNf1d2eni4uhFy6YXXhbgP+RGv6tenyq6TCSWhOFgrY lKoEj/aMFC2ElS8Jb9NtV/ZfDFMsdIRzbrEJ1taPloWa0DjUVo/IIlaJz9OYbg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WZk9p3WXGz12np; Thu, 1 Aug 2024 22:27:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471MRgsb027728; Thu, 1 Aug 2024 22:27:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRg95027725; Thu, 1 Aug 2024 22:27:42 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:42 GMT Message-Id: <202408012227.471MRg95027725@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 89e36e9f296b - stable/14 - LinuxKPI: Add kstrtoll to linux/kstrtox.h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 89e36e9f296b9592d70798abaa5a6e1edfdb63ad Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=89e36e9f296b9592d70798abaa5a6e1edfdb63ad commit 89e36e9f296b9592d70798abaa5a6e1edfdb63ad Author: Vladimir Kondratyev AuthorDate: 2024-06-06 20:42:07 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:40 +0000 LinuxKPI: Add kstrtoll to linux/kstrtox.h kstrtoll converts a string to a long long. Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: bz, emaste Differential Revision: https://reviews.freebsd.org/D45455 (cherry picked from commit d207a2dee332706c352bf35c7e6ecea5240b1ceb) --- sys/compat/linuxkpi/common/include/linux/kstrtox.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/kstrtox.h b/sys/compat/linuxkpi/common/include/linux/kstrtox.h index 5dfc56d40d6e..b723bd4a6fd0 100644 --- a/sys/compat/linuxkpi/common/include/linux/kstrtox.h +++ b/sys/compat/linuxkpi/common/include/linux/kstrtox.h @@ -7,6 +7,7 @@ * Copyright (c) 2018 Johannes Lundberg * Copyright (c) 2020-2022 The FreeBSD Foundation * Copyright (c) 2021 Vladimir Kondratyev + * Copyright (c) 2023 Serenity Cyber Security, LLC * * Portions of this software were developed by Bjoern A. Zeeb and * Emmanuel Vadot under sponsorship from the FreeBSD Foundation. @@ -193,6 +194,12 @@ kstrtos64(const char *cp, unsigned int base, s64 *res) return (0); } +static inline int +kstrtoll(const char *cp, unsigned int base, long long *res) +{ + return (kstrtos64(cp, base, (s64 *)res)); +} + static inline int kstrtou64(const char *cp, unsigned int base, u64 *res) {