lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 27 Feb 2014 16:38:46 +0530
From:	Rashika Kheria <rashika.kheria@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	David Howells <dhowells@...hat.com>,
	Koichi Yasutake <yasutake.koichi@...panasonic.com>,
	Chris Metcalf <cmetcalf@...era.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Peter Zijlstra <peterz@...radead.org>,
	Rashika Kheria <rashika.kheria@...il.com>,
	"Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
	Simon Marchi <simon.marchi@...ymtl.ca>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Jesper Nilsson <jesper.nilsson@...s.com>,
	Tejun Heo <tj@...nel.org>, Ingo Molnar <mingo@...nel.org>,
	Oleg Nesterov <oleg@...hat.com>,
	"Eric W. Biederman" <ebiederm@...ssion.com>,
	Daeseok Youn <daeseok.youn@...il.com>,
	Kent Overstreet <koverstreet@...gle.com>,
	Dario Faggioli <raistlin@...ux.it>,
	Michal Simek <michal.simek@...inx.com>,
	Alan Cox <alan@...ux.intel.com>, linux-am33-list@...hat.com,
	josh@...htriplett.org
Subject: [PATCH 01/46] kernel: Move prototype declaration to header file
 include/linux/thread_info.h

Move prototype declaration to header file include/linux/thread_info.h
from arch/mn10300/include/asm/thread_info.h and
arch/tile/include/asm/thread_info.h because it is used by more than one
file.
Also, include the header file in kernel/fork.c,
arch/mn10300/kernel/kgdb.c and arch/tile/kernel/process.c.

This also eliminates the following warning in kernel/fork.c:
kernel/fork.c:136:13: warning: no previous prototype for ‘arch_release_thread_info’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@...il.com>
Reviewed-by: Josh Triplett <josh@...htriplett.org>
---
 arch/mn10300/include/asm/thread_info.h |    3 ---
 arch/mn10300/kernel/kgdb.c             |    1 +
 arch/tile/include/asm/thread_info.h    |    2 --
 arch/tile/kernel/process.c             |    1 +
 include/linux/thread_info.h            |    2 ++
 kernel/fork.c                          |    1 +
 6 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/mn10300/include/asm/thread_info.h b/arch/mn10300/include/asm/thread_info.h
index bf280ea..3a4efbe 100644
--- a/arch/mn10300/include/asm/thread_info.h
+++ b/arch/mn10300/include/asm/thread_info.h
@@ -120,9 +120,6 @@ static inline unsigned long current_stack_pointer(void)
 	return sp;
 }
 
-#ifndef CONFIG_KGDB
-void arch_release_thread_info(struct thread_info *ti);
-#endif
 #define get_thread_info(ti)	get_task_struct((ti)->task)
 #define put_thread_info(ti)	put_task_struct((ti)->task)
 
diff --git a/arch/mn10300/kernel/kgdb.c b/arch/mn10300/kernel/kgdb.c
index 9977082..1f4ed5d 100644
--- a/arch/mn10300/kernel/kgdb.c
+++ b/arch/mn10300/kernel/kgdb.c
@@ -13,6 +13,7 @@
 #include <linux/ptrace.h>
 #include <linux/kgdb.h>
 #include <linux/uaccess.h>
+#include <linux/thread_info.h>
 #include <unit/leds.h>
 #include <unit/serial.h>
 #include <asm/debugger.h>
diff --git a/arch/tile/include/asm/thread_info.h b/arch/tile/include/asm/thread_info.h
index 729aa10..5f204bd 100644
--- a/arch/tile/include/asm/thread_info.h
+++ b/arch/tile/include/asm/thread_info.h
@@ -83,8 +83,6 @@ struct thread_info {
 
 #ifndef __ASSEMBLY__
 
-void arch_release_thread_info(struct thread_info *info);
-
 /* How to get the thread information struct from C. */
 register unsigned long stack_pointer __asm__("sp");
 
diff --git a/arch/tile/kernel/process.c b/arch/tile/kernel/process.c
index 16ed589..5f44885 100644
--- a/arch/tile/kernel/process.c
+++ b/arch/tile/kernel/process.c
@@ -27,6 +27,7 @@
 #include <linux/kernel.h>
 #include <linux/tracehook.h>
 #include <linux/signal.h>
+#include <linux/thread_info.h>
 #include <asm/stack.h>
 #include <asm/switch_to.h>
 #include <asm/homecache.h>
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h
index fddbe20..b03a087 100644
--- a/include/linux/thread_info.h
+++ b/include/linux/thread_info.h
@@ -118,6 +118,8 @@ static inline __deprecated void set_need_resched(void)
 	 */
 }
 
+void arch_release_thread_info(struct thread_info *ti);
+
 #define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
 
 #if defined TIF_RESTORE_SIGMASK && !defined HAVE_SET_RESTORE_SIGMASK
diff --git a/kernel/fork.c b/kernel/fork.c
index a17621c..962046c 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -71,6 +71,7 @@
 #include <linux/signalfd.h>
 #include <linux/uprobes.h>
 #include <linux/aio.h>
+#include <linux/thread_info.h>
 
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
-- 
1.7.9.5

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ