|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH 05/11] include/uk/list: adapt imported code for Unikraft
Hello Yuri,The imported code from bsd uses "new" as variable name. This would impact us if we are compiling it with c++ code. The code also is missing extern "c" Thanks & Regards Sharan On 12/5/18 6:23 PM, Yuri Volchkov wrote: Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx> --- include/uk/list.h | 63 ++++++++--------------------------------------- 1 file changed, 10 insertions(+), 53 deletions(-) diff --git a/include/uk/list.h b/include/uk/list.h index e7a4929..9822005 100644 --- a/include/uk/list.h +++ b/include/uk/list.h @@ -31,50 +31,8 @@ #ifndef _LINUX_LIST_H_ #define _LINUX_LIST_H_-/* TODO: this code is just imported and needs modifications before it- * can be used in Unikraft. For now proxy directly to the existing - * implementation - "compat_list.h" - */ -#if 0 - -/* - * 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. - */ -#include <linux/types.h> - -#include <sys/param.h> -#include <sys/kernel.h> -#include <sys/queue.h> -#include <sys/cpuset.h> -#include <sys/jail.h> -#include <sys/lock.h> -#include <sys/mutex.h> -#include <sys/proc.h> -#include <sys/vnode.h> -#include <sys/conf.h> -#include <sys/socket.h> -#include <sys/mbuf.h> - -#include <net/bpf.h> -#include <net/if.h> -#include <net/if_var.h> -#include <net/if_types.h> -#include <net/if_media.h> -#include <net/vnet.h> - -#include <netinet/in.h> -#include <netinet/in_pcb.h> -#include <netinet/in_var.h> -#include <netinet/tcp_lro.h> - -#include <netinet6/in6_var.h> -#include <netinet6/nd6.h> - -#include <vm/vm.h> -#include <vm/vm_object.h> -#include <vm/pmap.h> +#include <uk/arch/atomic.h> +#include <stddef.h>#ifndef prefetch essentials.h missing for __containerof? #define list_first_entry(ptr, type, member) \ _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |