From 4750cdfe9c4e048a863a365ee006cf1a45985e5a Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 4 Jan 2022 20:41:45 +0000 Subject: hide more things behind _KERNEL, in case userland manages to include this file --- sys/arch/landisk/include/bus.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/arch/landisk') diff --git a/sys/arch/landisk/include/bus.h b/sys/arch/landisk/include/bus.h index ac2a21e66f1..e5447737580 100644 --- a/sys/arch/landisk/include/bus.h +++ b/sys/arch/landisk/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.9 2017/05/08 00:27:45 dlg Exp $ */ +/* $OpenBSD: bus.h,v 1.10 2022/01/04 20:41:44 deraadt Exp $ */ /* $NetBSD: bus.h,v 1.1 2006/09/01 21:26:18 uwe Exp $ */ /*- @@ -65,6 +65,8 @@ #ifndef _MACHINE_BUS_H_ #define _MACHINE_BUS_H_ +#ifdef _KERNEL + #include typedef u_long bus_addr_t; @@ -590,4 +592,6 @@ paddr_t _bus_dmamem_mmap(bus_dma_tag_t tag, bus_dma_segment_t *segs, int nsegs, off_t off, int prot, int flags); #endif /* _LANDISK_BUS_DMA_PRIVATE */ +#endif /* _KERNEL */ + #endif /* _MACHINE_BUS_H_ */ -- cgit v1.2.3