Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154950941
D14941.id41010.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
67 KB
Referenced Files
None
Subscribers
None
D14941.id41010.diff
View Options
Index: sys/amd64/amd64/db_trace.c
===================================================================
--- sys/amd64/amd64/db_trace.c
+++ sys/amd64/amd64/db_trace.c
@@ -27,8 +27,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kdb.h>
Index: sys/amd64/amd64/exception.S
===================================================================
--- sys/amd64/amd64/exception.S
+++ sys/amd64/amd64/exception.S
@@ -39,7 +39,6 @@
*/
#include "opt_atpic.h"
-#include "opt_compat.h"
#include "opt_hwpmc_hooks.h"
#include "assym.inc"
Index: sys/amd64/amd64/genassym.c
===================================================================
--- sys/amd64/amd64/genassym.c
+++ sys/amd64/amd64/genassym.c
@@ -37,7 +37,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_hwpmc_hooks.h"
#include "opt_kstack_pages.h"
Index: sys/amd64/amd64/machdep.c
===================================================================
--- sys/amd64/amd64/machdep.c
+++ sys/amd64/amd64/machdep.c
@@ -44,7 +44,6 @@
__FBSDID("$FreeBSD$");
#include "opt_atpic.h"
-#include "opt_compat.h"
#include "opt_cpu.h"
#include "opt_ddb.h"
#include "opt_inet.h"
Index: sys/amd64/amd64/ptrace_machdep.c
===================================================================
--- sys/amd64/amd64/ptrace_machdep.c
+++ sys/amd64/amd64/ptrace_machdep.c
@@ -30,8 +30,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
Index: sys/amd64/amd64/vm_machdep.c
===================================================================
--- sys/amd64/amd64/vm_machdep.c
+++ sys/amd64/amd64/vm_machdep.c
@@ -47,7 +47,6 @@
#include "opt_isa.h"
#include "opt_cpu.h"
-#include "opt_compat.h"
#include <sys/param.h>
#include <sys/systm.h>
Index: sys/amd64/ia32/ia32_misc.c
===================================================================
--- sys/amd64/ia32/ia32_misc.c
+++ sys/amd64/ia32/ia32_misc.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/proc.h>
Index: sys/amd64/ia32/ia32_reg.c
===================================================================
--- sys/amd64/ia32/ia32_reg.c
+++ sys/amd64/ia32/ia32_reg.c
@@ -31,8 +31,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/exec.h>
#include <sys/fcntl.h>
Index: sys/amd64/ia32/ia32_signal.c
===================================================================
--- sys/amd64/ia32/ia32_signal.c
+++ sys/amd64/ia32/ia32_signal.c
@@ -36,8 +36,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/exec.h>
#include <sys/fcntl.h>
Index: sys/amd64/ia32/ia32_sigtramp.S
===================================================================
--- sys/amd64/ia32/ia32_sigtramp.S
+++ sys/amd64/ia32/ia32_sigtramp.S
@@ -26,8 +26,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <machine/asmacros.h>
#include <sys/syscall.h>
Index: sys/amd64/ia32/ia32_syscall.c
===================================================================
--- sys/amd64/ia32/ia32_syscall.c
+++ sys/amd64/ia32/ia32_syscall.c
@@ -45,7 +45,6 @@
*/
#include "opt_clock.h"
-#include "opt_compat.h"
#include "opt_cpu.h"
#include "opt_isa.h"
Index: sys/amd64/linux/linux_dummy.c
===================================================================
--- sys/amd64/linux/linux_dummy.c
+++ sys/amd64/linux/linux_dummy.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/sdt.h>
Index: sys/amd64/linux/linux_sysvec.c
===================================================================
--- sys/amd64/linux/linux_sysvec.c
+++ sys/amd64/linux/linux_sysvec.c
@@ -34,8 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#define __ELF_WORD_SIZE 64
#include <sys/param.h>
Index: sys/amd64/linux32/linux32_dummy.c
===================================================================
--- sys/amd64/linux32/linux32_dummy.c
+++ sys/amd64/linux32/linux32_dummy.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/sdt.h>
Index: sys/amd64/linux32/linux32_machdep.c
===================================================================
--- sys/amd64/linux32/linux32_machdep.c
+++ sys/amd64/linux32/linux32_machdep.c
@@ -33,8 +33,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/capsicum.h>
#include <sys/clock.h>
Index: sys/amd64/linux32/linux32_sysent.c
===================================================================
--- sys/amd64/linux32/linux32_sysent.c
+++ sys/amd64/linux32/linux32_sysent.c
@@ -5,7 +5,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
Index: sys/amd64/linux32/linux32_sysvec.c
===================================================================
--- sys/amd64/linux32/linux32_sysvec.c
+++ sys/amd64/linux32/linux32_sysvec.c
@@ -34,7 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#ifndef COMPAT_FREEBSD32
#error "Unable to compile Linux-emulator due to missing COMPAT_FREEBSD32 option!"
Index: sys/amd64/linux32/syscalls.master
===================================================================
--- sys/amd64/linux32/syscalls.master
+++ sys/amd64/linux32/syscalls.master
@@ -26,7 +26,6 @@
; function prototype in sys/sysproto.h. Does add a
; definition to syscall.h besides adding a sysent.
-#include "opt_compat.h"
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
Index: sys/arm/arm/machdep.c
===================================================================
--- sys/arm/arm/machdep.c
+++ sys/arm/arm/machdep.c
@@ -44,7 +44,6 @@
* Updated : 18/04/01 updated for new wscons
*/
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
#include "opt_platform.h"
Index: sys/arm/arm/vm_machdep.c
===================================================================
--- sys/arm/arm/vm_machdep.c
+++ sys/arm/arm/vm_machdep.c
@@ -42,8 +42,6 @@
* Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$
*/
-#include "opt_compat.h"
-
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
Index: sys/arm64/arm64/machdep.c
===================================================================
--- sys/arm64/arm64/machdep.c
+++ sys/arm64/arm64/machdep.c
@@ -26,7 +26,6 @@
*/
#include "opt_acpi.h"
-#include "opt_compat.h"
#include "opt_platform.h"
#include "opt_ddb.h"
Index: sys/cam/scsi/scsi_enc.c
===================================================================
--- sys/cam/scsi/scsi_enc.c
+++ sys/cam/scsi/scsi_enc.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/conf.h>
Index: sys/cam/scsi/scsi_pass.c
===================================================================
--- sys/cam/scsi/scsi_pass.c
+++ sys/cam/scsi/scsi_pass.c
@@ -30,8 +30,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
Index: sys/compat/freebsd32/freebsd32_ioctl.c
===================================================================
--- sys/compat/freebsd32/freebsd32_ioctl.c
+++ sys/compat/freebsd32/freebsd32_ioctl.c
@@ -32,8 +32,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/capsicum.h>
#include <sys/cdio.h>
Index: sys/compat/freebsd32/freebsd32_misc.c
===================================================================
--- sys/compat/freebsd32/freebsd32_misc.c
+++ sys/compat/freebsd32/freebsd32_misc.c
@@ -29,7 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ktrace.h"
Index: sys/compat/freebsd32/freebsd32_sysent.c
===================================================================
--- sys/compat/freebsd32/freebsd32_sysent.c
+++ sys/compat/freebsd32/freebsd32_sysent.c
@@ -5,8 +5,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
Index: sys/compat/ia32/ia32_genassym.c
===================================================================
--- sys/compat/ia32/ia32_genassym.c
+++ sys/compat/ia32/ia32_genassym.c
@@ -1,8 +1,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/assym.h>
#include <sys/systm.h>
Index: sys/compat/ia32/ia32_sysvec.c
===================================================================
--- sys/compat/ia32/ia32_sysvec.c
+++ sys/compat/ia32/ia32_sysvec.c
@@ -30,8 +30,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#define __ELF_WORD_SIZE 32
#include <sys/param.h>
Index: sys/compat/linux/linux_event.c
===================================================================
--- sys/compat/linux/linux_event.c
+++ sys/compat/linux/linux_event.c
@@ -28,8 +28,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/imgact.h>
Index: sys/compat/linux/linux_file.c
===================================================================
--- sys/compat/linux/linux_file.c
+++ sys/compat/linux/linux_file.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/capsicum.h>
Index: sys/compat/linux/linux_fork.c
===================================================================
--- sys/compat/linux/linux_fork.c
+++ sys/compat/linux/linux_fork.c
@@ -31,8 +31,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/imgact.h>
Index: sys/compat/linux/linux_futex.c
===================================================================
--- sys/compat/linux/linux_futex.c
+++ sys/compat/linux/linux_futex.c
@@ -41,8 +41,6 @@
__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.7 2006/07/24 19:01:49 manu Exp $");
#endif
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/imgact.h>
Index: sys/compat/linux/linux_getcwd.c
===================================================================
--- sys/compat/linux/linux_getcwd.c
+++ sys/compat/linux/linux_getcwd.c
@@ -38,8 +38,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/syscallsubr.h>
Index: sys/compat/linux/linux_ioctl.c
===================================================================
--- sys/compat/linux/linux_ioctl.c
+++ sys/compat/linux/linux_ioctl.c
@@ -26,8 +26,6 @@
* SUCH DAMAGE.
*/
-#include "opt_compat.h"
-
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
Index: sys/compat/linux/linux_ipc.c
===================================================================
--- sys/compat/linux/linux_ipc.c
+++ sys/compat/linux/linux_ipc.c
@@ -40,8 +40,6 @@
#include <sys/shm.h>
#include <sys/stat.h>
-#include "opt_compat.h"
-
#ifdef COMPAT_LINUX32
#include <machine/../linux32/linux.h>
#include <machine/../linux32/linux32_proto.h>
Index: sys/compat/linux/linux_misc.c
===================================================================
--- sys/compat/linux/linux_misc.c
+++ sys/compat/linux/linux_misc.c
@@ -32,8 +32,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/blist.h>
#include <sys/fcntl.h>
Index: sys/compat/linux/linux_signal.c
===================================================================
--- sys/compat/linux/linux_signal.c
+++ sys/compat/linux/linux_signal.c
@@ -41,8 +41,6 @@
#include <security/audit/audit.h>
-#include "opt_compat.h"
-
#ifdef COMPAT_LINUX32
#include <machine/../linux32/linux.h>
#include <machine/../linux32/linux32_proto.h>
Index: sys/compat/linux/linux_socket.c
===================================================================
--- sys/compat/linux/linux_socket.c
+++ sys/compat/linux/linux_socket.c
@@ -30,7 +30,6 @@
__FBSDID("$FreeBSD$");
/* XXX we use functions that might not exist. */
-#include "opt_compat.h"
#include "opt_inet6.h"
#include <sys/param.h>
Index: sys/compat/linux/linux_stats.c
===================================================================
--- sys/compat/linux/linux_stats.c
+++ sys/compat/linux/linux_stats.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/capsicum.h>
#include <sys/dirent.h>
Index: sys/compat/linux/linux_sysctl.c
===================================================================
--- sys/compat/linux/linux_sysctl.c
+++ sys/compat/linux/linux_sysctl.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/lock.h>
Index: sys/compat/linux/linux_time.c
===================================================================
--- sys/compat/linux/linux_time.c
+++ sys/compat/linux/linux_time.c
@@ -37,8 +37,6 @@
__KERNEL_RCSID(0, "$NetBSD: linux_time.c,v 1.14 2006/05/14 03:40:54 christos Exp $");
#endif
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/lock.h>
Index: sys/compat/linux/linux_timer.c
===================================================================
--- sys/compat/linux/linux_timer.c
+++ sys/compat/linux/linux_timer.c
@@ -30,8 +30,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/signal.h>
Index: sys/compat/linux/linux_uid16.c
===================================================================
--- sys/compat/linux/linux_uid16.c
+++ sys/compat/linux/linux_uid16.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/fcntl.h>
#include <sys/param.h>
#include <sys/kernel.h>
Index: sys/compat/linux/linux_util.c
===================================================================
--- sys/compat/linux/linux_util.c
+++ sys/compat/linux/linux_util.c
@@ -34,8 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/fcntl.h>
Index: sys/compat/linux/linux_vdso.c
===================================================================
--- sys/compat/linux/linux_vdso.c
+++ sys/compat/linux/linux_vdso.c
@@ -27,8 +27,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#if defined(__i386__) || (defined(__amd64__) && defined(COMPAT_LINUX32))
#define __ELF_WORD_SIZE 32
#else
Index: sys/conf/options
===================================================================
--- sys/conf/options
+++ sys/conf/options
@@ -80,18 +80,18 @@
CALLOUT_PROFILING
CAPABILITIES opt_capsicum.h
CAPABILITY_MODE opt_capsicum.h
-COMPAT_43 opt_compat.h
-COMPAT_43TTY opt_compat.h
-COMPAT_FREEBSD4 opt_compat.h
-COMPAT_FREEBSD5 opt_compat.h
-COMPAT_FREEBSD6 opt_compat.h
-COMPAT_FREEBSD7 opt_compat.h
-COMPAT_FREEBSD9 opt_compat.h
-COMPAT_FREEBSD10 opt_compat.h
-COMPAT_FREEBSD11 opt_compat.h
+COMPAT_43 opt_global.h
+COMPAT_43TTY opt_global.h
+COMPAT_FREEBSD4 opt_global.h
+COMPAT_FREEBSD5 opt_global.h
+COMPAT_FREEBSD6 opt_global.h
+COMPAT_FREEBSD7 opt_global.h
+COMPAT_FREEBSD9 opt_global.h
+COMPAT_FREEBSD10 opt_global.h
+COMPAT_FREEBSD11 opt_global.h
COMPAT_CLOUDABI32 opt_dontuse.h
COMPAT_CLOUDABI64 opt_dontuse.h
-COMPAT_LINUXKPI opt_compat.h
+COMPAT_LINUXKPI opt_global.h
COMPILING_LINT opt_global.h
CY_PCI_FASTINTR
DEADLKRES opt_watchdog.h
Index: sys/conf/options.amd64
===================================================================
--- sys/conf/options.amd64
+++ sys/conf/options.amd64
@@ -14,10 +14,10 @@
# Options for emulators. These should only be used at config time, so
# they are handled like options for static filesystems
# (see src/sys/conf/options), except for broken debugging options.
-COMPAT_FREEBSD32 opt_compat.h
+COMPAT_FREEBSD32 opt_global.h
#IBCS2 opt_dontuse.h
#COMPAT_LINUX opt_dontuse.h
-COMPAT_LINUX32 opt_compat.h
+COMPAT_LINUX32 opt_global.h
LINPROCFS opt_dontuse.h
LINSYSFS opt_dontuse.h
NDISAPI opt_dontuse.h
Index: sys/conf/options.arm64
===================================================================
--- sys/conf/options.arm64
+++ sys/conf/options.arm64
@@ -8,7 +8,7 @@
VFP opt_global.h
# Binary compatibility
-COMPAT_FREEBSD32 opt_compat.h
+COMPAT_FREEBSD32 opt_global.h
# EFI Runtime services support
EFIRT opt_efirt.h
Index: sys/conf/options.mips
===================================================================
--- sys/conf/options.mips
+++ sys/conf/options.mips
@@ -58,7 +58,7 @@
MIPS64ELHF
MIPSN32
-COMPAT_FREEBSD32 opt_compat.h
+COMPAT_FREEBSD32 opt_global.h
YAMON opt_global.h
CFE opt_global.h
Index: sys/conf/options.powerpc
===================================================================
--- sys/conf/options.powerpc
+++ sys/conf/options.powerpc
@@ -13,7 +13,7 @@
FPU_EMU
-COMPAT_FREEBSD32 opt_compat.h
+COMPAT_FREEBSD32 opt_global.h
GFB_DEBUG opt_gfb.h
GFB_NO_FONT_LOADING opt_gfb.h
Index: sys/dev/aac/aac.c
===================================================================
--- sys/dev/aac/aac.c
+++ sys/dev/aac/aac.c
@@ -38,7 +38,6 @@
#define AAC_DRIVERNAME "aac"
#include "opt_aac.h"
-#include "opt_compat.h"
/* #include <stddef.h> */
#include <sys/param.h>
Index: sys/dev/aacraid/aacraid.c
===================================================================
--- sys/dev/aacraid/aacraid.c
+++ sys/dev/aacraid/aacraid.c
@@ -39,7 +39,6 @@
#define AAC_DRIVERNAME "aacraid"
#include "opt_aacraid.h"
-#include "opt_compat.h"
/* #include <stddef.h> */
#include <sys/param.h>
Index: sys/dev/acpica/acpi_hpet.c
===================================================================
--- sys/dev/acpica/acpi_hpet.c
+++ sys/dev/acpica/acpi_hpet.c
@@ -29,7 +29,6 @@
__FBSDID("$FreeBSD$");
#include "opt_acpi.h"
-#include "opt_compat.h"
#if defined(__amd64__)
#define DEV_APIC
Index: sys/dev/atkbdc/atkbd.c
===================================================================
--- sys/dev/atkbdc/atkbd.c
+++ sys/dev/atkbdc/atkbd.c
@@ -30,7 +30,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_kbd.h"
#include "opt_atkbd.h"
#include "opt_evdev.h"
Index: sys/dev/cy/cy.c
===================================================================
--- sys/dev/cy/cy.c
+++ sys/dev/cy/cy.c
@@ -33,8 +33,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
/*
* TODO:
* Atomic COR change.
Index: sys/dev/drm2/drmP.h
===================================================================
--- sys/dev/drm2/drmP.h
+++ sys/dev/drm2/drmP.h
@@ -121,7 +121,6 @@
#include <dev/drm2/drm_hashtab.h>
#include <dev/drm2/drm_mm.h>
-#include "opt_compat.h"
#include "opt_drm.h"
#include "opt_syscons.h"
#ifdef DRM_DEBUG
Index: sys/dev/drm2/drm_ioc32.c
===================================================================
--- sys/dev/drm2/drm_ioc32.c
+++ sys/dev/drm2/drm_ioc32.c
@@ -25,8 +25,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#ifdef COMPAT_FREEBSD32
#include <dev/drm2/drmP.h>
Index: sys/dev/drm2/i915/i915_ioc32.c
===================================================================
--- sys/dev/drm2/i915/i915_ioc32.c
+++ sys/dev/drm2/i915/i915_ioc32.c
@@ -30,8 +30,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#ifdef COMPAT_FREEBSD32
/** @file i915_ioc32.c
Index: sys/dev/drm2/radeon/radeon_ioc32.c
===================================================================
--- sys/dev/drm2/radeon/radeon_ioc32.c
+++ sys/dev/drm2/radeon/radeon_ioc32.c
@@ -31,8 +31,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#ifdef COMPAT_FREEBSD32
#include <dev/drm2/drmP.h>
Index: sys/dev/filemon/filemon.c
===================================================================
--- sys/dev/filemon/filemon.c
+++ sys/dev/filemon/filemon.c
@@ -31,8 +31,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/file.h>
#include <sys/systm.h>
Index: sys/dev/filemon/filemon_wrapper.c
===================================================================
--- sys/dev/filemon/filemon_wrapper.c
+++ sys/dev/filemon/filemon_wrapper.c
@@ -39,8 +39,6 @@
#include <sys/sysent.h>
#include <sys/vnode.h>
-#include "opt_compat.h"
-
static eventhandler_tag filemon_exec_tag;
static eventhandler_tag filemon_exit_tag;
static eventhandler_tag filemon_fork_tag;
Index: sys/dev/kbdmux/kbdmux.c
===================================================================
--- sys/dev/kbdmux/kbdmux.c
+++ sys/dev/kbdmux/kbdmux.c
@@ -33,7 +33,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
#include "opt_evdev.h"
#include "opt_kbd.h"
#include "opt_kbdmux.h"
Index: sys/dev/md/md.c
===================================================================
--- sys/dev/md/md.c
+++ sys/dev/md/md.c
@@ -60,7 +60,6 @@
* From: src/sys/dev/vn/vn.c,v 1.122 2000/12/16 16:06:03
*/
-#include "opt_compat.h"
#include "opt_rootdevname.h"
#include "opt_geom.h"
#include "opt_md.h"
Index: sys/dev/mfi/mfi.c
===================================================================
--- sys/dev/mfi/mfi.c
+++ sys/dev/mfi/mfi.c
@@ -55,7 +55,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_mfi.h"
#include <sys/param.h>
Index: sys/dev/mpr/mpr_user.c
===================================================================
--- sys/dev/mpr/mpr_user.c
+++ sys/dev/mpr/mpr_user.c
@@ -63,8 +63,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
/* TODO Move headers to mprvar */
#include <sys/types.h>
#include <sys/param.h>
Index: sys/dev/mps/mps_user.c
===================================================================
--- sys/dev/mps/mps_user.c
+++ sys/dev/mps/mps_user.c
@@ -65,8 +65,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
/* TODO Move headers to mpsvar */
#include <sys/types.h>
#include <sys/param.h>
Index: sys/dev/mrsas/mrsas_linux.c
===================================================================
--- sys/dev/mrsas/mrsas_linux.c
+++ sys/dev/mrsas/mrsas_linux.c
@@ -67,6 +67,7 @@
#include <compat/linux/linux_util.h>
#include <dev/mrsas/mrsas.h>
+#undef COMPAT_FREEBSD32
#include <dev/mrsas/mrsas_ioctl.h>
/* There are multiple ioctl number ranges that need to be handled */
Index: sys/dev/null/null.c
===================================================================
--- sys/dev/null/null.c
+++ sys/dev/null/null.c
@@ -32,8 +32,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
Index: sys/dev/pci/pci_user.c
===================================================================
--- sys/dev/pci/pci_user.c
+++ sys/dev/pci/pci_user.c
@@ -30,7 +30,6 @@
__FBSDID("$FreeBSD$");
#include "opt_bus.h" /* XXX trim includes */
-#include "opt_compat.h"
#include <sys/param.h>
#include <sys/systm.h>
Index: sys/dev/rp/rp.c
===================================================================
--- sys/dev/rp/rp.c
+++ sys/dev/rp/rp.c
@@ -40,8 +40,6 @@
* rp.c - for RocketPort FreeBSD
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/endian.h>
Index: sys/dev/sio/sio.c
===================================================================
--- sys/dev/sio/sio.c
+++ sys/dev/sio/sio.c
@@ -35,7 +35,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_gdb.h"
#include "opt_kdb.h"
#include "opt_sio.h"
Index: sys/dev/syscons/scvidctl.c
===================================================================
--- sys/dev/syscons/scvidctl.c
+++ sys/dev/syscons/scvidctl.c
@@ -32,7 +32,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_syscons.h"
#include <sys/param.h>
Index: sys/dev/syscons/syscons.c
===================================================================
--- sys/dev/syscons/syscons.c
+++ sys/dev/syscons/syscons.c
@@ -34,7 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_syscons.h"
#include "opt_splash.h"
#include "opt_ddb.h"
Index: sys/dev/uart/uart_kbd_sun.c
===================================================================
--- sys/dev/uart/uart_kbd_sun.c
+++ sys/dev/uart/uart_kbd_sun.c
@@ -29,7 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_kbd.h"
#include "opt_sunkbd.h"
Index: sys/dev/usb/input/ukbd.c
===================================================================
--- sys/dev/usb/input/ukbd.c
+++ sys/dev/usb/input/ukbd.c
@@ -39,7 +39,6 @@
* HID spec: http://www.usb.org/developers/devclass_docs/HID1_11.pdf
*/
-#include "opt_compat.h"
#include "opt_kbd.h"
#include "opt_ukbd.h"
#include "opt_evdev.h"
Index: sys/dev/vkbd/vkbd.c
===================================================================
--- sys/dev/vkbd/vkbd.c
+++ sys/dev/vkbd/vkbd.c
@@ -33,7 +33,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
#include "opt_kbd.h"
#include <sys/param.h>
Index: sys/dev/vt/vt_core.c
===================================================================
--- sys/dev/vt/vt_core.c
+++ sys/dev/vt/vt_core.c
@@ -35,8 +35,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/consio.h>
#include <sys/eventhandler.h>
Index: sys/fs/cuse/cuse.c
===================================================================
--- sys/fs/cuse/cuse.c
+++ sys/fs/cuse/cuse.c
@@ -24,8 +24,6 @@
* SUCH DAMAGE.
*/
-#include "opt_compat.h"
-
#include <sys/stdint.h>
#include <sys/stddef.h>
#include <sys/param.h>
Index: sys/fs/devfs/devfs_devs.c
===================================================================
--- sys/fs/devfs/devfs_devs.c
+++ sys/fs/devfs/devfs_devs.c
@@ -30,8 +30,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
Index: sys/fs/procfs/procfs_dbregs.c
===================================================================
--- sys/fs/procfs/procfs_dbregs.c
+++ sys/fs/procfs/procfs_dbregs.c
@@ -45,8 +45,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>
Index: sys/fs/procfs/procfs_fpregs.c
===================================================================
--- sys/fs/procfs/procfs_fpregs.c
+++ sys/fs/procfs/procfs_fpregs.c
@@ -39,8 +39,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>
Index: sys/fs/procfs/procfs_ioctl.c
===================================================================
--- sys/fs/procfs/procfs_ioctl.c
+++ sys/fs/procfs/procfs_ioctl.c
@@ -30,8 +30,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/lock.h>
#include <sys/mutex.h>
Index: sys/fs/procfs/procfs_map.c
===================================================================
--- sys/fs/procfs/procfs_map.c
+++ sys/fs/procfs/procfs_map.c
@@ -37,8 +37,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>
Index: sys/fs/procfs/procfs_regs.c
===================================================================
--- sys/fs/procfs/procfs_regs.c
+++ sys/fs/procfs/procfs_regs.c
@@ -39,8 +39,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>
Index: sys/geom/geom_dev.c
===================================================================
--- sys/geom/geom_dev.c
+++ sys/geom/geom_dev.c
@@ -38,8 +38,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
Index: sys/i386/i386/genassym.c
===================================================================
--- sys/i386/i386/genassym.c
+++ sys/i386/i386/genassym.c
@@ -38,7 +38,6 @@
__FBSDID("$FreeBSD$");
#include "opt_apic.h"
-#include "opt_compat.h"
#include "opt_hwpmc_hooks.h"
#include "opt_kstack_pages.h"
Index: sys/i386/i386/locore.s
===================================================================
--- sys/i386/i386/locore.s
+++ sys/i386/i386/locore.s
@@ -40,7 +40,6 @@
*/
#include "opt_bootp.h"
-#include "opt_compat.h"
#include "opt_nfsroot.h"
#include "opt_pmap.h"
Index: sys/i386/i386/machdep.c
===================================================================
--- sys/i386/i386/machdep.c
+++ sys/i386/i386/machdep.c
@@ -44,7 +44,6 @@
#include "opt_apic.h"
#include "opt_atpic.h"
-#include "opt_compat.h"
#include "opt_cpu.h"
#include "opt_ddb.h"
#include "opt_inet.h"
Index: sys/i386/i386/sigtramp.s
===================================================================
--- sys/i386/i386/sigtramp.s
+++ sys/i386/i386/sigtramp.s
@@ -39,8 +39,6 @@
* and many others.
*/
-#include "opt_compat.h"
-
#include <sys/syscall.h>
#include <machine/asmacros.h>
#include <machine/psl.h>
Index: sys/i386/linux/linux_dummy.c
===================================================================
--- sys/i386/linux/linux_dummy.c
+++ sys/i386/linux/linux_dummy.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/sdt.h>
Index: sys/kern/imgact_elf.c
===================================================================
--- sys/kern/imgact_elf.c
+++ sys/kern/imgact_elf.c
@@ -35,7 +35,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include <sys/param.h>
#include <sys/capsicum.h>
Index: sys/kern/init_sysent.c
===================================================================
--- sys/kern/init_sysent.c
+++ sys/kern/init_sysent.c
@@ -5,8 +5,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
Index: sys/kern/kern_descrip.c
===================================================================
--- sys/kern/kern_descrip.c
+++ sys/kern/kern_descrip.c
@@ -40,7 +40,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_ktrace.h"
Index: sys/kern/kern_event.c
===================================================================
--- sys/kern/kern_event.c
+++ sys/kern/kern_event.c
@@ -31,7 +31,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include "opt_kqueue.h"
Index: sys/kern/kern_exec.c
===================================================================
--- sys/kern/kern_exec.c
+++ sys/kern/kern_exec.c
@@ -30,7 +30,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include "opt_hwpmc_hooks.h"
#include "opt_ktrace.h"
#include "opt_vm.h"
Index: sys/kern/kern_exit.c
===================================================================
--- sys/kern/kern_exit.c
+++ sys/kern/kern_exit.c
@@ -39,7 +39,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include <sys/param.h>
Index: sys/kern/kern_jail.c
===================================================================
--- sys/kern/kern_jail.c
+++ sys/kern/kern_jail.c
@@ -31,7 +31,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_inet.h"
#include "opt_inet6.h"
Index: sys/kern/kern_mib.c
===================================================================
--- sys/kern/kern_mib.c
+++ sys/kern/kern_mib.c
@@ -40,7 +40,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_posix.h"
#include "opt_config.h"
Index: sys/kern/kern_module.c
===================================================================
--- sys/kern/kern_module.c
+++ sys/kern/kern_module.c
@@ -26,8 +26,6 @@
* SUCH DAMAGE.
*/
-#include "opt_compat.h"
-
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
Index: sys/kern/kern_proc.c
===================================================================
--- sys/kern/kern_proc.c
+++ sys/kern/kern_proc.c
@@ -34,7 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_ktrace.h"
#include "opt_kstack_pages.h"
Index: sys/kern/kern_prot.c
===================================================================
--- sys/kern/kern_prot.c
+++ sys/kern/kern_prot.c
@@ -46,7 +46,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_inet.h"
#include "opt_inet6.h"
Index: sys/kern/kern_resource.c
===================================================================
--- sys/kern/kern_resource.c
+++ sys/kern/kern_resource.c
@@ -39,8 +39,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sysproto.h>
Index: sys/kern/kern_sendfile.c
===================================================================
--- sys/kern/kern_sendfile.c
+++ sys/kern/kern_sendfile.c
@@ -30,8 +30,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/capsicum.h>
Index: sys/kern/kern_sharedpage.c
===================================================================
--- sys/kern/kern_sharedpage.c
+++ sys/kern/kern_sharedpage.c
@@ -33,7 +33,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_vm.h"
#include <sys/param.h>
Index: sys/kern/kern_sig.c
===================================================================
--- sys/kern/kern_sig.c
+++ sys/kern/kern_sig.c
@@ -39,7 +39,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include <sys/param.h>
Index: sys/kern/kern_sysctl.c
===================================================================
--- sys/kern/kern_sysctl.c
+++ sys/kern/kern_sysctl.c
@@ -41,7 +41,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include <sys/param.h>
Index: sys/kern/kern_tc.c
===================================================================
--- sys/kern/kern_tc.c
+++ sys/kern/kern_tc.c
@@ -21,7 +21,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ntp.h"
#include "opt_ffclock.h"
Index: sys/kern/kern_thr.c
===================================================================
--- sys/kern/kern_thr.c
+++ sys/kern/kern_thr.c
@@ -29,7 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_posix.h"
#include <sys/param.h>
#include <sys/kernel.h>
Index: sys/kern/kern_umtx.c
===================================================================
--- sys/kern/kern_umtx.c
+++ sys/kern/kern_umtx.c
@@ -34,7 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_umtx_profiling.h"
#include <sys/param.h>
Index: sys/kern/kern_xxx.c
===================================================================
--- sys/kern/kern_xxx.c
+++ sys/kern/kern_xxx.c
@@ -34,8 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sysproto.h>
Index: sys/kern/makesyscalls.sh
===================================================================
--- sys/kern/makesyscalls.sh
+++ sys/kern/makesyscalls.sh
@@ -646,9 +646,6 @@
END {
printf "\n#define AS(name) (sizeof(struct name) / sizeof(register_t))\n" > sysinc
- if (ncompat != 0 || ncompat4 != 0 || ncompat6 != 0 || ncompat7 != 0 || ncompat10 != 0 || ncompat11 != 0)
- printf "#include \"opt_compat.h\"\n\n" > syssw
-
if (ncompat != 0) {
printf "\n#ifdef %s\n", compat > sysinc
printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)\n" > sysinc
Index: sys/kern/subr_dummy_vdso_tc.c
===================================================================
--- sys/kern/subr_dummy_vdso_tc.c
+++ sys/kern/subr_dummy_vdso_tc.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/vdso.h>
Index: sys/kern/sys_generic.c
===================================================================
--- sys/kern/sys_generic.c
+++ sys/kern/sys_generic.c
@@ -40,7 +40,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include <sys/param.h>
Index: sys/kern/sys_getrandom.c
===================================================================
--- sys/kern/sys_getrandom.c
+++ sys/kern/sys_getrandom.c
@@ -29,8 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/limits.h>
Index: sys/kern/sys_pipe.c
===================================================================
--- sys/kern/sys_pipe.c
+++ sys/kern/sys_pipe.c
@@ -91,8 +91,6 @@
* in the structure may have changed.
*/
-#include "opt_compat.h"
-
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
Index: sys/kern/sys_process.c
===================================================================
--- sys/kern/sys_process.c
+++ sys/kern/sys_process.c
@@ -34,8 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>
Index: sys/kern/sysv_ipc.c
===================================================================
--- sys/kern/sysv_ipc.c
+++ sys/kern/sysv_ipc.c
@@ -39,7 +39,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_sysvipc.h"
#include <sys/param.h>
Index: sys/kern/sysv_msg.c
===================================================================
--- sys/kern/sysv_msg.c
+++ sys/kern/sysv_msg.c
@@ -58,7 +58,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_sysvipc.h"
#include <sys/param.h>
Index: sys/kern/sysv_sem.c
===================================================================
--- sys/kern/sysv_sem.c
+++ sys/kern/sysv_sem.c
@@ -47,7 +47,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_sysvipc.h"
#include <sys/param.h>
Index: sys/kern/sysv_shm.c
===================================================================
--- sys/kern/sysv_shm.c
+++ sys/kern/sysv_shm.c
@@ -71,7 +71,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_sysvipc.h"
#include <sys/param.h>
Index: sys/kern/tty.c
===================================================================
--- sys/kern/tty.c
+++ sys/kern/tty.c
@@ -33,7 +33,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include <sys/param.h>
#include <sys/capsicum.h>
Index: sys/kern/tty_compat.c
===================================================================
--- sys/kern/tty_compat.c
+++ sys/kern/tty_compat.c
@@ -34,8 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
/*
* mapping routines for old line discipline (yuck)
*/
Index: sys/kern/uipc_mqueue.c
===================================================================
--- sys/kern/uipc_mqueue.c
+++ sys/kern/uipc_mqueue.c
@@ -54,7 +54,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include <sys/param.h>
#include <sys/kernel.h>
Index: sys/kern/uipc_sem.c
===================================================================
--- sys/kern/uipc_sem.c
+++ sys/kern/uipc_sem.c
@@ -41,7 +41,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_posix.h"
#include <sys/param.h>
Index: sys/kern/uipc_socket.c
===================================================================
--- sys/kern/uipc_socket.c
+++ sys/kern/uipc_socket.c
@@ -107,7 +107,6 @@
#include "opt_inet.h"
#include "opt_inet6.h"
-#include "opt_compat.h"
#include "opt_sctp.h"
#include <sys/param.h>
Index: sys/kern/uipc_syscalls.c
===================================================================
--- sys/kern/uipc_syscalls.c
+++ sys/kern/uipc_syscalls.c
@@ -37,7 +37,6 @@
#include "opt_capsicum.h"
#include "opt_inet.h"
#include "opt_inet6.h"
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include <sys/param.h>
Index: sys/kern/vfs_aio.c
===================================================================
--- sys/kern/vfs_aio.c
+++ sys/kern/vfs_aio.c
@@ -23,8 +23,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
Index: sys/kern/vfs_bio.c
===================================================================
--- sys/kern/vfs_bio.c
+++ sys/kern/vfs_bio.c
@@ -86,7 +86,6 @@
#include <vm/vm_extern.h>
#include <vm/vm_map.h>
#include <vm/swap_pager.h>
-#include "opt_compat.h"
#include "opt_swap.h"
static MALLOC_DEFINE(M_BIOBUF, "biobuf", "BIO buffer");
Index: sys/kern/vfs_subr.c
===================================================================
--- sys/kern/vfs_subr.c
+++ sys/kern/vfs_subr.c
@@ -43,7 +43,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_watchdog.h"
Index: sys/kern/vfs_syscalls.c
===================================================================
--- sys/kern/vfs_syscalls.c
+++ sys/kern/vfs_syscalls.c
@@ -40,7 +40,6 @@
__FBSDID("$FreeBSD$");
#include "opt_capsicum.h"
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include <sys/param.h>
Index: sys/mips/include/reg.h
===================================================================
--- sys/mips/include/reg.h
+++ sys/mips/include/reg.h
@@ -44,10 +44,6 @@
#ifndef _MACHINE_REG_H_
#define _MACHINE_REG_H_
-#if defined(_KERNEL) && !defined(KLD_MODULE) && !defined(_STANDALONE)
-#include "opt_compat.h"
-#endif
-
/*
* Location of the users' stored registers relative to ZERO.
* must be visible to assembly code.
Index: sys/mips/include/sigframe.h
===================================================================
--- sys/mips/include/sigframe.h
+++ sys/mips/include/sigframe.h
@@ -34,10 +34,6 @@
#ifndef _MACHINE_SIGFRAME_H_
#define _MACHINE_SIGFRAME_H_
-#if defined(_KERNEL) && !defined(KLD_MODULE) && !defined(_STANDALONE)
-#include "opt_compat.h"
-#endif
-
/*
* WARNING: code in locore.s assumes the layout shown for sf_signum
* thru sf_addr so... don't alter them!
Index: sys/mips/include/tls.h
===================================================================
--- sys/mips/include/tls.h
+++ sys/mips/include/tls.h
@@ -34,10 +34,6 @@
#ifndef __MIPS_TLS_H__
#define __MIPS_TLS_H__
-#if defined(_KERNEL) && !defined(KLD_MODULE) && !defined(_STANDALONE)
-#include "opt_compat.h"
-#endif
-
/*
* TLS parameters
*/
Index: sys/mips/include/ucontext.h
===================================================================
--- sys/mips/include/ucontext.h
+++ sys/mips/include/ucontext.h
@@ -41,10 +41,6 @@
#ifndef _LOCORE
-#if defined(_KERNEL) && !defined(KLD_MODULE) && !defined(_STANDALONE)
-#include "opt_compat.h"
-#endif
-
typedef struct __mcontext {
/*
* These fields must match the corresponding fields in struct
Index: sys/mips/mips/freebsd32_machdep.c
===================================================================
--- sys/mips/mips/freebsd32_machdep.c
+++ sys/mips/mips/freebsd32_machdep.c
@@ -32,8 +32,6 @@
* Based on nwhitehorn's COMPAT_FREEBSD32 support code for PowerPC64.
*/
-#include "opt_compat.h"
-
#define __ELF_WORD_SIZE 32
#include <sys/types.h>
Index: sys/mips/mips/pm_machdep.c
===================================================================
--- sys/mips/mips/pm_machdep.c
+++ sys/mips/mips/pm_machdep.c
@@ -40,8 +40,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
Index: sys/mips/mips/swtch.S
===================================================================
--- sys/mips/mips/swtch.S
+++ sys/mips/mips/swtch.S
@@ -55,7 +55,6 @@
* assembly language support routines.
*/
-#include "opt_compat.h"
#include <sys/syscall.h>
#include <machine/asm.h>
#include <machine/cpu.h>
Index: sys/mips/mips/trap.c
===================================================================
--- sys/mips/mips/trap.c
+++ sys/mips/mips/trap.c
@@ -43,7 +43,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_ktrace.h"
Index: sys/mips/mips/vm_machdep.c
===================================================================
--- sys/mips/mips/vm_machdep.c
+++ sys/mips/mips/vm_machdep.c
@@ -43,7 +43,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include <sys/param.h>
Index: sys/modules/aac/Makefile
===================================================================
--- sys/modules/aac/Makefile
+++ sys/modules/aac/Makefile
@@ -8,7 +8,7 @@
KMOD= aac
SRCS= aac.c aac_pci.c aac_disk.c aac_cam.c
-SRCS+= opt_scsi.h opt_cam.h opt_compat.h opt_aac.h
+SRCS+= opt_scsi.h opt_cam.h opt_aac.h
SRCS+= device_if.h bus_if.h pci_if.h
# To enable debug output from the driver, uncomment these two lines.
Index: sys/modules/aacraid/Makefile
===================================================================
--- sys/modules/aacraid/Makefile
+++ sys/modules/aacraid/Makefile
@@ -8,7 +8,7 @@
KMOD= aacraid
SRCS= aacraid.c aacraid_pci.c aacraid_cam.c
-SRCS+= opt_scsi.h opt_cam.h opt_compat.h opt_aacraid.h
+SRCS+= opt_scsi.h opt_cam.h opt_aacraid.h
SRCS+= device_if.h bus_if.h pci_if.h
# To enable debug output from the driver, uncomment these two lines.
Index: sys/modules/cam/Makefile
===================================================================
--- sys/modules/cam/Makefile
+++ sys/modules/cam/Makefile
@@ -8,7 +8,6 @@
# See sys/conf/options for the flags that go into the different opt_*.h files.
SRCS= opt_cam.h
-SRCS+= opt_compat.h
SRCS+= opt_ada.h
SRCS+= opt_scsi.h
SRCS+= opt_cd.h
Index: sys/modules/cryptodev/Makefile
===================================================================
--- sys/modules/cryptodev/Makefile
+++ sys/modules/cryptodev/Makefile
@@ -3,6 +3,6 @@
.PATH: ${SRCTOP}/sys/opencrypto
KMOD = cryptodev
SRCS = cryptodev.c
-SRCS += bus_if.h device_if.h opt_compat.h
+SRCS += bus_if.h device_if.h
.include <bsd.kmod.mk>
Index: sys/modules/cuse/Makefile
===================================================================
--- sys/modules/cuse/Makefile
+++ sys/modules/cuse/Makefile
@@ -27,6 +27,6 @@
.PATH: ${SRCTOP}/sys/fs/cuse
KMOD= cuse
-SRCS= cuse.c device_if.h bus_if.h vnode_if.h opt_compat.h
+SRCS= cuse.c device_if.h bus_if.h vnode_if.h
.include <bsd.kmod.mk>
Index: sys/modules/drm2/drm2/Makefile
===================================================================
--- sys/modules/drm2/drm2/Makefile
+++ sys/modules/drm2/drm2/Makefile
@@ -53,7 +53,7 @@
.endif
SRCS +=device_if.h bus_if.h pci_if.h device_if.h iicbus_if.h opt_drm.h \
- opt_vm.h opt_compat.h opt_syscons.h
+ opt_vm.h opt_syscons.h
.if ${MACHINE_CPUARCH} == "powerpc"
Index: sys/modules/drm2/i915kms/Makefile
===================================================================
--- sys/modules/drm2/i915kms/Makefile
+++ sys/modules/drm2/i915kms/Makefile
@@ -48,7 +48,6 @@
SRCS += \
opt_acpi.h \
- opt_compat.h \
opt_drm.h \
opt_syscons.h \
acpi_if.h \
Index: sys/modules/drm2/radeonkms/Makefile
===================================================================
--- sys/modules/drm2/radeonkms/Makefile
+++ sys/modules/drm2/radeonkms/Makefile
@@ -101,7 +101,6 @@
SRCS += \
opt_acpi.h \
- opt_compat.h \
opt_drm.h \
opt_syscons.h \
acpi_if.h \
Index: sys/modules/dtrace/dtrace/Makefile
===================================================================
--- sys/modules/dtrace/dtrace/Makefile
+++ sys/modules/dtrace/dtrace/Makefile
@@ -30,7 +30,7 @@
DPSRCS+= assym.inc
# These are needed for assym.inc
-SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
+SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
#This is needed for dtrace.c
SRCS += opensolaris_taskq.c
Index: sys/modules/dtrace/dtraceall/Makefile
===================================================================
--- sys/modules/dtrace/dtraceall/Makefile
+++ sys/modules/dtrace/dtraceall/Makefile
@@ -3,17 +3,10 @@
SYSDIR?= ${SRCTOP}/sys
KMOD= dtraceall
-SRCS= dtraceall.c opt_compat.h opt_nfs.h
+SRCS= dtraceall.c opt_nfs.h
CFLAGS+= -I${SYSDIR}
-.if !defined(KERNBUILDDIR)
-.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "mips64"
-opt_compat.h:
- echo "#define COMPAT_FREEBSD32 1" >> ${.TARGET}
-.endif
-.endif
-
.include <bsd.kmod.mk>
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
Index: sys/modules/dtrace/dtraceall/dtraceall.c
===================================================================
--- sys/modules/dtrace/dtraceall/dtraceall.c
+++ sys/modules/dtrace/dtraceall/dtraceall.c
@@ -34,7 +34,6 @@
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/errno.h>
-#include "opt_compat.h"
#include "opt_nfs.h"
static int
Index: sys/modules/dtrace/fasttrap/Makefile
===================================================================
--- sys/modules/dtrace/fasttrap/Makefile
+++ sys/modules/dtrace/fasttrap/Makefile
@@ -5,7 +5,7 @@
.PATH: ${SYSDIR}/cddl/contrib/opensolaris/uts/common/dtrace
KMOD= fasttrap
-SRCS= fasttrap.c fasttrap_isa.c opt_compat.h
+SRCS= fasttrap.c fasttrap_isa.c
SRCS+= vnode_if.h
CFLAGS+= -I${SYSDIR}/cddl/compat/opensolaris \
Index: sys/modules/filemon/Makefile
===================================================================
--- sys/modules/filemon/Makefile
+++ sys/modules/filemon/Makefile
@@ -4,6 +4,6 @@
KMOD= filemon
SRCS= ${KMOD}.c
-SRCS+= opt_compat.h vnode_if.h
+SRCS+= vnode_if.h
.include <bsd.kmod.mk>
Index: sys/modules/hyperv/vmbus/Makefile
===================================================================
--- sys/modules/hyperv/vmbus/Makefile
+++ sys/modules/hyperv/vmbus/Makefile
@@ -18,7 +18,7 @@
SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h
# XXX: for assym.inc
-SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h opt_compat.h
+SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
.if ${MACHINE_CPUARCH} == "i386"
SRCS+= opt_apic.h
.endif
Index: sys/modules/if_tap/Makefile
===================================================================
--- sys/modules/if_tap/Makefile
+++ sys/modules/if_tap/Makefile
@@ -5,11 +5,6 @@
.PATH: ${SRCTOP}/sys/net
KMOD= if_tap
-SRCS= if_tap.c opt_compat.h opt_inet.h vnode_if.h
-
-.if !defined(KERNBUILDDIR)
-opt_compat.h:
- echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
-.endif
+SRCS= if_tap.c opt_inet.h vnode_if.h
.include <bsd.kmod.mk>
Index: sys/modules/isp/Makefile
===================================================================
--- sys/modules/isp/Makefile
+++ sys/modules/isp/Makefile
@@ -4,7 +4,7 @@
KMOD= isp
SRCS= bus_if.h device_if.h pci_if.h \
- opt_cam.h opt_compat.h opt_ddb.h opt_isp.h \
+ opt_cam.h opt_ddb.h opt_isp.h \
isp.c isp_library.c isp_target.c isp_freebsd.c isp_pci.c
.if ${MACHINE} == sparc64
Index: sys/modules/kbdmux/Makefile
===================================================================
--- sys/modules/kbdmux/Makefile
+++ sys/modules/kbdmux/Makefile
@@ -4,13 +4,10 @@
.PATH: ${SRCTOP}/sys/dev/kbdmux
KMOD= kbdmux
-SRCS= kbdmux.c opt_compat.h opt_evdev.h opt_kbd.h opt_kbdmux.h bus_if.h \
+SRCS= kbdmux.c opt_evdev.h opt_kbd.h opt_kbdmux.h bus_if.h \
device_if.h
.if !defined(KERNBUILDDIR)
-opt_compat.h:
- echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
-
opt_kbd.h:
echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET}
.endif
Index: sys/modules/linux/Makefile
===================================================================
--- sys/modules/linux/Makefile
+++ sys/modules/linux/Makefile
@@ -16,13 +16,13 @@
linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c \
linux${SFX}_sysvec.c linux_uid16.c linux_time.c \
linux_timer.c linux_vdso.c \
- opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \
+ opt_inet6.h opt_posix.h opt_usb.h vnode_if.h \
device_if.h bus_if.h \
linux${SFX}_support.s
DPSRCS= assym.inc linux${SFX}_genassym.c
# XXX: for assym.inc
-SRCS+= opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h
+SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
.if ${MACHINE_CPUARCH} == "i386"
SRCS+= opt_apic.h
.endif
Index: sys/modules/linux64/Makefile
===================================================================
--- sys/modules/linux64/Makefile
+++ sys/modules/linux64/Makefile
@@ -10,7 +10,7 @@
linux_machdep.c linux_misc.c linux_ptrace.c linux_signal.c \
linux_socket.c linux_stats.c linux_sysctl.c linux_sysent.c \
linux_sysvec.c linux_time.c linux_vdso.c linux_timer.c \
- opt_inet6.h opt_compat.h opt_posix.h opt_usb.h \
+ opt_inet6.h opt_posix.h opt_usb.h \
vnode_if.h device_if.h bus_if.h \
linux_support.s
DPSRCS= assym.inc linux_genassym.c
Index: sys/modules/linux_common/Makefile
===================================================================
--- sys/modules/linux_common/Makefile
+++ sys/modules/linux_common/Makefile
@@ -5,7 +5,7 @@
KMOD= linux_common
SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
linux_errno.c \
- linux.c opt_compat.h device_if.h vnode_if.h bus_if.h
+ linux.c device_if.h vnode_if.h bus_if.h
EXPORT_SYMS=
EXPORT_SYMS+= linux_emul_path
Index: sys/modules/mfi/Makefile
===================================================================
--- sys/modules/mfi/Makefile
+++ sys/modules/mfi/Makefile
@@ -10,7 +10,7 @@
KMOD= mfi
SRCS= mfi.c mfi_pci.c mfi_disk.c mfi_debug.c mfi_syspd.c mfi_tbolt.c
-SRCS+= opt_mfi.h opt_cam.h opt_compat.h
+SRCS+= opt_mfi.h opt_cam.h
SRCS+= device_if.h bus_if.h pci_if.h
#CFLAGS += -DMFI_DEBUG
Index: sys/modules/mpr/Makefile
===================================================================
--- sys/modules/mpr/Makefile
+++ sys/modules/mpr/Makefile
@@ -5,7 +5,7 @@
KMOD= mpr
SRCS= mpr_pci.c mpr.c mpr_sas.c mpr_table.c mpr_user.c
SRCS+= mpr_config.c mpr_mapping.c mpr_sas_lsi.c
-SRCS+= opt_cam.h opt_compat.h
+SRCS+= opt_cam.h
SRCS+= device_if.h bus_if.h pci_if.h
#CFLAGS += -DMPR_DEBUG
Index: sys/modules/mps/Makefile
===================================================================
--- sys/modules/mps/Makefile
+++ sys/modules/mps/Makefile
@@ -5,7 +5,7 @@
KMOD= mps
SRCS= mps_pci.c mps.c mps_sas.c mps_table.c mps_user.c
SRCS+= mps_config.c mps_mapping.c mps_sas_lsi.c
-SRCS+= opt_cam.h opt_compat.h
+SRCS+= opt_cam.h
SRCS+= device_if.h bus_if.h pci_if.h
#CFLAGS += -DMPS_DEBUG
Index: sys/modules/mqueue/Makefile
===================================================================
--- sys/modules/mqueue/Makefile
+++ sys/modules/mqueue/Makefile
@@ -5,6 +5,6 @@
KMOD= mqueuefs
SRCS= uipc_mqueue.c \
vnode_if.h \
- opt_posix.h opt_compat.h opt_capsicum.h
+ opt_posix.h opt_capsicum.h
.include <bsd.kmod.mk>
Index: sys/modules/procfs/Makefile
===================================================================
--- sys/modules/procfs/Makefile
+++ sys/modules/procfs/Makefile
@@ -4,7 +4,6 @@
KMOD= procfs
SRCS=
-SRCS+= opt_compat.h
SRCS+= vnode_if.h
SRCS+= procfs_dbregs.c
SRCS+= procfs_fpregs.c
@@ -27,16 +26,4 @@
EXPORT_SYMS+= procfs_doprocmem
EXPORT_SYMS+= procfs_notsystem
-.if !defined(KERNBUILDDIR)
-opt_compat.h:
- echo "#define COMPAT_43 1" > ${.TARGET}
- echo "#define COMPAT_FREEBSD4 1" >> ${.TARGET}
- echo "#define COMPAT_FREEBSD5 1" >> ${.TARGET}
- echo "#define COMPAT_FREEBSD6 1" >> ${.TARGET}
-.if ${MACHINE_CPUARCH} == "amd64"
- echo "#define COMPAT_FREEBSD32 1" >> ${.TARGET}
- echo "#define COMPAT_LINUX32 1" >> ${.TARGET}
-.endif
-.endif
-
.include <bsd.kmod.mk>
Index: sys/modules/rp/Makefile
===================================================================
--- sys/modules/rp/Makefile
+++ sys/modules/rp/Makefile
@@ -3,11 +3,6 @@
.PATH: ${SRCTOP}/sys/dev/rp
KMOD= rp
-SRCS= rp.c rp_pci.c device_if.h bus_if.h pci_if.h opt_compat.h
-
-.if !defined(KERNBUILDDIR)
-opt_compat.h:
- echo "#define COMPAT_43 1" > ${.TARGET}
-.endif
+SRCS= rp.c rp_pci.c device_if.h bus_if.h pci_if.h
.include <bsd.kmod.mk>
Index: sys/modules/sem/Makefile
===================================================================
--- sys/modules/sem/Makefile
+++ sys/modules/sem/Makefile
@@ -3,6 +3,6 @@
.PATH: ${SRCTOP}/sys/kern
KMOD= sem
-SRCS= uipc_sem.c opt_compat.h opt_posix.h vnode_if.h
+SRCS= uipc_sem.c opt_posix.h vnode_if.h
.include <bsd.kmod.mk>
Index: sys/modules/sgx/Makefile
===================================================================
--- sys/modules/sgx/Makefile
+++ sys/modules/sgx/Makefile
@@ -4,7 +4,7 @@
KMOD= sgx
SRCS= sgx.c sgxvar.h sgx_support.S
-SRCS+= opt_compat.h opt_hwpmc_hooks.h opt_kstack_pages.h
+SRCS+= opt_hwpmc_hooks.h opt_kstack_pages.h
DPSRCS= assym.inc
sgx_support.o: assym.inc
Index: sys/modules/sio/Makefile
===================================================================
--- sys/modules/sio/Makefile
+++ sys/modules/sio/Makefile
@@ -4,12 +4,7 @@
KMOD= sio
SRCS= bus_if.h card_if.h device_if.h isa_if.h pci_if.h serdev_if.h \
- opt_compat.h opt_gdb.h opt_kdb.h opt_sio.h \
+ opt_gdb.h opt_kdb.h opt_sio.h \
sio.c sio_isa.c sio_pccard.c sio_pci.c sio_puc.c pccarddevs.h
-.if !defined(KERNBUILDDIR)
-opt_compat.h:
- echo "#define COMPAT_43 1" > ${.TARGET}
-.endif
-
.include <bsd.kmod.mk>
Index: sys/modules/sysvipc/sysvmsg/Makefile
===================================================================
--- sys/modules/sysvipc/sysvmsg/Makefile
+++ sys/modules/sysvipc/sysvmsg/Makefile
@@ -3,6 +3,6 @@
.PATH: ${SRCTOP}/sys/kern
KMOD= sysvmsg
-SRCS= sysv_msg.c opt_sysvipc.h opt_compat.h
+SRCS= sysv_msg.c opt_sysvipc.h
.include <bsd.kmod.mk>
Index: sys/modules/sysvipc/sysvsem/Makefile
===================================================================
--- sys/modules/sysvipc/sysvsem/Makefile
+++ sys/modules/sysvipc/sysvsem/Makefile
@@ -3,6 +3,6 @@
.PATH: ${SRCTOP}/sys/kern
KMOD= sysvsem
-SRCS= sysv_sem.c opt_sysvipc.h opt_compat.h
+SRCS= sysv_sem.c opt_sysvipc.h
.include <bsd.kmod.mk>
Index: sys/modules/sysvipc/sysvshm/Makefile
===================================================================
--- sys/modules/sysvipc/sysvshm/Makefile
+++ sys/modules/sysvipc/sysvshm/Makefile
@@ -3,6 +3,6 @@
.PATH: ${SRCTOP}/sys/kern
KMOD= sysvshm
-SRCS= sysv_shm.c opt_sysvipc.h opt_compat.h
+SRCS= sysv_shm.c opt_sysvipc.h
.include <bsd.kmod.mk>
Index: sys/modules/usb/ukbd/Makefile
===================================================================
--- sys/modules/usb/ukbd/Makefile
+++ sys/modules/usb/ukbd/Makefile
@@ -30,7 +30,7 @@
.PATH: $S/dev/usb/input
KMOD= ukbd
-SRCS= opt_bus.h opt_compat.h opt_evdev.h opt_kbd.h opt_ukbd.h opt_usb.h \
+SRCS= opt_bus.h opt_evdev.h opt_kbd.h opt_ukbd.h opt_usb.h \
device_if.h bus_if.h usb_if.h usbdevs.h \
ukbd.c
Index: sys/modules/vkbd/Makefile
===================================================================
--- sys/modules/vkbd/Makefile
+++ sys/modules/vkbd/Makefile
@@ -4,12 +4,9 @@
.PATH: ${SRCTOP}/sys/dev/vkbd
KMOD= vkbd
-SRCS= vkbd.c opt_compat.h opt_kbd.h
+SRCS= vkbd.c opt_kbd.h
.if !defined(KERNBUILDDIR)
-opt_compat.h:
- echo "#define COMPAT_FREEBSD6 1" > ${.TARGET}
-
opt_kbd.h:
echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET}
.endif
Index: sys/net/bpf.c
===================================================================
--- sys/net/bpf.c
+++ sys/net/bpf.c
@@ -40,7 +40,6 @@
__FBSDID("$FreeBSD$");
#include "opt_bpf.h"
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_netgraph.h"
Index: sys/net/if.c
===================================================================
--- sys/net/if.c
+++ sys/net/if.c
@@ -32,7 +32,6 @@
* $FreeBSD$
*/
-#include "opt_compat.h"
#include "opt_inet6.h"
#include "opt_inet.h"
Index: sys/net/if_tap.c
===================================================================
--- sys/net/if_tap.c
+++ sys/net/if_tap.c
@@ -37,7 +37,6 @@
* $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $
*/
-#include "opt_compat.h"
#include "opt_inet.h"
#include <sys/param.h>
Index: sys/net/rtsock.c
===================================================================
--- sys/net/rtsock.c
+++ sys/net/rtsock.c
@@ -31,7 +31,6 @@
* @(#)rtsock.c 8.7 (Berkeley) 10/12/95
* $FreeBSD$
*/
-#include "opt_compat.h"
#include "opt_mpath.h"
#include "opt_inet.h"
#include "opt_inet6.h"
Index: sys/netinet/in_jail.c
===================================================================
--- sys/netinet/in_jail.c
+++ sys/netinet/in_jail.c
@@ -29,7 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_inet.h"
#include "opt_inet6.h"
Index: sys/netinet/in_prot.c
===================================================================
--- sys/netinet/in_prot.c
+++ sys/netinet/in_prot.c
@@ -32,7 +32,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_inet.h"
#include "opt_inet6.h"
Index: sys/netinet/sctp_os_bsd.h
===================================================================
--- sys/netinet/sctp_os_bsd.h
+++ sys/netinet/sctp_os_bsd.h
@@ -40,7 +40,6 @@
/*
* includes
*/
-#include "opt_compat.h"
#include "opt_inet6.h"
#include "opt_inet.h"
#include "opt_sctp.h"
Index: sys/netinet/sctp_syscalls.c
===================================================================
--- sys/netinet/sctp_syscalls.c
+++ sys/netinet/sctp_syscalls.c
@@ -35,7 +35,6 @@
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_sctp.h"
-#include "opt_compat.h"
#include "opt_ktrace.h"
#include <sys/param.h>
Index: sys/netinet/tcp_subr.c
===================================================================
--- sys/netinet/tcp_subr.c
+++ sys/netinet/tcp_subr.c
@@ -34,7 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ipsec.h"
Index: sys/netinet6/in6.c
===================================================================
--- sys/netinet6/in6.c
+++ sys/netinet6/in6.c
@@ -65,7 +65,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_inet.h"
#include "opt_inet6.h"
Index: sys/netinet6/in6_jail.c
===================================================================
--- sys/netinet6/in6_jail.c
+++ sys/netinet6/in6_jail.c
@@ -29,7 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_inet.h"
#include "opt_inet6.h"
Index: sys/opencrypto/cryptodev.c
===================================================================
--- sys/opencrypto/cryptodev.c
+++ sys/opencrypto/cryptodev.c
@@ -41,8 +41,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
Index: sys/powerpc/aim/aim_machdep.c
===================================================================
--- sys/powerpc/aim/aim_machdep.c
+++ sys/powerpc/aim/aim_machdep.c
@@ -57,7 +57,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
#include "opt_platform.h"
Index: sys/powerpc/aim/mmu_oea64.c
===================================================================
--- sys/powerpc/aim/mmu_oea64.c
+++ sys/powerpc/aim/mmu_oea64.c
@@ -45,7 +45,6 @@
* correct.
*/
-#include "opt_compat.h"
#include "opt_kstack_pages.h"
#include <sys/param.h>
Index: sys/powerpc/booke/booke_machdep.c
===================================================================
--- sys/powerpc/booke/booke_machdep.c
+++ sys/powerpc/booke/booke_machdep.c
@@ -81,7 +81,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_hwpmc_hooks.h"
#include "opt_kstack_pages.h"
Index: sys/powerpc/include/reg.h
===================================================================
--- sys/powerpc/include/reg.h
+++ sys/powerpc/include/reg.h
@@ -4,10 +4,6 @@
#ifndef _POWERPC_REG_H_
#define _POWERPC_REG_H_
-#if defined(_KERNEL) && !defined(KLD_MODULE) && !defined(_STANDALONE)
-#include "opt_compat.h"
-#endif
-
/* Must match struct trapframe */
struct reg {
register_t fixreg[32];
Index: sys/powerpc/powerpc/exec_machdep.c
===================================================================
--- sys/powerpc/powerpc/exec_machdep.c
+++ sys/powerpc/powerpc/exec_machdep.c
@@ -59,7 +59,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_fpu_emu.h"
#include <sys/param.h>
Index: sys/powerpc/powerpc/machdep.c
===================================================================
--- sys/powerpc/powerpc/machdep.c
+++ sys/powerpc/powerpc/machdep.c
@@ -57,7 +57,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
#include "opt_platform.h"
Index: sys/powerpc/powerpc/ptrace_machdep.c
===================================================================
--- sys/powerpc/powerpc/ptrace_machdep.c
+++ sys/powerpc/powerpc/ptrace_machdep.c
@@ -28,8 +28,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
Index: sys/powerpc/powerpc/sys_machdep.c
===================================================================
--- sys/powerpc/powerpc/sys_machdep.c
+++ sys/powerpc/powerpc/sys_machdep.c
@@ -33,8 +33,6 @@
#include <sys/errno.h>
#include <sys/sysproto.h>
-#include "opt_compat.h"
-
#ifdef COMPAT_FREEBSD32
#include <compat/freebsd32/freebsd32_proto.h>
Index: sys/sparc64/sparc64/exception.S
===================================================================
--- sys/sparc64/sparc64/exception.S
+++ sys/sparc64/sparc64/exception.S
@@ -56,7 +56,6 @@
#include <machine/asm.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
Index: sys/sparc64/sparc64/machdep.c
===================================================================
--- sys/sparc64/sparc64/machdep.c
+++ sys/sparc64/sparc64/machdep.c
@@ -40,7 +40,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_ddb.h"
#include "opt_kstack_pages.h"
Index: sys/vm/swap_pager.c
===================================================================
--- sys/vm/swap_pager.c
+++ sys/vm/swap_pager.c
@@ -71,7 +71,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_swap.h"
#include "opt_vm.h"
Index: sys/vm/vm_meter.c
===================================================================
--- sys/vm/vm_meter.c
+++ sys/vm/vm_meter.c
@@ -34,8 +34,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
Index: sys/vm/vm_mmap.c
===================================================================
--- sys/vm/vm_mmap.c
+++ sys/vm/vm_mmap.c
@@ -45,7 +45,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_hwpmc_hooks.h"
#include "opt_vm.h"
Index: sys/vm/vm_unix.c
===================================================================
--- sys/vm/vm_unix.c
+++ sys/vm/vm_unix.c
@@ -38,8 +38,6 @@
* @(#)vm_unix.c 8.1 (Berkeley) 6/11/93
*/
-#include "opt_compat.h"
-
/*
* Traditional sbrk/grow interface to VM
*/
Index: sys/x86/x86/cpu_machdep.c
===================================================================
--- sys/x86/x86/cpu_machdep.c
+++ sys/x86/x86/cpu_machdep.c
@@ -42,7 +42,6 @@
__FBSDID("$FreeBSD$");
#include "opt_atpic.h"
-#include "opt_compat.h"
#include "opt_cpu.h"
#include "opt_ddb.h"
#include "opt_inet.h"
Index: sys/x86/x86/tsc.c
===================================================================
--- sys/x86/x86/tsc.c
+++ sys/x86/x86/tsc.c
@@ -29,7 +29,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-#include "opt_compat.h"
#include "opt_clock.h"
#include <sys/param.h>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 7:02 AM (4 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32560269
Default Alt Text
D14941.id41010.diff (67 KB)
Attached To
Mode
D14941: Move most of the contents of opt_compat.h to opt_global.h.
Attached
Detach File
Event Timeline
Log In to Comment