svn commit: r322714 - head/sys/compat/linuxkpi/common/include/linux

Mark Johnston markj at FreeBSD.org
Sun Aug 20 01:42:03 UTC 2017


Author: markj
Date: Sun Aug 20 01:42:01 2017
New Revision: 322714
URL: https://svnweb.freebsd.org/changeset/base/322714

Log:
  Define prefetch() only if it hasn't already been defined.
  
  MFC after:	1 week

Modified:
  head/sys/compat/linuxkpi/common/include/linux/list.h

Modified: head/sys/compat/linuxkpi/common/include/linux/list.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/list.h	Sun Aug 20 01:40:24 2017	(r322713)
+++ head/sys/compat/linuxkpi/common/include/linux/list.h	Sun Aug 20 01:42:01 2017	(r322714)
@@ -70,7 +70,9 @@
 #include <vm/vm_object.h>
 #include <vm/pmap.h>
 
+#ifndef prefetch
 #define	prefetch(x)
+#endif
 
 #define LINUX_LIST_HEAD_INIT(name) { &(name), &(name) }
 


More information about the svn-src-head mailing list