Re: [PATCH] mm: fix page_mkclean_one

From: David Miller
Date: Thu Dec 28 2006 - 00:42:33 EST

From: "Gordon Farquharson" <gordonfarquharson@xxxxxxxxx>
Date: Wed, 27 Dec 2006 22:20:20 -0700

> and for some reason I get
> linus-test.c: In function 'remap':
> linus-test.c:61: error: 'POSIX_FADV_DONTNEED' undeclared (first use in
> this function)
> when I compile the program, so I replaced POSIX_FADV_DONTNEED with 4
> as defined in /usr/include/bits/fcntl.h.

Me too, I added "-D_POSIX_C_SOURCE=200112" to "fix" this.

Perhaps Linus's GCC sets that by default and our's doesn't.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at