Commit 0e2774eb authored by Russell King's avatar Russell King Committed by Linus Torvalds

[PATCH] build warning fix

This patch has been verified to apply cleanly to 2.5.30

This patch fixes a build warning in smp.h.  register_cpu_notifier uses
struct notifier_block in its argument list.  Unfortunately, there are
places where smp.h is included before the definition of this structure.
parent 66431f4b
......@@ -100,6 +100,8 @@ static inline void smp_send_reschedule_all(void) { }
#define per_cpu(var, cpu) var
#define this_cpu(var) var
struct notifier_block;
/* Need to know about CPUs going up/down? */
static inline int register_cpu_notifier(struct notifier_block *nb)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment