From 69cfbe8851c2c1a4eece4a2c8d3d9440c8116387 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Fri, 7 Apr 2017 05:00:09 +0000 Subject: [PATCH] kern_descrip: Move kinfo_ofile size assert under COMPAT_FREEBSD7 The size and structure are not used outside of FreeBSD 7 compatibility ABIs. Sponsored by: Dell EMC Isilon --- sys/kern/kern_descrip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 076230e6ccc4..bb54f9d8acb7 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -3573,11 +3573,11 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER_ARGS) return (error != 0 ? error : error2); } +#ifdef COMPAT_FREEBSD7 #ifdef KINFO_OFILE_SIZE CTASSERT(sizeof(struct kinfo_ofile) == KINFO_OFILE_SIZE); #endif -#ifdef COMPAT_FREEBSD7 static void kinfo_to_okinfo(struct kinfo_file *kif, struct kinfo_ofile *okif) {