Skip to contentSkip to conversation

xen/xsm: Fix x86 XSM build after commit 6ea9f04

PATCH Applied Julien Grall 2 participants 2 messages May 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/xsm: Fix x86 XSM build after commit 6ea9f04

---
 xen/xsm/flask/flask_op.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
xen/xsm/flask/flask_op.c +4 -4
index 802ffd4..8dee021 100644
@@ -829,10 +829,10 @@ CHECK_flask_setenforce;
 CHECK_flask_transition;
 
 #define COMPAT
-#define flask_copyin_string(ch, pb, sz, mx) ({ \
-	XEN_GUEST_HANDLE_PARAM(char) gh; \
-	guest_from_compat_handle(gh, ch); \
-	flask_copyin_string(gh, pb, sz, mx); \
+#define safe_copy_string_from_guest(ch, sz, mx) ({ \
+    XEN_GUEST_HANDLE_PARAM(char) gh; \
+    guest_from_compat_handle(gh, ch); \
+    safe_copy_string_from_guest(gh, sz, mx); \
 })
 
 #define xen_flask_load compat_flask_load
Signature · 1 line
2.1.4
Applied
#1 lore raw
Quoted 1 line · Julien Grall

Applied, thanks.

(NB: I prefer commit logs which explain how they fix the build)

Quoted 23 lines
---
 xen/xsm/flask/flask_op.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
xen/xsm/flask/flask_op.c +4 -4
index 802ffd4..8dee021 100644
@@ -829,10 +829,10 @@ CHECK_flask_setenforce;
 CHECK_flask_transition;
 
 #define COMPAT
-#define flask_copyin_string(ch, pb, sz, mx) ({ \
-	XEN_GUEST_HANDLE_PARAM(char) gh; \
-	guest_from_compat_handle(gh, ch); \
-	flask_copyin_string(gh, pb, sz, mx); \
+#define safe_copy_string_from_guest(ch, sz, mx) ({ \
+    XEN_GUEST_HANDLE_PARAM(char) gh; \
+    guest_from_compat_handle(gh, ch); \
+    safe_copy_string_from_guest(gh, sz, mx); \
 })
 
 #define xen_flask_load compat_flask_load