]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] build warning fix
authorRussell King <rmk@arm.linux.org.uk>
Sat, 10 Aug 2002 09:44:30 +0000 (02:44 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 10 Aug 2002 09:44:30 +0000 (02:44 -0700)
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.

include/linux/smp.h

index df77d136f5e2f07159015a44a9615c21ff1110da..9c6edbd8e6ec0bd9613d5301b885519762dfcb1d 100644 (file)
@@ -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)
 {