misc/142938: [share/examples] [kld] fix warnings

Andrey Zonov andrey.zonov at gmail.com
Mon Jan 18 15:50:06 UTC 2010

>Number:         142938
>Category:       misc
>Synopsis:       [share/examples] [kld] fix warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 18 15:50:06 UTC 2010
>Originator:     Andrey Zonov
>Release:        HEAD

cd /usr/share/examples/kld/ && make

Patch attached with submission follows:

Index: cdev/test/testcdev.c
--- cdev/test/testcdev.c	(revision 202577)
+++ cdev/test/testcdev.c	(working copy)
@@ -75,6 +75,7 @@
 #include <fcntl.h>
 #include <paths.h>
 #include <string.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/ioccom.h>
Index: syscall/test/call.c
--- syscall/test/call.c	(revision 202577)
+++ syscall/test/call.c	(working copy)
@@ -27,6 +27,7 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
 #include <sys/module.h>
Index: firmware/fwconsumer/fw_consumer.c
--- firmware/fwconsumer/fw_consumer.c	(revision 202577)
+++ firmware/fwconsumer/fw_consumer.c	(working copy)
@@ -36,7 +36,7 @@
 #include <sys/proc.h>
 #include <sys/module.h>
-static struct firmware *fp;
+static const struct firmware *fp;
 static int
 fw_consumer_modevent(module_t mod, int type, void *unused)


More information about the freebsd-bugs mailing list