Date: Mon, 25 Nov 2019 14:16:41 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r355088 - head/sys/x86/include Message-ID: <201911251416.xAPEGfep086957@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Mon Nov 25 14:16:41 2019 New Revision: 355088 URL: https://svnweb.freebsd.org/changeset/base/355088 Log: Limit bus_dma_dmar_set_buswide() definition to kernel only. The header is abused for inclusion into userspace, and on stable branches neither device_t nor bool types are not defined when used from userspace. Sponsored by: The FreeBSD Foundation X-MFC after: now Modified: head/sys/x86/include/bus_dma.h Modified: head/sys/x86/include/bus_dma.h ============================================================================== --- head/sys/x86/include/bus_dma.h Mon Nov 25 09:53:49 2019 (r355087) +++ head/sys/x86/include/bus_dma.h Mon Nov 25 14:16:41 2019 (r355088) @@ -191,7 +191,9 @@ _bus_dmamap_complete(bus_dma_tag_t dmat, bus_dmamap_t return (tc->impl->map_complete(dmat, map, segs, nsegs, error)); } +#ifdef _KERNEL bool bus_dma_dmar_set_buswide(device_t dev); +#endif #endif /* !_X86_BUS_DMA_H_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911251416.xAPEGfep086957>