[LTP] [PATCH 07/10] fix old-style-definition in ht_utils.c
Michael Moese
mmoese@suse.de
Thu Jan 25 16:23:01 CET 2018
Signed-off-by: Michael Moese <mmoese@suse.de>
---
testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.c b/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.c
index a996b6ddb..7644e352c 100644
--- a/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.c
+++ b/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.c
@@ -19,7 +19,7 @@
char buffer[BUFF_SIZE];
-int is_ht_cpu()
+int is_ht_cpu(void)
{
/*Number of logic processor in a physical processor */
int smp_num_siblings = -1;
@@ -41,7 +41,7 @@ int is_ht_cpu()
/*return 0 means Pass,
return 1 means ht is not enabled*/
-int check_ht_capability()
+int check_ht_capability(void)
{
int result;
if (is_ht_cpu()) {
@@ -61,7 +61,7 @@ int check_ht_capability()
char buf[256];
-int get_cpu_count()
+int get_cpu_count(void)
{
FILE *pfile;
int count;
--
2.13.6
More information about the ltp
mailing list