kdump: eliminate new clang warnings.
MFC after: 1 week
This commit is contained in:
parent
a1cbd04334
commit
78ec874dd3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276758
@ -23,13 +23,13 @@ CFLAGS+=-DHAVE_LIBCAPSICUM
|
||||
CFLAGS+=-DPF
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
||||
SRCS+= linux_syscalls.c
|
||||
.endif
|
||||
|
||||
NO_WERROR?= YES
|
||||
|
||||
CLEANFILES= ioctl.c kdump_subr.c kdump_subr.h linux_syscalls.c
|
||||
CLEANFILES= ioctl.c kdump_subr.c kdump_subr.h
|
||||
|
||||
.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386")
|
||||
CLEANFILES+= linux_syscalls.c
|
||||
.endif
|
||||
|
||||
ioctl.c: mkioctls
|
||||
env MACHINE=${MACHINE} CPP="${CPP}" \
|
||||
@ -41,11 +41,9 @@ kdump_subr.h: mksubr
|
||||
|
||||
kdump_subr.c: mksubr kdump_subr.h
|
||||
sh ${.CURDIR}/mksubr ${DESTDIR}/usr/include >${.TARGET}
|
||||
|
||||
linux_syscalls.c:
|
||||
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
|
||||
.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386")
|
||||
sh ${.CURDIR}/../../sys/kern/makesyscalls.sh \
|
||||
${.CURDIR}/../../sys/${MACHINE_ARCH}/linux${SFX}/syscalls.master ${.CURDIR}/linux_syscalls.conf
|
||||
echo "int nlinux_syscalls = sizeof(linux_syscallnames) / sizeof(linux_syscallnames[0]);" \
|
||||
>> linux_syscalls.c
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -148,8 +148,11 @@ static struct ktr_header ktr_header;
|
||||
|
||||
void linux_ktrsyscall(struct ktr_syscall *);
|
||||
void linux_ktrsysret(struct ktr_sysret *);
|
||||
extern char *linux_syscallnames[];
|
||||
extern int nlinux_syscalls;
|
||||
extern const char *linux_syscallnames[];
|
||||
|
||||
#include <linux_syscalls.c>
|
||||
static int nlinux_syscalls = sizeof(linux_syscallnames) / \
|
||||
sizeof(linux_syscallnames[0]);
|
||||
|
||||
/*
|
||||
* from linux.h
|
||||
@ -1934,7 +1937,7 @@ void
|
||||
ktrfault(struct ktr_fault *ktr)
|
||||
{
|
||||
|
||||
printf("0x%jx ", ktr->vaddr);
|
||||
printf("0x%jx ", (uintmax_t)ktr->vaddr);
|
||||
vmprotname(ktr->type);
|
||||
printf("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user