All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rashika Kheria <rashika.kheria@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Chris Metcalf <cmetcalf@tilera.com>, Tony Lu <zlu@tilera.com>,
	Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
	Rashika Kheria <rashika.kheria@gmail.com>,
	"Steven Rostedt (Red Hat)" <rostedt@goodmis.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"David S. Miller" <davem@davemloft.net>,
	Ingo Molnar <mingo@kernel.org>,
	Alex Elder <alex.elder@linaro.org>,
	Dhaval Giani <dhaval.giani@gmail.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	Daniel Borkmann <dborkman@redhat.com>,
	Andre Naujoks <nautsch2@gmail.com>,
	Jason Baron <jbaron@akamai.com>,
	Rusty Russell <rusty@rustcorp.com.au>,
	Randy Dunlap <rdunlap@infradead.org>, Robin Holt <holt@sgi.com>,
	Tony Luck <tony.luck@intel.com>,
	Alex Thorlton <athorlton@sgi.com>,
	Kees Cook <keescook@chromium.org>, Tejun Heo <tj@kernel.org>,
	Chen Gang <gang.chen@asianux.com>,
	josh@joshtriplett.org
Subject: [PATCH 02/46] kernel: Add prototype definition to include/linux/kernel.h
Date: Thu, 27 Feb 2014 16:38:50 +0530	[thread overview]
Message-ID: <644cc80558c61ce1f498393a77df366ad0d7b960.1393493276.git.rashika.kheria@gmail.com> (raw)
In-Reply-To: <7b4a60c74ced00e0d65c38488f20dc4bd69f0dd2.1393493276.git.rashika.kheria@gmail.com>

Add prototype declaration to header file include/linux/kernel.h because
it is used by more than one file.

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

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 arch/tile/kernel/smp.c |    1 +
 include/linux/kernel.h |    2 ++
 kernel/panic.c         |    1 +
 3 files changed, 4 insertions(+)

diff --git a/arch/tile/kernel/smp.c b/arch/tile/kernel/smp.c
index 01e8ab2..8b645fd 100644
--- a/arch/tile/kernel/smp.c
+++ b/arch/tile/kernel/smp.c
@@ -19,6 +19,7 @@
 #include <linux/io.h>
 #include <linux/irq.h>
 #include <linux/module.h>
+#include <linux/kernel.h>
 #include <asm/cacheflush.h>
 #include <asm/homecache.h>
 
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 196d1ea..c7cee7d 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -154,6 +154,8 @@ struct completion;
 struct pt_regs;
 struct user;
 
+void __weak panic_smp_self_stop(void);
+
 #ifdef CONFIG_PREEMPT_VOLUNTARY
 extern int _cond_resched(void);
 # define might_resched() _cond_resched()
diff --git a/kernel/panic.c b/kernel/panic.c
index 6d63003..14e08c2 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -23,6 +23,7 @@
 #include <linux/sysrq.h>
 #include <linux/init.h>
 #include <linux/nmi.h>
+#include <linux/kernel.h>
 
 #define PANIC_TIMER_STEP 100
 #define PANIC_BLINK_SPD 18
-- 
1.7.9.5


  reply	other threads:[~2014-02-27 11:11 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-27 11:08 [PATCH 01/46] kernel: Move prototype declaration to header file include/linux/thread_info.h Rashika Kheria
2014-02-27 11:08 ` Rashika Kheria [this message]
2014-02-27 16:32   ` [PATCH 02/46] kernel: Add prototype definition to include/linux/kernel.h Steven Rostedt
2014-02-27 16:43     ` Josh Triplett
2014-02-27 17:04       ` Steven Rostedt
2014-02-27 11:12 ` [PATCH 03/46] kernel: Move prototype declaration to header file include/linux/cpu.h Rashika Kheria
2014-02-27 15:04   ` Toshi Kani
2014-02-27 16:20     ` Josh Triplett
2014-02-27 11:14 ` [PATCH 04/46] kernel: Mark function as static in kernel/resource.c Rashika Kheria
2014-02-27 12:14   ` Yasuaki Ishimatsu
2014-02-27 15:06   ` Toshi Kani
2014-02-27 11:29 ` [PATCH 05/46] kernel: Include appropriate header file in kernel/signal.c Rashika Kheria
2014-02-27 16:14   ` Oleg Nesterov
2014-02-27 11:30 ` [PATCH 06/46] kernel: Include appropriate header file in kernel/debug/kdb/kdb_keyboard.c Rashika Kheria
2014-02-27 11:32 ` [PATCH 07/46] kernel: Mark functions as static and remove unused function in events/core.c Rashika Kheria
2014-02-27 11:32 ` [PATCH 08/46] kernel: MOve prototype declaration to header file include/linux/perf_event.h Rashika Kheria
2014-02-27 11:54   ` Peter Zijlstra
2014-02-27 15:51     ` Josh Triplett
2014-02-27 19:23       ` Peter Zijlstra
2014-02-27 22:55         ` josh
2014-02-28 11:40           ` Peter Zijlstra
2014-02-27 11:35 ` [PATCH 09/46] kernel: Move prototype declaration to header file include/linux/hw_breakpoint.h Rashika Kheria
2014-02-27 11:36 ` [PATCH 10/46] kernel: Mark function as static in events/hw_breakpoint.c Rashika Kheria
2014-02-27 11:39 ` [PATCH 11/46] kernel: Add prototype declaration in kernel/gcov/base.c Rashika Kheria
2014-02-28  9:39   ` Peter Oberparleiter
2014-02-27 11:40 ` [PATCH 12/46] kernel: Include appropriate header file in kernel/irq/irqdomain.c Rashika Kheria
2014-02-27 12:33   ` [tip:irq/urgent] genirq: Include missing header file in irqdomain.c tip-bot for Rashika Kheria
2014-02-27 11:41 ` [PATCH 13/46] kernel: Move prototype declaration to header file kernel/locking/lockdep_internals.h Rashika Kheria
2014-02-27 11:43 ` [PATCH 14/46] kernel: Move prototype declaration to header file kernel/power/power.h Rashika Kheria
2014-02-28 13:21   ` Pavel Machek
2014-02-27 11:45 ` [PATCH 15/46] kernel: Include appropriate header file in kernel/power/wakelock.c Rashika Kheria
2014-02-27 11:46 ` [PATCH 16/46] kernel: Mark function as static in kernel/rcu/torture.c Rashika Kheria
2014-02-27 16:25   ` Paul E. McKenney
2014-02-27 11:48 ` [PATCH 17/46] kernel: Move prototype declaration to appropriate header file from kernel/stop_machine.c Rashika Kheria
2014-02-27 11:50 ` [PATCH 18/46] kernel: Mark functions as static in sched/fair.c Rashika Kheria
2014-02-27 11:58   ` Peter Zijlstra
2014-02-27 16:03     ` Josh Triplett
2014-02-27 19:24       ` Peter Zijlstra
2014-02-27 23:09         ` josh
2014-02-28  8:58           ` Peter Zijlstra
2014-02-27 11:52 ` [PATCH 19/46] kernel: Include appropriate header file in locking/rtmutex-tester.c Rashika Kheria
2014-02-27 11:53 ` [PATCH 20/46] kernel: Move prototype declaration to header file sched/sched.h from sched/core.c Rashika Kheria
2014-02-27 11:54 ` [PATCH 21/46] kernel: Mark function as static in sched/deadline.c Rashika Kheria
2014-02-27 11:55 ` [PATCH 22/46] kernel: Include appropriate header file in time/timekeeping_debug.c Rashika Kheria
2014-03-03  7:28   ` John Stultz
2014-02-27 11:57 ` [PATCH 23/46] kernel: Mark function as static in trace/ftrace.c Rashika Kheria
2014-02-27 16:34   ` Steven Rostedt
2014-02-27 12:01 ` [PATCH 24/46] kernel: Mark function as static in kernel/trace/ftrace.c and remove stub declaration from header file include/linux/ftrace.h Rashika Kheria
2014-02-27 16:18   ` Josh Triplett
2014-02-27 16:39   ` Steven Rostedt
2014-02-27 12:02 ` [PATCH 25/46] kernel: Add prototype declaration to " Rashika Kheria
2014-02-27 19:37   ` Steven Rostedt
2014-02-27 22:48     ` josh
2014-02-27 12:03 ` [PATCH 26/46] kernel: Mark functions as static in kernel/trace/trace.c Rashika Kheria
2014-02-27 19:42   ` Steven Rostedt
2014-02-27 12:06 ` [PATCH 27/46] kernel: Mark function as static in kernel/trace/trace_selftest.c Rashika Kheria
2014-02-27 19:54   ` Steven Rostedt
2014-02-27 12:08 ` [PATCH 28/46] kernel: Add prototype declaration to header file linux/ftrace.h Rashika Kheria
2014-02-27 19:56   ` Steven Rostedt
2014-02-27 12:10 ` [PATCH 29/46] kernel: Mark functions as static in trace/trace_functions_graph.c Rashika Kheria
2014-02-27 19:57   ` Steven Rostedt
2014-02-27 12:12 ` [PATCH 30/46] kernel: Add prototype declaration to header file include/linux/smp.h Rashika Kheria
2014-02-27 12:13 ` [PATCH 31/46] kernel: Mark function as static in kernel/module.c Rashika Kheria
2014-02-27 12:14 ` [PATCH 32/46] kernel: Add prototype declaration to header file include/linux/module.h Rashika Kheria
2014-02-27 12:16 ` [PATCH 33/46] kernel: Add prototype declaration to header file include/linux/compat.h Rashika Kheria
2014-02-27 12:17 ` [PATCH 34/46] kernel: Include appropriate header file in hung_task.c Rashika Kheria
2014-02-27 12:20 ` [PATCH 35/46] kernel: Mark function as static in kernel/seccomp.c Rashika Kheria
2014-02-27 15:33   ` Kees Cook
2014-02-27 15:48     ` Will Drewry
2014-02-28  2:53   ` James Morris
2014-02-27 12:20 ` [PATCH 36/46] kernel: Mark functions as static in kernel/tracepoint.c Rashika Kheria
2014-02-27 13:40   ` Mathieu Desnoyers
2014-02-27 12:22 ` [PATCH 37/46] kernel: Include appropriate header file in tracepoint.c Rashika Kheria
2014-02-27 13:37   ` Mathieu Desnoyers
2014-02-27 12:23 ` [PATCH 38/46] kernel: Include appropriate header file in kernel/elfcore.c Rashika Kheria
2014-02-27 12:25 ` [PATCH 39/46] kernel: Add prototype declaration to header file include/linux/irq_work.h Rashika Kheria
2014-02-27 12:28 ` [PATCH 40/46] kernel: Include appropriate header file in kernel/sched/core.c Rashika Kheria
2014-02-27 12:29 ` [PATCH 41/46] kernel: Mark functions as static in sched/core.c Rashika Kheria
2014-02-27 12:31 ` [PATCH 42/46] kernel: Add prototype declaration to appropriate header file include/linux/sched.h Rashika Kheria
2014-02-27 12:33 ` [PATCH 43/46] kernel: Add prototype declaration to header file kernel/sched/sched.h Rashika Kheria
2014-02-27 12:34 ` [PATCH 44/46] kernel: Move prototype declaration to header file kernel/sched/sched.h from kernel/sched/rt.c Rashika Kheria
2014-02-27 12:36 ` [PATCH 45/46] kernel: Move prototype declaration to header file include/linux/sched.h from init/main.c Rashika Kheria
2014-02-27 12:37 ` [PATCH 46/46] kernel: Add prototype declaration to header file include/linux/sched.h Rashika Kheria

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=644cc80558c61ce1f498393a77df366ad0d7b960.1393493276.git.rashika.kheria@gmail.com \
    --to=rashika.kheria@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=alex.elder@linaro.org \
    --cc=athorlton@sgi.com \
    --cc=cmetcalf@tilera.com \
    --cc=davem@davemloft.net \
    --cc=dborkman@redhat.com \
    --cc=dhaval.giani@gmail.com \
    --cc=gang.chen@asianux.com \
    --cc=holt@sgi.com \
    --cc=jbaron@akamai.com \
    --cc=josh@joshtriplett.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masami.hiramatsu.pt@hitachi.com \
    --cc=mingo@kernel.org \
    --cc=mst@redhat.com \
    --cc=nautsch2@gmail.com \
    --cc=rdunlap@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=rusty@rustcorp.com.au \
    --cc=sfr@canb.auug.org.au \
    --cc=tj@kernel.org \
    --cc=tony.luck@intel.com \
    --cc=zlu@tilera.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.