Date: Mon, 18 Jan 2010 15:46:04 GMT From: Andrey Zonov <andrey.zonov@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/142938: [share/examples] [kld] fix warnings Message-ID: <201001181546.o0IFk446040861@www.freebsd.org> Resent-Message-ID: <201001181550.o0IFo665093074@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142938 >Category: misc >Synopsis: [share/examples] [kld] fix warnings >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 18 15:50:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Andrey Zonov >Release: HEAD >Organization: >Environment: >Description: >How-To-Repeat: cd /usr/share/examples/kld/ && make >Fix: 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) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001181546.o0IFk446040861>