svn commit: r355088 - head/sys/x86/include

Konstantin Belousov kib at FreeBSD.org
Mon Nov 25 14:16:42 UTC 2019


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_ */
 


More information about the svn-src-head mailing list