public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix a Sparse warning in the arch/x86/kernel/irq_work.c file
@ 2013-08-12 22:18 Shailaja Neelam
  2013-08-13  0:29 ` Steven Rostedt
  0 siblings, 1 reply; 5+ messages in thread
From: Shailaja Neelam @ 2013-08-12 22:18 UTC (permalink / raw)
  To: fweisbec, rostedt, akpm, anish198519851985, james.hogan; +Cc: linux-kernel

I am a high school student trying to become familiar with the
opensource process and linux kernel. This is my first submission to
the ITC mailing list.

My patch is for the file arch/x86/kernel/irq_work.c in the vesion
linux-3.10 kernel. When I ran the kernel with Sparse, the error read:
arch/x86/kernel/irq_work.c:21:
6: warning: symbol 'arch_irq_work_raise'
was not declared. Should it be static?

To fix this (rather than add static) I declared the symbol in the
header file linux/irq_work.h. Afterwards, my error did not show up
when I ran the kernel with Sparse again. I also ran the command "make
menuconfig" to change the kernel version so that I could assure the
correct kernel was running when I tested it, and it was. Then I test
built the kernel. It built and rebooted correctly.

Signed-off-by: Shailaja Neelam <neelamshaila@gmail.com>
---
--- linux-3.10/include/linux/irq_
work.h    2013-06-30 15:13:29.000000000 -0700
+++ linux-3.10.change/include/linux/irq_work.h    2013-07-24
12:06:15.521140635 -0700
@@ -33,6 +33,7 @@ void init_irq_work(struct irq_work *work
 void irq_work_queue(struct irq_work *work);
 void irq_work_run(void);
 void irq_work_sync(struct irq_work *work);
+void arch_irq_work_raise(void);

 #ifdef CONFIG_IRQ_WORK
 bool irq_work_needs_cpu(void);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-13 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 22:18 [PATCH] fix a Sparse warning in the arch/x86/kernel/irq_work.c file Shailaja Neelam
2013-08-13  0:29 ` Steven Rostedt
2013-08-13  5:39   ` anish singh
2013-08-13 11:33     ` Steven Rostedt
2013-08-13  9:37   ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox