From nobody Fri Apr 28 08:57:16 2023 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 4Q761T1wKXz48CNj; Fri, 28 Apr 2023 08:57:17 +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 4Q761T11Bbz4Rxt; Fri, 28 Apr 2023 08:57:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682672237; 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=y4ttkOkDQZ0vq38M1SSHwCn+exNHag2OUokaTmtdDlw=; b=f1Yttw1NDISwBLX2pZzqrxWfqf2ynjKWQL44950QaInZtcZFcetld241ybSJEOpIAp7F5u hmpeEQVlo2QVYIyIIcqZJUHB0OnLjuTDf/H7xBr+1sPuHAqtlHoXUBogu8JURjx4kjUWvG 2ViMnm1oLqXm14HVHmx7eUQCezgsKTkqg735U4qEZyxKH/qbvVDuVx9Cw1lGbVidZNcnpE vaINX9poZP3O5X33Aj94M73oAACn3jKBiByPE+XsDYWk2qtiAAExrZr1TYDgp6IXQjk0ST QAZirKbh+3E74Lowc7RSUaCmp2Lq69+aiaPJw5p/PY7m0GMzZcNQC/LdhCCm/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682672237; 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=y4ttkOkDQZ0vq38M1SSHwCn+exNHag2OUokaTmtdDlw=; b=QIufsVlu2QuUu7hg2DNvQDMxGNeQ6weKGbEU3vdokTg/tCtpGY4CJq/OFQrLZyMtICDOiY NM6VLx7mL2FKUUUvHqII0/1QlXA740ATk/XM40yYYDyQH1Ra4dOYTkXfTr8Zk+iaRn27BT 71bMhZlww2JaT2L5pQjfxZxSj6F3TCsk01aJNFjeqAFzJ/QWV5pOLl+Cb4LCGBAQig1WRl P7UL1EHL2G1Aur3wlQGpI9HfmcJMRF6sdk6sh55Al+bvFx567E9c6V0WUhun2gEsUPIhD9 hkyikXsCBzo1p9SV2Ee7i+Xj7NaaneLEbPQZ2J3gw3Q7aTreD0qShtBhppwMxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682672237; a=rsa-sha256; cv=none; b=NKac87O/4Hl4nBgjR/KHvkS1uYgPAvtcBFXD+Wy+O2uk9eE9M9K/ijl6dxxJNBONK650NS V/8r+S422RtHASXJ+KsHN4QQF+jm4I+/9jTYAKWLWmgz5hNJfcFyIXL/yYvV00Beg7k/GO rdVnAdk/cIQu8CoiiqcG5KOJ6B1wwkIDk0UNpx+Lk4lNzW7BltDnoRsaC0rIZWUDDIXR9X U0ihiJw6rrIAN/tPGDGf6Rnv1+iuoPieQzbZ5vzJA0HJ/tWI6A4Gl8Lg8XC0b56JHr+1RF FlZUpNn2ypgdG3iabY23F45BiTqhHYP6IyHOOvRcfiiH2mEb3BdQxMOsb59ylQ== 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 4Q761T03ZKztXT; Fri, 28 Apr 2023 08:57:17 +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 33S8vGct018070; Fri, 28 Apr 2023 08:57:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33S8vGiN018069; Fri, 28 Apr 2023 08:57:16 GMT (envelope-from git) Date: Fri, 28 Apr 2023 08:57:16 GMT Message-Id: <202304280857.33S8vGiN018069@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: ca3333dd4a3b - main - linux(4): Use Linux dev_t type for mknod syscalls dev argument 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ca3333dd4a3bef7b615d5df104c525f8cac51b26 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=ca3333dd4a3bef7b615d5df104c525f8cac51b26 commit ca3333dd4a3bef7b615d5df104c525f8cac51b26 Author: Dmitry Chagin AuthorDate: 2023-04-28 08:55:02 +0000 Commit: Dmitry Chagin CommitDate: 2023-04-28 08:55:02 +0000 linux(4): Use Linux dev_t type for mknod syscalls dev argument As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer on all platforms. Prior the 2.6 kernel dev_t type was an unsigned short. However, since the firs commit of the Linuxulator, mknod syscall get int dev argument. Also, there is some confusion here, while the kernel declares a dev_t type as a 32-bit sized, the user-space dev_t type can be size of 64 bits, e.g., in the Glibc library. To avoid confusion and to help porting of the Linuxulator to other platforms use explicit l_dev_t for dev argument of mknod syscalls. --- sys/amd64/linux/syscalls.master | 4 ++-- sys/amd64/linux32/syscalls.master | 2 +- sys/arm64/linux/syscalls.master | 2 +- sys/i386/linux/syscalls.master | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/amd64/linux/syscalls.master b/sys/amd64/linux/syscalls.master index a2ac67c2d126..420c029fa892 100644 --- a/sys/amd64/linux/syscalls.master +++ b/sys/amd64/linux/syscalls.master @@ -874,7 +874,7 @@ int linux_mknod( char *path, l_mode_t mode, - l_uint dev + l_dev_t dev ); } 134 AUE_USELIB UNIMPL uselib @@ -1503,7 +1503,7 @@ l_int dfd, const char *filename, l_mode_t mode, - l_uint dev + l_dev_t dev ); } 260 AUE_FCHOWNAT STD { diff --git a/sys/amd64/linux32/syscalls.master b/sys/amd64/linux32/syscalls.master index bd145c8ee7e1..777ffd865b8b 100644 --- a/sys/amd64/linux32/syscalls.master +++ b/sys/amd64/linux32/syscalls.master @@ -1616,7 +1616,7 @@ l_int dfd, const char *filename, l_int mode, - l_uint dev + l_dev_t dev ); } 298 AUE_FCHOWNAT STD { diff --git a/sys/arm64/linux/syscalls.master b/sys/arm64/linux/syscalls.master index f4c2acca435d..2a564f0e3c5d 100644 --- a/sys/arm64/linux/syscalls.master +++ b/sys/arm64/linux/syscalls.master @@ -204,7 +204,7 @@ l_int dfd, const char *filename, l_int mode, - l_uint dev + l_dev_t dev ); } 34 AUE_MKDIRAT STD { diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master index c889cc4affe4..9175bcd45dcf 100644 --- a/sys/i386/linux/syscalls.master +++ b/sys/i386/linux/syscalls.master @@ -1633,7 +1633,7 @@ l_int dfd, const char *filename, l_int mode, - l_uint dev + l_dev_t dev ); } 298 AUE_FCHOWNAT STD {