Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/arch/x86/x86 Don't try to #include opt_*.h fil...



details:   https://anonhg.NetBSD.org/src/rev/2d2603fe399f
branches:  pgoyette-compat
changeset: 321098:2d2603fe399f
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Mar 25 08:49:12 2018 +0000

description:
Don't try to #include opt_*.h files when building kernel modules

diffstat:

 sys/arch/x86/x86/cpu_ucode_amd.c   |  6 ++++--
 sys/arch/x86/x86/cpu_ucode_intel.c |  6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r ade856dfd95e -r 2d2603fe399f sys/arch/x86/x86/cpu_ucode_amd.c
--- a/sys/arch/x86/x86/cpu_ucode_amd.c  Sun Mar 25 08:46:14 2018 +0000
+++ b/sys/arch/x86/x86/cpu_ucode_amd.c  Sun Mar 25 08:49:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_ucode_amd.c,v 1.7.28.2 2018/03/22 01:44:47 pgoyette Exp $ */
+/* $NetBSD: cpu_ucode_amd.c,v 1.7.28.3 2018/03/25 08:49:12 pgoyette Exp $ */
 /*
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,10 +29,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_ucode_amd.c,v 1.7.28.2 2018/03/22 01:44:47 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_ucode_amd.c,v 1.7.28.3 2018/03/25 08:49:12 pgoyette Exp $");
 
+#ifdef _KERNEL_OPT
 #include "opt_xen.h"
 #include "opt_cpu_ucode.h"
+#endif
 
 #include <sys/param.h>
 #include <sys/conf.h>
diff -r ade856dfd95e -r 2d2603fe399f sys/arch/x86/x86/cpu_ucode_intel.c
--- a/sys/arch/x86/x86/cpu_ucode_intel.c        Sun Mar 25 08:46:14 2018 +0000
+++ b/sys/arch/x86/x86/cpu_ucode_intel.c        Sun Mar 25 08:49:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_ucode_intel.c,v 1.12.8.2 2018/03/22 01:44:47 pgoyette Exp $ */
+/* $NetBSD: cpu_ucode_intel.c,v 1.12.8.3 2018/03/25 08:49:12 pgoyette Exp $ */
 /*
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,10 +29,12 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_ucode_intel.c,v 1.12.8.2 2018/03/22 01:44:47 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_ucode_intel.c,v 1.12.8.3 2018/03/25 08:49:12 pgoyette Exp $");
 
+#ifdef _KERNEL_OPT
 #include "opt_xen.h"
 #include "opt_cpu_ucode.h"
+#endif
 
 #include <sys/param.h>
 #include <sys/conf.h>



Home | Main Index | Thread Index | Old Index