diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-07-10 21:41:09 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2020-07-10 21:41:09 +0000 |
commit | 09c4e43d1815ba141b2f457988234933eff89c1c (patch) | |
tree | f13001e85fc408c0ef69ade512293dee6ea505c3 | |
parent | 1365cd6468e9b0ba0a0b7e420238fdc1fe7a0018 (diff) |
Notes
-rw-r--r-- | sys/compat/linux/linux_mmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_mmap.c b/sys/compat/linux/linux_mmap.c index 8391da0b8e4f3..969e49e327e82 100644 --- a/sys/compat/linux/linux_mmap.c +++ b/sys/compat/linux/linux_mmap.c @@ -371,7 +371,13 @@ linux_madvise_common(struct thread *td, uintptr_t addr, size_t len, int behav) /* Ignored; on FreeBSD huge pages are always on. */ return (0); case LINUX_MADV_NOHUGEPAGE: +#if 0 + /* + * Don't warn - Firefox uses it a lot, and in real Linux it's + * an optional feature. + */ linux_msg(curthread, "unsupported madvise MADV_NOHUGEPAGE"); +#endif return (EINVAL); case LINUX_MADV_DONTDUMP: return (kern_madvise(td, addr, len, MADV_NOCORE)); |