Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2017 01:42:01 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322714 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201708200142.v7K1g1D4036911@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708200142.v7K1g1D4036911>