From nobody Mon Jan 10 19:50:34 2022 X-Original-To: dev-commits-src-main@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 370561954601; Mon, 10 Jan 2022 19:50:36 +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 4JXkvb1dgxz3Nlw; Mon, 10 Jan 2022 19:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 C71D02F2D; Mon, 10 Jan 2022 19:50:34 +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 20AJoYnW006655; Mon, 10 Jan 2022 19:50:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20AJoYks006642; Mon, 10 Jan 2022 19:50:34 GMT (envelope-from git) Date: Mon, 10 Jan 2022 19:50:34 GMT Message-Id: <202201101950.20AJoYks006642@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: c427456fd560 - main - LinuxKPI: Implement kstrtoull List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: c427456fd560d6def83cd3867cc5bf01d20653e5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641844235; 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=rE+McheLBm+LYhn8NLBWV17COzGgcuCZjDVLKySR2+c=; b=l0EuGIDq7A50eQG/OPDlVlNPRMOYgvS/YzxUDCP3L7G5ltii+Vjxz6EZ+F5vRdn+dl6EY1 GIMSG2fe8YxVtxida7kVovR9xFqxn5QlnBAuR6pDgnKRnhStY3ZFyiKpSPWSv12kPnxC66 LtLG1jRyhZFQ/n8Dfa+zvDahfoy0zaYf08RqiXGjeiHbLxXFe1HoaWZU5gw3C98RrCebyL GdeStWUWlAnLKQlxLfb6i0FwtcS9axMV95L9mvkrlnnXUmfl8LXxQYS6WiqZZZpqReeW4Q dNgcnpm6l2SpV+2n882ReyQimVfd+pH+Terc/Ess6GcK/zm6I8MkHLs1Habzdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641844235; a=rsa-sha256; cv=none; b=iOeGpwfjaNb0jVde2BMEJXBqC8SBHHdS1yRjqKWYuNncOFu4v1G6zvXnhdySAUndDfKb/i eL9LoaWVhXLeAnCJdALnVzk5hbbf1MDbeAENdut2cGKky3BxF+eW673pnRDZdaa/qyPP1C QstcwHZsedSz/rSgLQVO95+TBjIiJ4AK59VU6zx+ffrtAAGxtqJhWuDJ6hXLQfvxD/Sca7 4mYYn0Jm14HMwL7cCC0FDQjVP9GMK2Aw8o6RfHsu77/VQweID0bQCAYcyXDGn6BiFWX3K4 cCt9DPc/AUg5FwIIoooC5HZZSJwY22yoc1Eb642pyyrg5gqXk2nGN/R8A9BFNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=c427456fd560d6def83cd3867cc5bf01d20653e5 commit c427456fd560d6def83cd3867cc5bf01d20653e5 Author: Vladimir Kondratyev AuthorDate: 2021-11-23 08:32:38 +0000 Commit: Vladimir Kondratyev CommitDate: 2022-01-10 19:49:37 +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 --- 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 80b684745175..6f917941184f 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) {