All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spice: Fix compilation error
@ 2017-06-29  9:49 zhe.he
  2017-06-29 19:41 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: zhe.he @ 2017-06-29  9:49 UTC (permalink / raw)
  To: meta-virtualization

From: He Zhe <zhe.he@windriver.com>

| ../../git/server/red_parse_qxl.c:367:18: error: 'BITMAP_FMT_IS_RGB'
defined but not used [-Werror=unused-const-variable=]
|  static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1};

Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 ...xl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch | 29 ++++++++++++++++++++++
 recipes-support/spice/spice_git.bb                 |  1 +
 2 files changed, 30 insertions(+)
 create mode 100644 recipes-support/spice/files/0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch

diff --git a/recipes-support/spice/files/0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch b/recipes-support/spice/files/0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch
new file mode 100644
index 0000000..ccae5f5
--- /dev/null
+++ b/recipes-support/spice/files/0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch
@@ -0,0 +1,29 @@
+From 85838d4c9f2322aedb99b38fffd7da95a494d8ed Mon Sep 17 00:00:00 2001
+From: He Zhe <zhe.he@windriver.com>
+Date: Thu, 29 Jun 2017 08:26:35 +0000
+Subject: [PATCH] red_parse_qxl: Fix BITMAP_FMT_IS_RGB defined but not used
+
+| ../../git/server/red_parse_qxl.c:367:18: error: 'BITMAP_FMT_IS_RGB'
+defined but not used [-Werror=unused-const-variable=]
+|  static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1};
+
+Signed-off-by: He Zhe <zhe.he@windriver.com>
+---
+ server/red_parse_qxl.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c
+index 6c0b0658..cfc2da95 100644
+--- a/server/red_parse_qxl.c
++++ b/server/red_parse_qxl.c
+@@ -364,7 +364,6 @@ static int bitmap_consistent(SpiceBitmap *bitmap)
+ 
+ // This is based on SPICE_BITMAP_FMT_*, copied from server/red_worker.c
+ // to avoid a possible unoptimization from making it non static.
+-static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1};
+ 
+ static SpiceImage *red_get_image(RedMemSlotInfo *slots, int group_id,
+                                  QXLPHYSICAL addr, uint32_t flags, int is_mask)
+-- 
+2.11.0
+
diff --git a/recipes-support/spice/spice_git.bb b/recipes-support/spice/spice_git.bb
index 828087a..6f1be3a 100644
--- a/recipes-support/spice/spice_git.bb
+++ b/recipes-support/spice/spice_git.bb
@@ -35,6 +35,7 @@ SRC_URI += " \
         file://spice-fix-CVE-2013-4282.patch \
         file://configure.ac-add-subdir-objects-to-AM_INIT_AUTOMAKE.patch \
         file://build-allow-separated-src-and-build-dirs.patch \
+        file://0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch \
         "
 
 S = "${WORKDIR}/git"
-- 
2.8.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] spice: Fix compilation error
  2017-06-29  9:49 [PATCH] spice: Fix compilation error zhe.he
@ 2017-06-29 19:41 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2017-06-29 19:41 UTC (permalink / raw)
  To: He Zhe; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 3261 bytes --]

merged.

Bruce

On Thu, Jun 29, 2017 at 5:49 AM, <zhe.he@windriver.com> wrote:

> From: He Zhe <zhe.he@windriver.com>
>
> | ../../git/server/red_parse_qxl.c:367:18: error: 'BITMAP_FMT_IS_RGB'
> defined but not used [-Werror=unused-const-variable=]
> |  static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
> 1};
>
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
>  ...xl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch | 29
> ++++++++++++++++++++++
>  recipes-support/spice/spice_git.bb                 |  1 +
>  2 files changed, 30 insertions(+)
>  create mode 100644 recipes-support/spice/files/
> 0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch
>
> diff --git a/recipes-support/spice/files/0001-red_parse_qxl-Fix-BITMAP_
> FMT_IS_RGB-defined-but-not-.patch b/recipes-support/spice/files/
> 0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch
> new file mode 100644
> index 0000000..ccae5f5
> --- /dev/null
> +++ b/recipes-support/spice/files/0001-red_parse_qxl-Fix-BITMAP_
> FMT_IS_RGB-defined-but-not-.patch
> @@ -0,0 +1,29 @@
> +From 85838d4c9f2322aedb99b38fffd7da95a494d8ed Mon Sep 17 00:00:00 2001
> +From: He Zhe <zhe.he@windriver.com>
> +Date: Thu, 29 Jun 2017 08:26:35 +0000
> +Subject: [PATCH] red_parse_qxl: Fix BITMAP_FMT_IS_RGB defined but not used
> +
> +| ../../git/server/red_parse_qxl.c:367:18: error: 'BITMAP_FMT_IS_RGB'
> +defined but not used [-Werror=unused-const-variable=]
> +|  static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1,
> 1};
> +
> +Signed-off-by: He Zhe <zhe.he@windriver.com>
> +---
> + server/red_parse_qxl.c | 1 -
> + 1 file changed, 1 deletion(-)
> +
> +diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c
> +index 6c0b0658..cfc2da95 100644
> +--- a/server/red_parse_qxl.c
> ++++ b/server/red_parse_qxl.c
> +@@ -364,7 +364,6 @@ static int bitmap_consistent(SpiceBitmap *bitmap)
> +
> + // This is based on SPICE_BITMAP_FMT_*, copied from server/red_worker.c
> + // to avoid a possible unoptimization from making it non static.
> +-static const int BITMAP_FMT_IS_RGB[] = {0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1};
> +
> + static SpiceImage *red_get_image(RedMemSlotInfo *slots, int group_id,
> +                                  QXLPHYSICAL addr, uint32_t flags, int
> is_mask)
> +--
> +2.11.0
> +
> diff --git a/recipes-support/spice/spice_git.bb b/recipes-support/spice/
> spice_git.bb
> index 828087a..6f1be3a 100644
> --- a/recipes-support/spice/spice_git.bb
> +++ b/recipes-support/spice/spice_git.bb
> @@ -35,6 +35,7 @@ SRC_URI += " \
>          file://spice-fix-CVE-2013-4282.patch \
>          file://configure.ac-add-subdir-objects-to-AM_INIT_AUTOMAKE.patch
> \
>          file://build-allow-separated-src-and-build-dirs.patch \
> +        file://0001-red_parse_qxl-Fix-BITMAP_FMT_IS_RGB-defined-but-not-.patch
> \
>          "
>
>  S = "${WORKDIR}/git"
> --
> 2.8.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 4787 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-29 19:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29  9:49 [PATCH] spice: Fix compilation error zhe.he
2017-06-29 19:41 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.