Skip to contentSkip to conversation

fix warning with CONFIG_PROFILING=y

PATCH New John Levon 1 participant 1 message Oct 6, 2003

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 fix warning with CONFIG_PROFILING=y

Needs a forward declaration of struct pt_regs in Linus's current tree.

regards
john

Index: linux-ia64/include/linux/profile.h =================================RCS file: /home/cvs/linux-2.5/include/linux/profile.h,v retrieving revision 1.5

include/linux/profile.h +2 -0
diff -u -a -p -r1.5 profile.h
@@ -48,6 +48,8 @@ int profile_event_unregister(enum profil
 int register_profile_notifier(struct notifier_block * nb);
 int unregister_profile_notifier(struct notifier_block * nb);
 
+struct pt_regs;
+
 /* profiling hook activated on each timer interrupt */
 void profile_hook(struct pt_regs * regs);