From 89602861d85b5364b87886be415bb8cb54d55230 Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 4 May 2015 10:21:15 +0000 Subject: [PATCH] reduce the scope of things that include uvm_swap_encrypt.h. uvm_meter.c needs it to route the sysctl, uvm_swap.c needs it to use the functionality, and uvm_swap_encrypt.c needs it to for obvious reasons. userland sysctl already includes it explicitely. everything else doesnt and shouldnt care. ok miod@ --- sys/uvm/uvm.h | 5 +---- sys/uvm/uvm_swap.c | 4 ++-- sys/uvm/uvm_swap_encrypt.c | 3 ++- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/sys/uvm/uvm.h b/sys/uvm/uvm.h index 8b9d61c888d..bc42871cc7e 100644 --- a/sys/uvm/uvm.h +++ b/sys/uvm/uvm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm.h,v 1.58 2015/04/23 09:56:23 dlg Exp $ */ +/* $OpenBSD: uvm.h,v 1.59 2015/05/04 10:21:15 dlg Exp $ */ /* $NetBSD: uvm.h,v 1.24 2000/11/27 08:40:02 chs Exp $ */ /* @@ -38,9 +38,6 @@ #include #include #include -#ifdef UVM_SWAP_ENCRYPT -#include -#endif #include diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index c0df4e59649..e2fbb7f55b1 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.134 2015/01/27 03:17:37 dlg Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.135 2015/05/04 10:21:15 dlg Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -61,7 +61,7 @@ #include #ifdef UVM_SWAP_ENCRYPT -#include +#include #endif #include diff --git a/sys/uvm/uvm_swap_encrypt.c b/sys/uvm/uvm_swap_encrypt.c index ba3cd294bff..ae764547324 100644 --- a/sys/uvm/uvm_swap_encrypt.c +++ b/sys/uvm/uvm_swap_encrypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap_encrypt.c,v 1.20 2015/03/14 03:38:53 jsg Exp $ */ +/* $OpenBSD: uvm_swap_encrypt.c,v 1.21 2015/05/04 10:21:15 dlg Exp $ */ /* * Copyright 1999 Niels Provos @@ -39,6 +39,7 @@ #include #include +#include struct swap_key *kcur = NULL; rijndael_ctx swap_ctxt; -- 2.20.1