Documentation_vm_hugetlbfs.txt
From: Maciej Soltysiak <[email protected]>
Hi Rusty,
here's a patch to change the hugetlbfs examples actually being possible to compile. errno is being used while it's not included.
Regards,
Maciej
Documentation/vm/hugetlbpage.txt renamed from Documentation/vm/hugetlbpage.txt.orig +2 -0
@@ -107,6 +107,7 @@ #include <sys/shm.h> #include <sys/types.h> #include <sys/mman.h> +#include <errno.h> extern int errno; #define SHM_HUGETLB 04000
@@ -167,6 +168,7 @@ #include <stdio.h> #include <sys/mman.h> #include <fcntl.h> +#include <errno.h> #define FILE_NAME "/mnt/hugepagefile" #define LENGTH (256*1024*1024)
Signature · 3 lines
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/ Don't blame me: the Monkey is driving File: Maciej Soltysiak <[email protected]>: [TRIVIAL][2.6] Documentation_vm_hugetlbfs.txt