bin/71855: making kdump WARNS=6 clean
Divacky Roman
xdivac02 at stud.fit.vutbr.cz
Sat Sep 18 02:10:14 PDT 2004
>Number: 71855
>Category: bin
>Synopsis: making kdump WARNS=6 clean
>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: Sat Sep 18 09:10:13 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Divacky Roman
>Release: FreeBSD 6.0-CURRENT i386
>Organization:
home
>Environment:
FreeBSD witten 6.0-CURRENT FreeBSD 6.0-CURRENT #130: Fri Sep 17 18:19:53 CEST
2004 root at witten:/usr/obj/usr/src/sys/NEOLOGISM i386
>Description:
This makes kdump partially WARNS=6 clean... its also necessary to resolve
conflict between pccard/cardinfo.h and sys/memrange.h MDF_ACTIVE define...
>How-To-Repeat:
apply this patch and do "something" with that MDF_ACTIVE define
>Fix:
diff -urN /usr/src/usr.bin/kdump/Makefile kdump/Makefile
--- /usr/src/usr.bin/kdump/Makefile Tue Jul 23 11:15:45 2002
+++ /usr/src/usr.bin/kdump/Makefile Sat Sep 18 10:52:49 2004
@@ -6,6 +6,7 @@
PROG= kdump
SRCS= kdump.c ioctl.c subr.c
CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR}/../..
+WARNS?= 6
CLEANFILES= ioctl.c
diff -urN /usr/src/usr.bin/kdump/kdump.c kdump/kdump.c
--- /usr/src/usr.bin/kdump/kdump.c Thu Mar 25 13:33:55 2004
+++ /usr/src/usr.bin/kdump/kdump.c Sat Sep 18 10:52:49 2004
@@ -79,6 +79,7 @@
void ktrcsw(struct ktr_csw *);
void ktruser(int, unsigned char *);
void usage(void);
+extern const char *ioctlname(register_t);
int timestamp, decimal, fancy = 1, tail, maxdata;
const char *tracefile = DEF_TRACEFILE;
@@ -285,7 +286,6 @@
{
int narg = ktr->ktr_narg;
register_t *ip;
- const char *ioctlname(u_long);
if (ktr->ktr_code >= nsyscalls || ktr->ktr_code < 0)
(void)printf("[%d]", ktr->ktr_code);
--- /usr/src/sys/sys/diskpc98.h Wed Apr 7 06:19:49 2004
+++ /usr/src/sys/sys/diskpc98.h Sat Sep 18 10:57:10 2004
@@ -36,9 +36,11 @@
#include <sys/ioccom.h>
#define DOSBBSECTOR 0 /* DOS boot block relative sector number */
+#ifdef PC98
#define DOSPARTOFF 0
#define NDOSPART 16
#define DOSPTYP_386BSD 0x94 /* 386BSD partition type */
+#endif
struct pc98_partition {
unsigned char dp_mid;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list