[PATCH 40/46] kernel: Include appropriate header file in kernel/sched/core.c

From: Rashika Kheria
Date: Thu Feb 27 2014 - 07:30:33 EST


Include appropriate header file include/linux/sched.h in
kernel/sched/core.c because it containes prototype declaration of
function defined in kernel/sched/core.c. Also, fix the typo error in
prototype declaration of function 'arch_sd_sibling_asym_packingâ in
include/linux/sched.h.

This eliminates the following warning in sched/core.c:
kernel/sched/core.c:5814:12: warning: no previous prototype for âarch_sd_sibling_asym_packingâ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
include/linux/sched.h | 2 +-
kernel/sched/core.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index fac6f9d..56aa7ee 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -866,7 +866,7 @@ enum cpu_idle_type {
#define SD_OVERLAP 0x2000 /* sched_domains of this level overlap */
#define SD_NUMA 0x4000 /* cross-node balancing */

-extern int __weak arch_sd_sibiling_asym_packing(void);
+extern int __weak arch_sd_sibling_asym_packing(void);

struct sched_domain_attr {
int relax_domain_level;
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 90570e1..9c3df36 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -72,6 +72,7 @@
#include <linux/slab.h>
#include <linux/init_task.h>
#include <linux/binfmts.h>
+#include <linux/sched.h>
#include <linux/context_tracking.h>

#include <asm/switch_to.h>
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/