diff options
-rw-r--r-- | meta-filesystems/recipes-filesystems/zfs/zfs/0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch | 46 | ||||
-rw-r--r-- | meta-filesystems/recipes-filesystems/zfs/zfs_2.1.11.bb | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-filesystems/zfs/zfs/0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch b/meta-filesystems/recipes-filesystems/zfs/zfs/0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch new file mode 100644 index 0000000000..f1cfab4daf --- /dev/null +++ b/meta-filesystems/recipes-filesystems/zfs/zfs/0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 1f9a5cb860b3509791e59a8cae9d5f265e832ed0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 28 May 2023 16:33:15 -0700 | ||
4 | Subject: [PATCH] fs-tests/cmd/readmmap: Replace uint_t with uint32_t | ||
5 | |||
6 | Makes it portable across glibc and musl | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | tests/zfs-tests/cmd/readmmap.c | 5 +++-- | ||
12 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/tests/zfs-tests/cmd/readmmap.c b/tests/zfs-tests/cmd/readmmap.c | ||
15 | index 704ffd55c8..a2590e0e8d 100644 | ||
16 | --- a/tests/zfs-tests/cmd/readmmap.c | ||
17 | +++ b/tests/zfs-tests/cmd/readmmap.c | ||
18 | @@ -38,6 +38,7 @@ | ||
19 | * 0 : no errors | ||
20 | * -------------------------------------------------------------- | ||
21 | */ | ||
22 | +#include <stdint.h> | ||
23 | #include <stdio.h> | ||
24 | #include <stdlib.h> | ||
25 | #include <unistd.h> | ||
26 | @@ -55,7 +56,7 @@ main(int argc, char **argv) | ||
27 | char *buf = NULL; | ||
28 | char *map = NULL; | ||
29 | int fd = -1, bytes, retval = 0; | ||
30 | - uint_t seed; | ||
31 | + uint32_t seed; | ||
32 | |||
33 | if (argc < 2 || optind == argc) { | ||
34 | (void) fprintf(stderr, | ||
35 | @@ -92,7 +93,7 @@ main(int argc, char **argv) | ||
36 | retval = 1; | ||
37 | goto end; | ||
38 | } | ||
39 | - seed = (uint_t)time(NULL); | ||
40 | + seed = (uint32_t)time(NULL); | ||
41 | srandom(seed); | ||
42 | |||
43 | idx = random() % size; | ||
44 | -- | ||
45 | 2.40.1 | ||
46 | |||
diff --git a/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.11.bb b/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.11.bb index 942f5f9de1..bd463b8acc 100644 --- a/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.11.bb +++ b/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.11.bb | |||
@@ -8,6 +8,7 @@ SRCREV = "0f03a411615a797425de488eecfaaf63fc41acfe" | |||
8 | SRC_URI = "git://github.com/openzfs/zfs;protocol=https;branch=master \ | 8 | SRC_URI = "git://github.com/openzfs/zfs;protocol=https;branch=master \ |
9 | file://0001-Define-strndupa-if-it-does-not-exist.patch \ | 9 | file://0001-Define-strndupa-if-it-does-not-exist.patch \ |
10 | file://aaf28a4630af60496c9d33db1d06a7d7d8983422.patch \ | 10 | file://aaf28a4630af60496c9d33db1d06a7d7d8983422.patch \ |
11 | file://0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch \ | ||
11 | " | 12 | " |
12 | 13 | ||
13 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |