ce426f
From d2cd5e641efe08a4f5f467ec16297a704a391e81 Mon Sep 17 00:00:00 2001
ce426f
From: Stefan Liebler <stli@linux.vnet.ibm.com>
ce426f
Date: Mon, 7 Nov 2016 16:06:01 +0100
ce426f
Subject: [PATCH 07/17] S390: Fix remaining ONE_DIRECTION warning messages
ce426f
ce426f
upstream commit f349489e7e5b5341a9c1a590e9a41c2e07d3bdbb
ce426f
ce426f
This patch fixes the remaining ONE_DIRECTION warnings for s390 specific conversions.
ce426f
It defines ONE_DIRECTION to 0 like the patch from Steve Ellcey:
ce426f
https://www.sourceware.org/ml/libc-alpha/2014-05/msg00039.html
ce426f
ce426f
    Changelog:
ce426f
    * sysdeps/s390/s390-64/utf16-utf32-z9.c
ce426f
    (ONE_DIRECTION): Define.
ce426f
    * sysdeps/s390/s390-64/utf8-utf16-z9.c
ce426f
    (ONE_DIRECTION): Define.
ce426f
    * sysdeps/s390/s390-64/utf8-utf32-z9.c
ce426f
    (ONE_DIRECTION): Define.
ce426f
---
ce426f
 sysdeps/s390/s390-64/utf16-utf32-z9.c | 1 +
ce426f
 sysdeps/s390/s390-64/utf8-utf16-z9.c  | 1 +
ce426f
 sysdeps/s390/s390-64/utf8-utf32-z9.c  | 1 +
ce426f
 3 files changed, 3 insertions(+)
ce426f
ce426f
diff --git a/sysdeps/s390/s390-64/utf16-utf32-z9.c b/sysdeps/s390/s390-64/utf16-utf32-z9.c
ce426f
index 94a1a33..ddc42fe 100644
ce426f
--- a/sysdeps/s390/s390-64/utf16-utf32-z9.c
ce426f
+++ b/sysdeps/s390/s390-64/utf16-utf32-z9.c
ce426f
@@ -44,6 +44,7 @@
ce426f
 #define FROM_LOOP		from_utf16_loop
ce426f
 #define TO_LOOP			to_utf16_loop
ce426f
 #define FROM_DIRECTION		(dir == from_utf16)
ce426f
+#define ONE_DIRECTION           0
ce426f
 #define PREPARE_LOOP							\
ce426f
   enum direction dir = ((struct utf16_data *) step->__data)->dir;	\
ce426f
   int emit_bom = ((struct utf16_data *) step->__data)->emit_bom;	\
ce426f
diff --git a/sysdeps/s390/s390-64/utf8-utf16-z9.c b/sysdeps/s390/s390-64/utf8-utf16-z9.c
ce426f
index 8e0515c..2c2d92c 100644
ce426f
--- a/sysdeps/s390/s390-64/utf8-utf16-z9.c
ce426f
+++ b/sysdeps/s390/s390-64/utf8-utf16-z9.c
ce426f
@@ -42,6 +42,7 @@
ce426f
 #define FROM_LOOP		from_utf8_loop
ce426f
 #define TO_LOOP			to_utf8_loop
ce426f
 #define FROM_DIRECTION		(dir == from_utf8)
ce426f
+#define ONE_DIRECTION           0
ce426f
 #define PREPARE_LOOP							\
ce426f
   enum direction dir = ((struct utf8_data *) step->__data)->dir;	\
ce426f
   int emit_bom = ((struct utf8_data *) step->__data)->emit_bom;		\
ce426f
diff --git a/sysdeps/s390/s390-64/utf8-utf32-z9.c b/sysdeps/s390/s390-64/utf8-utf32-z9.c
ce426f
index c657a38..c582155 100644
ce426f
--- a/sysdeps/s390/s390-64/utf8-utf32-z9.c
ce426f
+++ b/sysdeps/s390/s390-64/utf8-utf32-z9.c
ce426f
@@ -44,6 +44,7 @@
ce426f
 #define FROM_LOOP		from_utf8_loop
ce426f
 #define TO_LOOP			to_utf8_loop
ce426f
 #define FROM_DIRECTION		(dir == from_utf8)
ce426f
+#define ONE_DIRECTION           0
ce426f
 #define PREPARE_LOOP							\
ce426f
   enum direction dir = ((struct utf8_data *) step->__data)->dir;	\
ce426f
   int emit_bom = ((struct utf8_data *) step->__data)->emit_bom;		\
ce426f
-- 
ce426f
1.8.3.1
ce426f