From nobody Thu Aug 01 22:27:43 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 4WZk9r33tJz5RZZL; Thu, 01 Aug 2024 22:27:44 +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 4WZk9q5GBRz4Z6D; Thu, 1 Aug 2024 22:27:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551263; 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=QSIdV9pgptEaBbNURAzhdLSexnNfXqHe1JXUDDQhq64=; b=el8EkwIvepFtYnaCucpCgB4UYUNr0wlNJ7wTF27MPqBT6xQMJSrl959pCgYWgnjh5GW8dF bu6tHBg5tG/oCua8EPnsZPNbDMh79QK9tFwSjU/BBAfmtoZ8mcLVNFmmr3qbxhHRVW7h+p 9AoHsBRe/exrsJ89dJtEKCEeo7rqJP/SCMurxHTYn3DN4qPJZdrX5tK513jEnsjZ4YZDD0 rbngRq6k2dcugG02blD6vmDwZd0xSRyYwJ5b+TtOWWjfqnbKbUtaXJctQ/tq+N9hPbI5lh Bl1lEKvrBZ4bLgT3wLRm/XbjsezV830cE0zmO6Bc3ZvQmtdIK3mygWQ1BT3hmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551263; a=rsa-sha256; cv=none; b=D+o53wS1IIxz7XToZqU+qZ7wEnmCXmTUTpgIkhSffvpE8DQle6ppNS+Et2H1p0uEKJv5A8 eFEagqsEeY+SxzoKeZzi08uVf+o+WONEXt7AqTU2Kl28+U6lQcG9faAEzqnHdC6SINrK2x vpY9j4TTIk+9alPod2ex7ZK2laxvkJz1mXtGrgIVnrGGt1AYg+cn/qvsiGCNr7z1jAtgRh ispT0aQc+1SkLtHFcy9gA7nvxPr5Ki+dtLNPZ+Wb9YqIqVKxTgQLOAlFl4Dt0V2yE+PrD0 douHFi07BV9/NT/AHefY2JP3FIA/rIrehFmQar9584vjuqXKZ7tstGklTocq/w== 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=1722551263; 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=QSIdV9pgptEaBbNURAzhdLSexnNfXqHe1JXUDDQhq64=; b=DvlxyA4DkpxDuN6IjUs5aaNxbN51RQ/A0rOB8qEYXLElO6Vgec28pVeaY5DCvFc7nVn3B+ oGjgEESui201T2rE/lewEMmi2NoiE6GmJ4R99oSh8mpvl5k7Dw07JrfUNQxprSyW9vyNpp vrzrLqMYhvCGcSkLiQl7d2CRsA84v0erhAVOtoz1qkzid/cdmyk7PcoEu1Pucd+/0FBJyy 5YPcKh0I4GXmpsUYwfUQUbw3mo2Y/e7kWNV8SOhRm69fvlrSoucbGH9rxGxng8tH9Dolbq SBcz97fvbmIE4hci0ENR00o+nR7Ui8zfTLFnsb186An8Jk61Qnl2DkKziUE4pg== 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 4WZk9q4tKHz12tK; Thu, 1 Aug 2024 22:27:43 +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 471MRhiL027787; Thu, 1 Aug 2024 22:27:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRhpu027784; Thu, 1 Aug 2024 22:27:43 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:43 GMT Message-Id: <202408012227.471MRhpu027784@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: ad02fbb03652 - stable/14 - LinuxKPI: Convert Linux integer types to ISO C99 in 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: ad02fbb0365238f277b93a8aa5092961c3331efa Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=ad02fbb0365238f277b93a8aa5092961c3331efa commit ad02fbb0365238f277b93a8aa5092961c3331efa Author: Vladimir Kondratyev AuthorDate: 2024-06-06 20:42:07 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:40 +0000 LinuxKPI: Convert Linux integer types to ISO C99 in linux/kstrtox.h Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: bz, emaste Differential Revision: https://reviews.freebsd.org/D45465 (cherry picked from commit db42bd1f71b1a29b392aacbd5b7aaca4c8d7e85d) --- sys/compat/linuxkpi/common/include/linux/kstrtox.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/kstrtox.h b/sys/compat/linuxkpi/common/include/linux/kstrtox.h index b723bd4a6fd0..0567aa99f7a4 100644 --- a/sys/compat/linuxkpi/common/include/linux/kstrtox.h +++ b/sys/compat/linuxkpi/common/include/linux/kstrtox.h @@ -137,7 +137,7 @@ kstrtouint(const char *cp, unsigned int base, unsigned int *res) } static inline int -kstrtou8(const char *cp, unsigned int base, u8 *res) +kstrtou8(const char *cp, unsigned int base, uint8_t *res) { char *end; unsigned long temp; @@ -149,13 +149,13 @@ kstrtou8(const char *cp, unsigned int base, u8 *res) end++; if (*cp == 0 || *end != 0) return (-EINVAL); - if (temp != (u8)temp) + if (temp != (uint8_t)temp) return (-ERANGE); return (0); } static inline int -kstrtou16(const char *cp, unsigned int base, u16 *res) +kstrtou16(const char *cp, unsigned int base, uint16_t *res) { char *end; unsigned long temp; @@ -167,20 +167,20 @@ kstrtou16(const char *cp, unsigned int base, u16 *res) end++; if (*cp == 0 || *end != 0) return (-EINVAL); - if (temp != (u16)temp) + if (temp != (uint16_t)temp) return (-ERANGE); return (0); } static inline int -kstrtou32(const char *cp, unsigned int base, u32 *res) +kstrtou32(const char *cp, unsigned int base, uint32_t *res) { return (kstrtouint(cp, base, res)); } static inline int -kstrtos64(const char *cp, unsigned int base, s64 *res) +kstrtos64(const char *cp, unsigned int base, int64_t *res) { char *end; @@ -197,7 +197,7 @@ kstrtos64(const char *cp, unsigned int base, s64 *res) static inline int kstrtoll(const char *cp, unsigned int base, long long *res) { - return (kstrtos64(cp, base, (s64 *)res)); + return (kstrtos64(cp, base, (int64_t *)res)); } static inline int @@ -218,7 +218,7 @@ kstrtou64(const char *cp, unsigned int base, u64 *res) static inline int kstrtoull(const char *cp, unsigned int base, unsigned long long *res) { - return (kstrtou64(cp, base, (u64 *)res)); + return (kstrtou64(cp, base, (uint64_t *)res)); } static inline int @@ -301,7 +301,7 @@ kstrtou32_from_user(const char __user *s, size_t count, unsigned int base, static inline int kstrtou8_from_user(const char __user *s, size_t count, unsigned int base, - u8 *p) + uint8_t *p) { char buf[8] = {};