From nobody Sat Jan 22 19:36:21 2022 X-Original-To: dev-commits-src-branches@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 6BE5E196B29A; Sat, 22 Jan 2022 19:36:24 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jh61g1rf7z3RJh; Sat, 22 Jan 2022 19:36:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642880183; 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=sVPH8EN+FG1q5692PjzuInhl3wka8fZ9YDHSIjeP1ts=; b=Y57Ta7KuMbbEpL70y1cgGazy8nzHmHlo7i1eSn8sMEqApUSryQl2SPSxaACEwE/xv8Mqs6 V/PkzbP2XXU1AmPEEupJrfPcGee42xQYKERNa+eOQnUEzJVhnurJakiBIRN6gMC6BxMsmY OcKbup1DRTb2tHznTqFnd6P5UVbxLH5wb+8XrqmSv7vrQrXrYoL8iL5OnYrCB0pu2ryS/z dvD3C223AobLpCbJbt9SsjM88831on9uLRAPshJVFyeYGTi/eodUgbDptd2aQFEpT04vAM Cetnfjyyw0GEfJoh4jdDAJ80y7/XAl5ae1hcj0ieZ817vxaJ8vwuaQMpk6btOQ== 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 9062E14B62; Sat, 22 Jan 2022 19:36:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20MJaLV9099912; Sat, 22 Jan 2022 19:36:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20MJaLdM099911; Sat, 22 Jan 2022 19:36:21 GMT (envelope-from git) Date: Sat, 22 Jan 2022 19:36:21 GMT Message-Id: <202201221936.20MJaLdM099911@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: b30c7948546b - stable/13 - LinuxKPI: Implement kstrtoull List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/13 X-Git-Reftype: branch X-Git-Commit: b30c7948546bed2f4f6e3a0f5c5dc0337ce06acf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642880183; 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=sVPH8EN+FG1q5692PjzuInhl3wka8fZ9YDHSIjeP1ts=; b=rDuKl8Rw6Knv2NHxmDIYnbuUJf0OmWxyH6ricxXfTUzILcJ7vs1P3loDIV0qg6lvMmIa0n 3qojsjPvFJ+O9bQo6mGjxCB1nOr+UtI6iDRiUBrrBimZOC6hlmIPemEZ9LtT9P5UTz48Ao 2EEp4V6454WgIoJpqVgMbDIO/6HdbGVf5DGyTU7cHQ+bCh8Htc0WgS5L97BC1mkxQKwLEO XvvsWC287QuXBOXj7IQI5Pc+oRdT8fSsrIBnYpcso+zdescn3SCjvjI65YETSmAyseag/6 rQ8qYsKC9GcyTbbc99E7mGMHhEDR0YQiGWfYmQblPM5YoMaDzoMWs1kgzCjscw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642880183; a=rsa-sha256; cv=none; b=U/oY11VmepSjV5lRCN3Ib1KwAkPamup/q7+pw6qV+P4LtudygcPlbPdiBz7BHe2F1YUbkD LJ/lzNVZm9Jyh0axlkD7atw0m0czrB0CXKzQ29BKmNiA7Y46W5/uP1d5/3VLHgM2KL2YIv 9wpl4tGdcI8X6ROYWnQmyBKAlgD6F+XyT0BiSUA3AOseOJVxfy9aVYbN3Sc9ACZTKqCKXQ 56BwtnrpdVfSF8EQX531Cauzivi1VY+mpTntDmR1e6VPYnoZioBBI+P0jPWZKMHxHDaTlW 4EPLCpjyrBrAZTstvbdLumxev0BRcoH/nWxAB/UJCDohBoWN2tH82Yx8UXJx7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=b30c7948546bed2f4f6e3a0f5c5dc0337ce06acf commit b30c7948546bed2f4f6e3a0f5c5dc0337ce06acf Author: Vladimir Kondratyev AuthorDate: 2021-11-23 08:32:38 +0000 Commit: Vladimir Kondratyev CommitDate: 2022-01-22 19:34:36 +0000 LinuxKPI: Implement kstrtoull Required by drm-kmod 5.7 MFC after: 1 week Reviewed by: hselasky, manu Differential Revision: https://reviews.freebsd.org/D33291 (cherry picked from commit c427456fd560d6def83cd3867cc5bf01d20653e5) --- sys/compat/linuxkpi/common/include/linux/kernel.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h index 8690d9efa1f2..d3083c9adf17 100644 --- a/sys/compat/linuxkpi/common/include/linux/kernel.h +++ b/sys/compat/linuxkpi/common/include/linux/kernel.h @@ -465,6 +465,12 @@ kstrtou64(const char *cp, unsigned int base, u64 *res) return (0); } +static inline int +kstrtoull(const char *cp, unsigned int base, unsigned long long *res) +{ + return (kstrtou64(cp, base, (u64 *)res)); +} + static inline int kstrtobool(const char *s, bool *res) {