summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/fb.c
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-01-12 10:35:58 +0000
committeryokota <yokota@FreeBSD.org>1999-01-12 10:35:58 +0000
commit96dd1fb1615fe397692292d8257b4158f2a9fe12 (patch)
tree4e5c66d2ab93e447d9d124c99e59fc34a6a2f375 /sys/dev/fb/fb.c
parent54cfe22b42bd293b86d79b304e86ff8f5ba76ae9 (diff)
downloadFreeBSD-src-96dd1fb1615fe397692292d8257b4158f2a9fe12.zip
FreeBSD-src-96dd1fb1615fe397692292d8257b4158f2a9fe12.tar.gz
Clean up warnings: get conditional compilation right so that a local
function won't be defined unless it is actually used. Requested by: eivind
Diffstat (limited to 'sys/dev/fb/fb.c')
-rw-r--r--sys/dev/fb/fb.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/dev/fb/fb.c b/sys/dev/fb/fb.c
index e765bc2..faa9c20 100644
--- a/sys/dev/fb/fb.c
+++ b/sys/dev/fb/fb.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: $
+ * $Id: fb.c,v 1.1 1999/01/09 02:44:49 yokota Exp $
*/
#include "fb.h"
@@ -48,17 +48,20 @@
* for the kernel console. The arrays will be increased dynamically
* when necessary.
*/
-static video_adapter_t *adp_ini;
-static video_switch_t *vidsw_ini;
-static struct cdevsw *vidcdevsw_ini;
-static video_adapter_t **adapter = &adp_ini;
static int adapters = 1;
+static video_adapter_t *adp_ini;
+static video_adapter_t **adapter = &adp_ini;
+static video_switch_t *vidsw_ini;
video_switch_t **vidsw = &vidsw_ini;
-static struct cdevsw **vidcdevsw = &vidcdevsw_ini;
+
+#ifdef FB_INSTALL_CDEV
#define ARRAY_DELTA 4
+static struct cdevsw *vidcdevsw_ini;
+static struct cdevsw **vidcdevsw = &vidcdevsw_ini;
+
static void
vid_realloc_array(void)
{
@@ -94,6 +97,8 @@ vid_realloc_array(void)
printf("fb: new array size %d\n", adapters);
}
+#endif /* FB_INSTALL_CDEV */
+
/*
* Low-level frame buffer driver functions
* frame buffer subdrivers, such as the VGA driver, call these functions
OpenPOWER on IntegriCloud