diff options
author | 2024-10-02 07:59:17 +0200 | |
---|---|---|
committer | 2024-10-02 07:59:17 +0200 | |
commit | befc038ba7247e93c8b224942fcca2c4a9e32717 (patch) | |
tree | 950eaff689ddf97a580c2969891a193643bce8fb /0009-9pfsd-fix-release-build-with-old-gcc.patch | |
parent | Xen 4.18.3-pre-patchset-0 (diff) | |
download | xen-upstream-patches-befc038ba7247e93c8b224942fcca2c4a9e32717.tar.gz xen-upstream-patches-befc038ba7247e93c8b224942fcca2c4a9e32717.tar.bz2 xen-upstream-patches-befc038ba7247e93c8b224942fcca2c4a9e32717.zip |
Xen 4.19.1-pre-patchset-04.19.1-pre-patchset-0
Signed-off-by: Tomáš Mózes <tomas.mozes@gmail.com>
Diffstat (limited to '0009-9pfsd-fix-release-build-with-old-gcc.patch')
-rw-r--r-- | 0009-9pfsd-fix-release-build-with-old-gcc.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/0009-9pfsd-fix-release-build-with-old-gcc.patch b/0009-9pfsd-fix-release-build-with-old-gcc.patch new file mode 100644 index 0000000..6d6f2ef --- /dev/null +++ b/0009-9pfsd-fix-release-build-with-old-gcc.patch @@ -0,0 +1,33 @@ +From 8ad5a8c5c36add2eee70a7253da4098ebffdb79b Mon Sep 17 00:00:00 2001 +From: Jan Beulich <jbeulich@suse.com> +Date: Thu, 8 Aug 2024 13:47:44 +0200 +Subject: [PATCH 09/35] 9pfsd: fix release build with old gcc + +Being able to recognize that "par" is reliably initialized on the 1st +loop iteration requires not overly old compilers. + +Fixes: 7809132b1a1d ("tools/xen-9pfsd: add 9pfs response generation support") +Signed-off-by: Jan Beulich <jbeulich@suse.com> +Reviewed-by: Juergen Gross <jgross@suse.com> +master commit: 984cb316cb27b53704c607e640a7dd2763b898ab +master date: 2024-08-02 08:44:22 +0200 +--- + tools/9pfsd/io.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/9pfsd/io.c b/tools/9pfsd/io.c +index df1be3df7d..468e0241f5 100644 +--- a/tools/9pfsd/io.c ++++ b/tools/9pfsd/io.c +@@ -196,7 +196,7 @@ static void fill_buffer_at(void **data, const char *fmt, ...); + static void vfill_buffer_at(void **data, const char *fmt, va_list ap) + { + const char *f; +- const void *par; ++ const void *par = NULL; /* old gcc */ + const char *str_val; + const struct p9_qid *qid; + const struct p9_stat *stat; +-- +2.46.1 + |