Move the declaration of panic() from sys/param.h back to sys/systm.h.

Almost all .c files have to include <sys/systm.h> for more than its
declaration of panic(), so little is gained from declaring panic() in
a wrong place.  This probably depends on missing garbage collection
of the includes of <sys/systm.h> that were added to get snprintf()
declared for old versions of the ktr macros.
This commit is contained in:
bde 2002-02-11 02:13:18 +00:00
parent b7924cd5f6
commit 92ed3d344f
2 changed files with 6 additions and 12 deletions

View File

@ -230,16 +230,4 @@
#define ctodb(db) /* calculates pages to devblks */ \
((db) << (PAGE_SHIFT - DEV_BSHIFT))
/*
* Make this available for most of the kernel. There were too many
* things that included sys/systm.h just for panic().
*/
#ifdef _KERNEL
#ifdef RESTARTABLE_PANICS
void panic __P((const char *, ...)) __printflike(1, 2);
#else
void panic __P((const char *, ...)) __dead2 __printflike(1, 2);
#endif
#endif
#endif /* _SYS_PARAM_H_ */

View File

@ -118,6 +118,12 @@ int ureadc __P((int, struct uio *));
void *hashinit __P((int count, struct malloc_type *type, u_long *hashmask));
void *phashinit __P((int count, struct malloc_type *type, u_long *nentries));
#ifdef RESTARTABLE_PANICS
void panic __P((const char *, ...)) __printflike(1, 2);
#else
void panic __P((const char *, ...)) __dead2 __printflike(1, 2);
#endif
void cpu_boot __P((int));
void cpu_rootconf __P((void));
void critical_enter __P((void));