[kvm-unit-tests,PULL,3/3] s390x: Make s390x tests compilable with -Wmissing-prototypes and -Wstrict-prototypes
diff mbox

Message ID 1528888262-19694-4-git-send-email-thuth@redhat.com
State New
Headers show

Commit Message

Thomas Huth June 13, 2018, 11:11 a.m. UTC
Provide prototypes where needed and avoid prototypes that do not
specify the function parameters.

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 lib/s390x/io.c | 6 ++++--
 s390x/gs.c     | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/lib/s390x/io.c b/lib/s390x/io.c
index eb4d171..17d5fc7 100644
--- a/lib/s390x/io.c
+++ b/lib/s390x/io.c
@@ -21,6 +21,8 @@  uint8_t stfl_bytes[NR_STFL_BYTES] __attribute__((aligned(8)));
 
 static struct spinlock lock;
 
+void setup(void);
+
 void puts(const char *s)
 {
 	spin_lock(&lock);
@@ -28,7 +30,7 @@  void puts(const char *s)
 	spin_unlock(&lock);
 }
 
-static void sigp_stop()
+static void sigp_stop(void)
 {
 	register unsigned long status asm ("1") = 0;
 	register unsigned long cpu asm ("2") = 0;
@@ -38,7 +40,7 @@  static void sigp_stop()
 		: "+d" (status)  : "d" (cpu), "d" (5) : "cc");
 }
 
-void setup()
+void setup(void)
 {
 	setup_args_progname(ipl_args);
 	setup_facilities();
diff --git a/s390x/gs.c b/s390x/gs.c
index b9b19dd..0cba5dd 100644
--- a/s390x/gs.c
+++ b/s390x/gs.c
@@ -64,6 +64,8 @@  static struct gs_cb gs_cb;
 static struct gs_epl gs_epl;
 static unsigned long gs_area = 0x2000000;
 
+void gs_handler(struct gs_cb *this_cb);
+
 static inline void load_gs_cb(struct gs_cb *gs_cb)
 {
 	asm volatile(".insn rxy,0xe3000000004d,0,%0" : : "Q" (*gs_cb));