include compat/sys/cpuio.h and multiple include protection.

This commit is contained in:
christos 2018-03-18 04:10:39 +00:00
parent 109cfb3271
commit 4ca63f4c79
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_cpu_60.c,v 1.2 2018/03/18 00:51:45 christos Exp $ */
/* $NetBSD: kern_cpu_60.c,v 1.3 2018/03/18 04:10:39 christos Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_cpu_60.c,v 1.2 2018/03/18 00:51:45 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_cpu_60.c,v 1.3 2018/03/18 04:10:39 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_cpu_ucode.h"
@ -45,6 +45,8 @@ __KERNEL_RCSID(0, "$NetBSD: kern_cpu_60.c,v 1.2 2018/03/18 00:51:45 christos Exp
#include <sys/cpu.h>
#include <sys/cpuio.h>
#include <compat/sys/cpuio.h>
static int
compat6_cpuctl_ioctl(struct lwp *l, u_long cmd, void *data)
{

View File

@ -1,4 +1,7 @@
/* $NetBSD: cpuio.h,v 1.7 2018/03/18 00:51:45 christos Exp $ */
/* $NetBSD: cpuio.h,v 1.8 2018/03/18 04:10:39 christos Exp $ */
#ifndef _SYS_COMPAT_CPUIO_H_
#define _SYS_COMPAT_CPUIO_H_
#include <sys/ioccom.h>
@ -14,3 +17,5 @@ extern int (*compat_cpuctl_ioctl)(struct lwp *, u_long, void *);
void kern_cpu_60_init(void);
void kern_cpu_60_fini(void);
#endif /* _SYS_COMPAT_CPUIO_H_ */