Skip to content

Instantly share code, notes, and snippets.

@Sp1l
Created October 10, 2014 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sp1l/7b59ed2cf21306421b6b to your computer and use it in GitHub Desktop.
Save Sp1l/7b59ed2cf21306421b6b to your computer and use it in GitHub Desktop.
# make
os.c:298:22: error: implicit declaration of function 'kmem_alloc_nofault' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
vm_offset_t res = kmem_alloc_nofault(kernel_map, PAGE_SIZE);
^
os.c:355:14: error: incompatible pointer types passing 'vm_map_t'
(aka 'struct vm_map *') to parameter of type 'struct vmem *'
[-Werror,-Wincompatible-pointer-types]
kmem_free(kernel_map, (vm_offset_t)mapping, PAGE_SIZE);
^~~~~~~~~~
@/vm/vm_extern.h:59:29: note: passing argument to parameter here
void kmem_free(struct vmem *, vm_offset_t, vm_size_t);
^
2 errors generated.
*** Error code 1
Stop.
make: stopped in /usr/home/root/vmware-tools-distrib/lib/modules/source/vmmemctl-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment