diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-01-04 20:41:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-01-04 20:41:45 +0000 |
commit | 4750cdfe9c4e048a863a365ee006cf1a45985e5a (patch) | |
tree | 72d230e5d66e99969df6e638d601d90013c48dd9 /sys/arch/landisk | |
parent | bd5893f4f7958ede139764e252bf1318518c0601 (diff) |
hide more things behind _KERNEL, in case userland manages to include
this file
Diffstat (limited to 'sys/arch/landisk')
-rw-r--r-- | sys/arch/landisk/include/bus.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <sys/types.h> 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_ */ |