warnings cleanup
diff --git a/testcases/kernel/syscalls/writev/Makefile b/testcases/kernel/syscalls/writev/Makefile
index 6729e34..ee50aa5 100644
--- a/testcases/kernel/syscalls/writev/Makefile
+++ b/testcases/kernel/syscalls/writev/Makefile
@@ -19,7 +19,7 @@
 ###########################################################################
 # name of file	: Makefile						  #
 ###########################################################################
-CFLAGS+=	-I../../../../include
+CFLAGS+=	-I../../../../include -Wall
 LOADLIBES+=	-L../../../../lib -lltp
 
 SRCS=$(wildcard *.c)
diff --git a/testcases/kernel/syscalls/writev/writev01.c b/testcases/kernel/syscalls/writev/writev01.c
index 3c53b90..e4037d7 100644
--- a/testcases/kernel/syscalls/writev/writev01.c
+++ b/testcases/kernel/syscalls/writev/writev01.c
@@ -72,38 +72,38 @@
 	/* iov_base */		/* iov_len */
 
 	/* testcase# 1 */
-	buf1,			-1,
-	(buf1 + CHUNK),		CHUNK,
-	(buf1 + CHUNK * 2),	CHUNK,
+	{buf1,			-1},
+	{(buf1 + CHUNK),	CHUNK},
+	{(buf1 + CHUNK * 2),	CHUNK},
 
 	/* testcase# 2 */
-	(buf1 + CHUNK * 3),	G_1,
-	(buf1 + CHUNK * 4),	G_1,
-	(buf1 + CHUNK * 5),	G_1,
+	{(buf1 + CHUNK * 3),	G_1},
+	{(buf1 + CHUNK * 4),	G_1},
+	{(buf1 + CHUNK * 5),	G_1},
 
 	/* testcase# 3 */
-	(buf1 + CHUNK * 6),	CHUNK,
-	(caddr_t)-1,		CHUNK,
-	(buf1 + CHUNK * 8),	CHUNK,
+	{(buf1 + CHUNK * 6),	CHUNK},
+	{(caddr_t)-1,		CHUNK},
+	{(buf1 + CHUNK * 8),	CHUNK},
 
 	/* testcase# 4 */
-	(buf1 + CHUNK * 9),	CHUNK,
+	{(buf1 + CHUNK * 9),	CHUNK},
 
 	/* testcase# 5 */
-	(buf1 + CHUNK * 10),	CHUNK,
+	{(buf1 + CHUNK * 10),	CHUNK},
 
 	/* testcase# 6 */
-	(buf1 + CHUNK * 11),	CHUNK,
+	{(buf1 + CHUNK * 11),	CHUNK},
 
 	/* testcase# 7 */
-	(buf1 + CHUNK * 12),	CHUNK,
+	{(buf1 + CHUNK * 12),	CHUNK},
 
 	/* testcase# 8 */
-	(buf1 + CHUNK * 13),	0,
+	{(buf1 + CHUNK * 13),	0},
 
 	/* testcase# 7 */
-	(caddr_t)NULL,		0,
-	(caddr_t)NULL,		0,
+	{(caddr_t)NULL,		0},
+	{(caddr_t)NULL,		0}
 };
 
 char name[K_1], f_name[K_1];
@@ -127,7 +127,7 @@
 int TST_TOTAL = 1;
 extern int Tst_count;
 
-main(int argc, char **argv)
+int main(int argc, char **argv)
 {
 	int nbytes, ret;
 
@@ -197,7 +197,7 @@
 			/*NOTREACHED*/
 		}
 
-block1: /* given vector length -1, writev() return EINVAL. */
+//block1: /* given vector length -1, writev() return EINVAL. */
 		tst_resm(TINFO, "Enter Block 1");
 		fail = 0;
 
@@ -222,7 +222,8 @@
 		}
 		tst_resm(TINFO, "Exit block 1");
 
-block2: /* This testcases doesn't look like what it intent to do
+//block2:
+	/* This testcases doesn't look like what it intent to do
         * 1. it is not using the wr_iovec initialized 
         * 2. read() and following message is not consistent 
         */
@@ -265,7 +266,7 @@
 		}
 		tst_resm(TINFO, "Exit block 2");
 
-block3: /* given 1 bad vector buffer with good ones, writev() success */
+//block3: /* given 1 bad vector buffer with good ones, writev() success */
 		tst_resm(TINFO, "Enter block 3");
 		fail = 0;
 
@@ -306,7 +307,7 @@
 		}
 		tst_resm(TINFO, "Exit block 3");
 
-block4: /* given bad file discriptor, writev() return EBADF. */
+//block4: /* given bad file discriptor, writev() return EBADF. */
 		tst_resm(TINFO, "Enter block 4");
 		fail = 0;
 
@@ -333,7 +334,7 @@
 		}
 		tst_resm(TINFO, "Exit block 4");
 
-block5: /* given invalid vector count, writev() return EINVAL */
+//block5: /* given invalid vector count, writev() return EINVAL */
 		tst_resm(TINFO, "Enter block 5");
 		fail = 0;
 
@@ -360,7 +361,7 @@
 		}
 		tst_resm(TINFO, "Exit block 5");
 
-block6: /* given no buffer vector, writev() success */
+//block6: /* given no buffer vector, writev() success */
 		tst_resm(TINFO, "Enter block 6");
 		fail = 0;
 
@@ -381,7 +382,8 @@
 		}
 		tst_resm(TINFO, "Exit block 6");
 
-block7: /* given 4 vectors, 2 are NULL, 1 with 0 length and 1 with fixed length,
+//block7:
+	 /* given 4 vectors, 2 are NULL, 1 with 0 length and 1 with fixed length,
          * writev() success writing fixed length.
          */
 		tst_resm(TINFO, "Enter block 7");
@@ -404,7 +406,7 @@
 		}
 		tst_resm(TINFO, "Exit block 7");
 
-block8: /* try to write to a closed pipe, writev() return EPIPE. */
+//block8: /* try to write to a closed pipe, writev() return EPIPE. */
 		tst_resm(TINFO, "Enter block 8");
 		fail = 0;
 
@@ -446,6 +448,7 @@
 	}
 	cleanup();
 	/*NOTREACHED*/
+	return(0);
 }
 
 /*
diff --git a/testcases/kernel/syscalls/writev/writev02.c b/testcases/kernel/syscalls/writev/writev02.c
index b0885db..c0c9c8b 100644
--- a/testcases/kernel/syscalls/writev/writev02.c
+++ b/testcases/kernel/syscalls/writev/writev02.c
@@ -69,8 +69,8 @@
 char	buf2[K_1];
 
 struct	iovec	wr_iovec[MAX_IOVEC] = {
-	(caddr_t)-1,	CHUNK,
-	(caddr_t)NULL,	0,
+	{(caddr_t)-1,	CHUNK},
+	{(caddr_t)NULL,	0},
 };
 
 char	name[K_1], f_name[K_1];
@@ -91,7 +91,7 @@
 void cleanup(void);
 int fail;
 
-main(int argc, char **argv)
+int main(int argc, char **argv)
 {
 	int lc;				/* loop counter */
 	char *msg;			/* message returned from parse_opts */
@@ -166,7 +166,7 @@
 			/*NOTREACHED*/
 		}
 
-block1:
+//block1:
 		/*
 		 * In this block we are trying to call writev() with invalid
 		 * vector to be written in a sparse file. This will return
@@ -215,6 +215,7 @@
 		tst_resm(TINFO, "Exit block 1");
 	}
 	cleanup();
+	return(0);
 }
 
 /*
diff --git a/testcases/kernel/syscalls/writev/writev03.c b/testcases/kernel/syscalls/writev/writev03.c
index 35649dd..8ee73ae 100644
--- a/testcases/kernel/syscalls/writev/writev03.c
+++ b/testcases/kernel/syscalls/writev/writev03.c
@@ -64,10 +64,10 @@
 
 struct iovec wr_iovec[MAX_IOVEC] = {
 	/* testcase #1 */
-	buf1 + (CHUNK * 6),	CHUNK,
-	(caddr_t)-1,		CHUNK,
-	buf1 + (CHUNK * 8),	CHUNK,
-	(caddr_t)NULL,		0,
+	{buf1 + (CHUNK * 6),	CHUNK},
+	{(caddr_t)-1,		CHUNK},
+	{buf1 + (CHUNK * 8),	CHUNK},
+	{(caddr_t)NULL,		0}
 };
 
 /* 0 terminated list of expected errnos */
@@ -87,7 +87,7 @@
 void cleanup(void);
 int fail;
 
-main(int argc, char **argv)
+int main(int argc, char **argv)
 {
 	int lc;				/* loop counter */
 	char *msg;			/* message returned from parse_opts */
@@ -163,7 +163,7 @@
 			/*NOTREACHED*/
 		}
 
-block1:
+//block1:
 		tst_resm(TINFO, "Enter block 1");
 		fail = 0;
 		
@@ -197,7 +197,7 @@
 		}
 		tst_resm(TINFO, "Exit block 1");
 
-block2:
+//block2:
 		tst_resm(TINFO, "Enter block 2");
 		fail = 0;
 
@@ -230,7 +230,7 @@
 		}
 		tst_resm(TINFO, "Exit block 2");
 
-block3:
+//block3:
 		tst_resm(TINFO, "Enter block 3");
 		fail = 0;
 
@@ -267,6 +267,7 @@
 		tst_resm(TINFO, "Exit block 3");
 	}
 	cleanup();
+	return(0);
 }
 
 /*
diff --git a/testcases/kernel/syscalls/writev/writev04.c b/testcases/kernel/syscalls/writev/writev04.c
index 6c4f086..7b9c3e8 100644
--- a/testcases/kernel/syscalls/writev/writev04.c
+++ b/testcases/kernel/syscalls/writev/writev04.c
@@ -65,10 +65,10 @@
 
 struct iovec wr_iovec[MAX_IOVEC] = {
 	/* testcase #1 */
-	buf1 + (CHUNK * 6),	CHUNK,
-	(caddr_t)-1,		CHUNK,
-	buf1 + (CHUNK * 8),	CHUNK,
-	(caddr_t)NULL,		0,
+	{buf1 + (CHUNK * 6),	CHUNK},
+	{(caddr_t)-1,		CHUNK},
+	{buf1 + (CHUNK * 8),	CHUNK},
+	{(caddr_t)NULL,		0}
 };
 
 /* 0 terminated list of expected errnos */
@@ -88,7 +88,7 @@
 void cleanup(void);
 int fail;
 
-main(int argc, char **argv)
+int main(int argc, char **argv)
 {
 	int lc;				/* loop counter */
 	char *msg;			/* message returned from parse_opts */
@@ -161,9 +161,10 @@
 				 f_name, errno);
 			cleanup();
 			/*NOTREACHED*/
+			return(0);
 		}
 
-block1:
+//block1:
 		tst_resm(TINFO, "Enter block 1");
 		fail = 0;
 		
@@ -200,7 +201,7 @@
 		}
 		tst_resm(TINFO, "Exit block 1");
 
-block2:
+//block2:
 		tst_resm(TINFO, "Enter block 2");
 		fail = 0;
 
@@ -236,7 +237,7 @@
 		}
 		tst_resm(TINFO, "Exit block 2");
 
-block3:
+//block3:
 		tst_resm(TINFO, "Enter block 3");
 		fail = 0;
 
@@ -276,6 +277,7 @@
 		tst_resm(TINFO, "Exit block 3");
 	}
 	cleanup();
+	return(0);
 }
 
 /*
diff --git a/testcases/kernel/syscalls/writev/writev05.c b/testcases/kernel/syscalls/writev/writev05.c
index 97f7253..f162b25 100644
--- a/testcases/kernel/syscalls/writev/writev05.c
+++ b/testcases/kernel/syscalls/writev/writev05.c
@@ -65,8 +65,8 @@
 char	buf3[K_1];
 
 struct	iovec	wr_iovec[MAX_IOVEC] = {
-	(caddr_t)-1,	CHUNK,
-	(caddr_t)NULL,	0,
+	{(caddr_t)-1,	CHUNK},
+	{(caddr_t)NULL,	0}
 };
 
 /* 0 terminated list of expected errnos */
@@ -86,7 +86,7 @@
 void cleanup(void);
 int fail;
 
-main(int argc, char **argv)
+int main(int argc, char **argv)
 {
 	int lc;				/* loop counter */
 	char *msg;			/* message returned from parse_opts */
@@ -166,7 +166,7 @@
 		 * the scheduled write() with valid data is done correctly
 		 * or not.
 		 */
-block1:
+//block1:
 		tst_resm(TINFO, "Enter block 1");
 		fail = 0;
 
@@ -200,6 +200,7 @@
 		tst_resm(TINFO, "Exit block 1");
 	}
 	cleanup();
+	return(0);
 }
 
 /*