lkml.org 
[lkml]   [2014]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 40/46] kernel: Include appropriate header file in kernel/sched/core.c
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@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-02-27 14:01    [W:0.211 / U:10.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site