svn commit: r292577 - head/sys/dev/ofw

Ian Lepore ian at FreeBSD.org
Mon Dec 21 23:47:51 UTC 2015


Author: ian
Date: Mon Dec 21 23:47:49 2015
New Revision: 292577
URL: https://svnweb.freebsd.org/changeset/base/292577

Log:
  Include machine/_bus.h so that bus_space_[tag|handle]_t will be available.
  
  It appears that all platforms except aarch64 are getting the file via
  various header pollution, and ensuring _bus.h is included before any
  openfirmware headers in every consumer of ofw/fdt stuff seems like more of
  a career path than a task, so I'm taking this easy way out.

Modified:
  head/sys/dev/ofw/openfirm.h

Modified: head/sys/dev/ofw/openfirm.h
==============================================================================
--- head/sys/dev/ofw/openfirm.h	Mon Dec 21 22:42:03 2015	(r292576)
+++ head/sys/dev/ofw/openfirm.h	Mon Dec 21 23:47:49 2015	(r292577)
@@ -61,6 +61,7 @@
 #define _DEV_OPENFIRM_H_
 
 #include <sys/types.h>
+#include <machine/_bus.h>
 
 /*
  * Prototypes for Open Firmware Interface Routines


More information about the svn-src-all mailing list