* Remove indundent includes for unistd.h
* Add void where needed
Signed-off-by: Wei,Jiangang <[email protected]>
---
testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c | 3 +--
testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c | 3 +--
testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c | 3 +--
testcases/kernel/controllers/cpuctl/cpuctl_test03.c | 3 +--
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c
b/testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c
index ba24b4a..ae6a374 100644
--- a/testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c
+++ b/testcases/kernel/controllers/cpuctl/cpuctl_def_task01.c
@@ -54,7 +54,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
-#include <unistd.h>
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
@@ -75,7 +74,7 @@ int TST_TOTAL = 1;
pid_t scriptpid;
char path[FILENAME_MAX] = "/dev/cpuctl";
-extern void cleanup()
+extern void cleanup(void)
{
kill(scriptpid, SIGUSR1); /* Inform the shell to do cleanup */
/* Report exit status */
diff --git a/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
b/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
index 4680406..5fb3559 100644
--- a/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
+++ b/testcases/kernel/controllers/cpuctl/cpuctl_def_task02.c
@@ -57,7 +57,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
-#include <unistd.h>
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
@@ -70,7 +69,7 @@ int TST_TOTAL = 1;
pid_t scriptpid;
char path[] = "/dev/cpuctl";
-extern void cleanup()
+extern void cleanup(void)
{
kill(scriptpid, SIGUSR1); /* Inform the shell to do cleanup */
/* Report exit status */
diff --git a/testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c
b/testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c
index 41cfa41..af4695f 100644
--- a/testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c
+++ b/testcases/kernel/controllers/cpuctl/cpuctl_def_task03.c
@@ -58,7 +58,6 @@
#include <sys/time.h>
#include <sys/types.h>
#include <time.h>
-#include <unistd.h>
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
@@ -70,7 +69,7 @@ char *TCID = "cpu_controller_test06";
int TST_TOTAL = 3;
pid_t scriptpid;
char path[] = "/dev/cpuctl";
-extern void cleanup()
+extern void cleanup(void)
{
kill(scriptpid, SIGUSR1); /* Inform the shell to do cleanup */
/* Report exit status */
diff --git a/testcases/kernel/controllers/cpuctl/cpuctl_test03.c
b/testcases/kernel/controllers/cpuctl/cpuctl_test03.c
index ca9f4f9..20dbf86 100644
--- a/testcases/kernel/controllers/cpuctl/cpuctl_test03.c
+++ b/testcases/kernel/controllers/cpuctl/cpuctl_test03.c
@@ -58,7 +58,6 @@
#include <sys/time.h>
#include <sys/types.h>
#include <time.h>
-#include <unistd.h>
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
@@ -70,7 +69,7 @@ char *TCID = "cpu_controller_test06";
int TST_TOTAL = 3;
pid_t scriptpid;
char path[] = "/dev/cpuctl";
-extern void cleanup()
+extern void cleanup(void)
{
kill(scriptpid, SIGUSR1); /* Inform the shell to do cleanup */
tst_exit(); /* Report exit status */
--
1.9.3
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list