diff options
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch | 32 | ||||
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch | 40 | ||||
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.3.bb (renamed from meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb) | 4 |
3 files changed, 1 insertions, 75 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch deleted file mode 100644 index f493a3051e..0000000000 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0001-Fix-typecast-warning-with-clang.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 0a64c5ad17786796d84390e480a38b4f762229ae Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 18 Dec 2024 19:20:39 -0800 | ||
4 | Subject: [PATCH v2] Fix typecast warning with clang | ||
5 | |||
6 | Fixes | ||
7 | file.c:200:8: error: assigning to 'char *' from 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] | ||
8 | |||
9 | Upstream-Status: Submitted [https://marc.info/?l=linux-nfs&m=173463533411103&w=2] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | Cc: Benjamin Coddington <bcodding@redhat.com> | ||
12 | Cc: Steve Dickson <steved@redhat.com> | ||
13 | --- | ||
14 | v2: Make base as const char pointer insread of trying type punning | ||
15 | |||
16 | support/nsm/file.c | 3 ++- | ||
17 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/support/nsm/file.c b/support/nsm/file.c | ||
20 | index de122b0f..68f99bf0 100644 | ||
21 | --- a/support/nsm/file.c | ||
22 | +++ b/support/nsm/file.c | ||
23 | @@ -184,7 +184,8 @@ static char * | ||
24 | nsm_make_temp_pathname(const char *pathname) | ||
25 | { | ||
26 | size_t size; | ||
27 | - char *path, *base; | ||
28 | + char *path; | ||
29 | + const char *base; | ||
30 | int len; | ||
31 | |||
32 | size = strlen(pathname) + sizeof(".new") + 1; | ||
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch deleted file mode 100644 index a99ba284e0..0000000000 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From cc59a7fe15b6ca2ee43cba0dc1d699323b36ffcc Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Fri, 21 Mar 2025 10:42:56 +0100 | ||
4 | Subject: [PATCH] support/nfs/xcommon.c: fix a formatting error with clang | ||
5 | |||
6 | Specifically, this happens: | ||
7 | |||
8 | | xcommon.c:101:24: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | ||
9 | | 101 | vfprintf (stderr, fmt2, args); | ||
10 | | | ^~~~ | ||
11 | |||
12 | A similar approach (print \n seprately) is already used elsewhere in | ||
13 | the same file. | ||
14 | |||
15 | Upstream-Status: Submitted [via email to steved@redhat.com,linux-nfs@vger.kernel.org] | ||
16 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
17 | --- | ||
18 | support/nfs/xcommon.c | 6 ++---- | ||
19 | 1 file changed, 2 insertions(+), 4 deletions(-) | ||
20 | |||
21 | diff --git a/support/nfs/xcommon.c b/support/nfs/xcommon.c | ||
22 | index 3989f0b..1d04dd1 100644 | ||
23 | --- a/support/nfs/xcommon.c | ||
24 | +++ b/support/nfs/xcommon.c | ||
25 | @@ -94,13 +94,11 @@ xstrconcat4 (const char *s, const char *t, const char *u, const char *v) { | ||
26 | void | ||
27 | nfs_error (const char *fmt, ...) { | ||
28 | va_list args; | ||
29 | - char *fmt2; | ||
30 | |||
31 | - fmt2 = xstrconcat2 (fmt, "\n"); | ||
32 | va_start (args, fmt); | ||
33 | - vfprintf (stderr, fmt2, args); | ||
34 | + vfprintf (stderr, fmt, args); | ||
35 | + fprintf (stderr, "\n"); | ||
36 | va_end (args); | ||
37 | - free (fmt2); | ||
38 | } | ||
39 | |||
40 | /* Make a canonical pathname from PATH. Returns a freshly malloced string. | ||
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.3.bb index 1f3afa0560..9668ac0e86 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.2.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.8.3.bb | |||
@@ -22,13 +22,11 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x | |||
22 | file://nfsserver \ | 22 | file://nfsserver \ |
23 | file://nfscommon \ | 23 | file://nfscommon \ |
24 | file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ | 24 | file://0001-locktest-Makefile.am-Do-not-use-build-flags.patch \ |
25 | file://0001-Fix-typecast-warning-with-clang.patch \ | ||
26 | file://0004-Use-nogroup-for-nobody-group.patch \ | 25 | file://0004-Use-nogroup-for-nobody-group.patch \ |
27 | file://0005-find-OE-provided-Kerberos.patch \ | 26 | file://0005-find-OE-provided-Kerberos.patch \ |
28 | file://0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch \ | ||
29 | " | 27 | " |
30 | 28 | ||
31 | SRC_URI[sha256sum] = "a39bbea76ac0ab9e6e8699caf3c308b6b310c20d458e8fa8606196d358e7fb15" | 29 | SRC_URI[sha256sum] = "11e7c5847a8423a72931c865bd9296e7fd56ff270a795a849183900961711725" |
32 | 30 | ||
33 | # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will | 31 | # Only kernel-module-nfsd is required here (but can be built-in) - the nfsd module will |
34 | # pull in the remainder of the dependencies. | 32 | # pull in the remainder of the dependencies. |