All of lore.kernel.org
 help / color / mirror / Atom feed
From: Armin Kuster <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [warrior][patch 05/34] openhpi: update openhpi-fix-testfail-errors.patch
Date: Mon, 20 May 2019 20:56:05 -0700	[thread overview]
Message-ID: <3ee48cdd625a0b632511106272374fabff63e0fa.1558410874.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1558410874.git.akuster808@gmail.com>

From: Yi Zhao <yi.zhao@windriver.com>

The openhpi-fix-testfail-errors.patch tries to fix 2 saftest failures.
But the second fix is not correct. It should not return false when there
is no surrogate pairs since for the code points in UTF-16 Basic
Multilingual Plane (BMP), there is no need surrogate pairs. We should
update saftest case to fix this failure.

Also add more description for the first fix.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 ...penhpi-fix-function-saHpiSensorThresholds.patch | 35 ++++++++++++++++++++++
 .../files/openhpi-fix-testfail-errors.patch        | 33 --------------------
 .../recipes-daemons/openhpi/openhpi_3.8.0.bb       |  2 +-
 3 files changed, 36 insertions(+), 34 deletions(-)
 create mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-function-saHpiSensorThresholds.patch
 delete mode 100644 meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch

diff --git a/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-function-saHpiSensorThresholds.patch b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-function-saHpiSensorThresholds.patch
new file mode 100644
index 0000000..b2771c0
--- /dev/null
+++ b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-function-saHpiSensorThresholds.patch
@@ -0,0 +1,35 @@
+From e0b2be7a1fce0fed63bac8c350b711b69edfe30e Mon Sep 17 00:00:00 2001
+From: "yanjun.zhu" <yanjun.zhu@windriver.com>
+Date: Tue, 30 Apr 2019 10:04:58 +0800
+Subject: [PATCH] openhpid/safhpi.c: fix function saHpiSensorThresholdsSet
+
+In COPY_TH the SensorThresholds->TH will be copied to tmp.TH only if
+TH.IsSupported == SAHPI_TRUE. So we should pass &tmp but not
+SensorThresholds as the argument to OH_CALL_ABI. Otherwise the TH will
+be set even if TH.IsSupported == SAHPI_FALSE.
+
+Upstream-Status: Submitted
+[https://github.com/open-hpi/openhpi/pull/2744/commits/77a78bb1ada56e55c5ba6d7a5987c214705bf035]
+
+Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
+Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
+---
+ openhpid/safhpi.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/openhpid/safhpi.c b/openhpid/safhpi.c
+index 28a2632..61b7f03 100644
+--- a/openhpid/safhpi.c
++++ b/openhpid/safhpi.c
+@@ -1933,7 +1933,7 @@ SaErrorT SAHPI_API saHpiSensorThresholdsSet (
+         oh_release_domain(d); /* Unlock domain */
+ 
+         OH_CALL_ABI(h, set_sensor_thresholds, SA_ERR_HPI_INVALID_CMD, rv,
+-                    ResourceId, SensorNum, SensorThresholds);
++                    ResourceId, SensorNum, &tmp);
+         oh_release_handler(h);
+ 
+         return rv;
+-- 
+2.7.4
+
diff --git a/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch b/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch
deleted file mode 100644
index 60e2e79..0000000
--- a/meta-networking/recipes-daemons/openhpi/files/openhpi-fix-testfail-errors.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-Fix for saftest failures.
-
-Upstream-Status: Pending
-
-Signed-off-by: yanjun.zhu <yanjun.zhu@windriver.com>
-
-Index: openhpi-3.6.1/openhpid/safhpi.c
-===================================================================
---- openhpi-3.6.1.orig/openhpid/safhpi.c
-+++ openhpi-3.6.1/openhpid/safhpi.c
-@@ -1933,7 +1933,7 @@ SaErrorT SAHPI_API saHpiSensorThresholds
-         oh_release_domain(d); /* Unlock domain */
- 
-         OH_CALL_ABI(h, set_sensor_thresholds, SA_ERR_HPI_INVALID_CMD, rv,
--                    ResourceId, SensorNum, SensorThresholds);
-+                    ResourceId, SensorNum, &tmp);
-         oh_release_handler(h);
- 
-         return rv;
-Index: openhpi-3.6.1/utils/sahpi_struct_utils.c
-===================================================================
---- openhpi-3.6.1.orig/utils/sahpi_struct_utils.c
-+++ openhpi-3.6.1/utils/sahpi_struct_utils.c
-@@ -3861,6 +3861,9 @@ SaHpiBoolT oh_valid_textbuffer(SaHpiText
-                                         /* found a unpaired surrogate */
-                                         return SAHPI_FALSE;
-                                 }
-+                        } else {
-+                            /*the first 2 bytes wrong*/
-+                            return SAHPI_FALSE;
-                         }
-                 }
-                 break;
diff --git a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
index 14cc3d8..e3a0c2e 100644
--- a/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
+++ b/meta-networking/recipes-daemons/openhpi/openhpi_3.8.0.bb
@@ -33,7 +33,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \
            file://openhpi-glib-cross-compile.patch \
            file://openhpi-linkfix.patch \
            file://openhpi-fix-host-gcc.patch \
-           file://openhpi-fix-testfail-errors.patch \
+           file://openhpi-fix-function-saHpiSensorThresholds.patch \
            file://openhpi-add-libnetsnmp-when-link.patch \
            file://openhpi-invalide-session.patch \
            file://openhpi-use-serial-tests-config-needed-by-ptest.patch \
-- 
2.7.4



  parent reply	other threads:[~2019-05-21  3:56 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-21  3:56 [warrior][patch 00/34] Patch review Armin Kuster
2019-05-21  3:56 ` [warrior][patch 01/34] cpupower: remove LIC_FILES_CHKSUM Armin Kuster
2019-05-21  3:56 ` [warrior][patch 02/34] python-pyasn1: upgrade 0.4.4 -> 0.4.5 Armin Kuster
2019-05-21  6:40   ` Adrian Bunk
2019-05-21 14:52     ` akuster808
2019-05-21 18:05       ` Adrian Bunk
2019-05-21  3:56 ` [warrior][patch 03/34] php: upgrade 7.3.2 -> 7.3.4 Armin Kuster
2019-05-21  6:41   ` Adrian Bunk
2019-05-21  3:56 ` [warrior][patch 04/34] postgresql: fix compile error Armin Kuster
2019-05-21  3:56 ` Armin Kuster [this message]
2019-05-21  3:56 ` [warrior][patch 06/34] phpmyadmin: upgrade 4.8.3 -> 4.8.5 Armin Kuster
2019-05-21  6:41   ` Adrian Bunk
2019-05-21  3:56 ` [warrior][patch 07/34] xfce4-vala: auto-detect vala api version Armin Kuster
2019-05-21  3:56 ` [warrior][patch 08/34] gnome-desktop3: set correct meson gtk doc option Armin Kuster
2019-05-21  8:08   ` Adrian Bunk
2019-05-21 16:37     ` akuster808
2019-05-21  3:56 ` [warrior][patch 09/34] esound: fix SRC_URI for multilib Armin Kuster
2019-05-21  3:56 ` [warrior][patch 10/34] opusfile: " Armin Kuster
2019-05-21  3:56 ` [warrior][patch 11/34] miniupnpd: " Armin Kuster
2019-05-21  3:56 ` [warrior][patch 12/34] zbar: " Armin Kuster
2019-05-21  3:56 ` [warrior][patch 13/34] cpupower: Inherit bash completion class Armin Kuster
2019-05-21  3:56 ` [warrior][patch 14/34] python-urllib3: Set CVE_PRODUCT Armin Kuster
2019-05-21  3:56 ` [warrior][patch 15/34] python3-pillow: " Armin Kuster
2019-05-21  3:56 ` [warrior][patch 16/34] python-requests: " Armin Kuster
2019-05-21  3:56 ` [warrior][patch 17/34] evince: add patch to fix build with recent gobject-introspection Armin Kuster
2019-05-21  9:33   ` Adrian Bunk
2019-05-21 16:38     ` akuster808
2019-05-21  3:56 ` [warrior][patch 18/34] php: correct httpd path Armin Kuster
2019-05-21  3:56 ` [warrior][patch 19/34] pmtools: use update-alternatives for acpidump Armin Kuster
2019-05-21  3:56 ` [warrior][patch 20/34] xfce4-cpufreq-plugin: Fix memory leak and reduce CPU load Armin Kuster
2019-05-21  3:56 ` [warrior][patch 21/34] packagegroup-meta-networking: replace DISTRO_FEATURE by DISTRO_FEATURES Armin Kuster
2019-05-21  9:41   ` Adrian Bunk
2019-05-21  9:55     ` Martin Jansa
2019-05-21  3:56 ` [warrior][patch 22/34] meta-xfce: add meta-networking to layer depends Armin Kuster
2019-05-21  3:56 ` [warrior][patch 23/34] itstool: rework - it went out too early Armin Kuster
2019-05-21  3:56 ` [warrior][patch 24/34] mongodb: Fix build with gcc Armin Kuster
2019-05-21  3:56 ` [warrior][patch 25/34] ebtables: add UPSTREAM_CHECK_URI Armin Kuster
2019-05-21  9:43   ` Adrian Bunk
2019-05-21  3:56 ` [warrior][patch 26/34] netkit-rsh: add tag to CVE patch Armin Kuster
2019-05-21  3:56 ` [warrior][patch 27/34] ipsec-tools: fix CVE tag in patch Armin Kuster
2019-05-21  3:56 ` [warrior][patch 28/34] gd: set CVE_PRODUCT Armin Kuster
2019-05-21  3:56 ` [warrior][patch 29/34] doxygen: replace ninja 1.9.0 fix with official one Armin Kuster
2019-05-21  3:56 ` [warrior][patch 30/34] samba: update to 4.8.11 Armin Kuster
2019-05-21  3:56 ` [warrior][patch 31/34] openvpn: update to 2.4.7 Armin Kuster
2019-05-21  6:55   ` Adrian Bunk
2019-05-21  3:56 ` [warrior][patch 32/34] efivar: prevent native efivar depending on target kernel Armin Kuster
2019-05-21  3:56 ` [warrior][patch 33/34] libdbi-perl: prevent native libdbi-perl depending on target perl Armin Kuster
2019-05-21  3:56 ` [warrior][patch 34/34] aufs-util: prevent native aufs-util depending on target kernel Armin Kuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3ee48cdd625a0b632511106272374fabff63e0fa.1558410874.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.