Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From d63fefa86dac437c47b9ebbea0a82a1240aaba2c Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 7 Jan 2016 20:09:56 +0000 |
| 4 | Subject: [PATCH 14/32] hyperthreading: Include sys/types.h for pid_t |
| 5 | definition |
| 6 | |
| 7 | If sys/types.h is not included then it will not define pid_t_needed |
| 8 | and therefore typedef wont be included and we get errors about pid_t |
| 9 | being not known |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h | 1 + |
| 14 | testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h | 1 + |
| 15 | testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h | 1 + |
| 16 | 3 files changed, 3 insertions(+) |
| 17 | |
| 18 | diff --git a/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h b/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h |
| 19 | index 1ec9794..9084aa7 100644 |
| 20 | --- a/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h |
| 21 | +++ b/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h |
| 22 | @@ -3,6 +3,7 @@ |
| 23 | #define _HTUTILS_H_ |
| 24 | |
| 25 | #include <stdlib.h> |
| 26 | +#include <sys/types.h> |
| 27 | |
| 28 | int is_cmdline_para(const char *para); |
| 29 | |
| 30 | diff --git a/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h b/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h |
| 31 | index 1ec9794..c03a124 100644 |
| 32 | --- a/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h |
| 33 | +++ b/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h |
| 34 | @@ -2,6 +2,7 @@ |
| 35 | #ifndef _HTUTILS_H_ |
| 36 | #define _HTUTILS_H_ |
| 37 | |
| 38 | +#include <sys/types.h> |
| 39 | #include <stdlib.h> |
| 40 | |
| 41 | int is_cmdline_para(const char *para); |
| 42 | diff --git a/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h b/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h |
| 43 | index 2977ad0..6b484e1 100644 |
| 44 | --- a/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h |
| 45 | +++ b/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h |
| 46 | @@ -3,6 +3,7 @@ |
| 47 | #define _HTUTILS_H_ |
| 48 | |
| 49 | #include <stdlib.h> |
| 50 | +#include <sys/types.h> |
| 51 | |
| 52 | int is_cmdline_para(const char *para); |
| 53 | |
| 54 | -- |
| 55 | 2.7.0 |
| 56 | |