Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2020 15:46:49 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368335 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202012041546.0B4Fknma060354@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Dec  4 15:46:48 2020
New Revision: 368335
URL: https://svnweb.freebsd.org/changeset/base/368335

Log:
  Allow the list header file in the LinuxKPI to be used in standalone code.
  Some style and spelling nits while at it.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies // NVIDIA Networking

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	Fri Dec  4 15:23:43 2020	(r368334)
+++ head/sys/compat/linuxkpi/common/include/linux/list.h	Fri Dec  4 15:46:48 2020	(r368335)
@@ -31,8 +31,9 @@
 #ifndef _LINUX_LIST_H_
 #define _LINUX_LIST_H_
 
+#ifndef _STANDALONE
 /*
- * Since LIST_HEAD conflicts with the linux definition we must include any
+ * Since LIST_HEAD conflicts with the Linux definition we must include any
  * FreeBSD header which requires it here so it is resolved with the correct
  * definition prior to the undef.
  */
@@ -69,10 +70,12 @@
 #include <vm/vm.h>
 #include <vm/vm_object.h>
 #include <vm/pmap.h>
+#endif
 
 #ifndef prefetch
 #define	prefetch(x)
 #endif
+
 #define LINUX_LIST_HEAD_INIT(name) { &(name), &(name) }
 
 #define LINUX_LIST_HEAD(name) \



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