aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2005-05-11 00:22:17 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2005-05-11 00:22:17 +0000
commit547725be5064bc9a27c6ea55d2660304adda8c34 (patch)
tree735ed26f55388109720ba481bc66c6f615947f1c /sys
parent6904c47ab9a78d418f1c7fd67d7dacc90bd14095 (diff)
downloadsrc-547725be5064bc9a27c6ea55d2660304adda8c34.tar.gz
src-547725be5064bc9a27c6ea55d2660304adda8c34.zip
Refactor isp_prt declaration so that platform
requirements can stay in platform files.
Notes
Notes: svn path=/head/; revision=146073
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp_freebsd.h2
-rw-r--r--sys/dev/isp/ispvar.h12
2 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h
index 4b1586c1b295..8b467c602e4b 100644
--- a/sys/dev/isp/isp_freebsd.h
+++ b/sys/dev/isp/isp_freebsd.h
@@ -360,6 +360,8 @@ default: \
#include <dev/isp/ispvar.h>
#include <dev/isp/ispmbox.h>
+void isp_prt(struct ispsoftc *, int level, const char *, ...)
+ __printflike(3, 4);
/*
* isp_osinfo definiitions && shorthand
*/
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index dc18c7683c43..e71a952cf8fd 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -44,9 +44,6 @@
#include <dev/isp/isp_target.h>
#include <dev/isp/isp_tpublic.h>
#endif
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
#endif
#ifdef __linux__
#include "ispmbox.h"
@@ -762,9 +759,14 @@ int isp_async(struct ispsoftc *, ispasync_t, void *);
/*
* Platform Dependent Error and Debug Printout
+ *
+ * Generally this is:
+ *
+ * void isp_prt(struct ispsoftc *, int level, const char *, ...)
+ *
+ * but due to compiler differences on different platforms this won't be
+ * formally done here. Instead, it goes in each platform definition file.
*/
-void isp_prt(struct ispsoftc *, int level, const char *, ...)
- __printflike(3, 4);
#define ISP_LOGALL 0x0 /* log always */
#define ISP_LOGCONFIG 0x1 /* log configuration messages */