Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2017 05:00:09 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316598 - head/sys/kern
Message-ID:  <201704070500.v375092A052103@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Fri Apr  7 05:00:09 2017
New Revision: 316598
URL: https://svnweb.freebsd.org/changeset/base/316598

Log:
  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

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Fri Apr  7 02:31:55 2017	(r316597)
+++ head/sys/kern/kern_descrip.c	Fri Apr  7 05:00:09 2017	(r316598)
@@ -3573,11 +3573,11 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER
 	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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704070500.v375092A052103>