Messages in this thread | | | Date | Tue, 12 Oct 2010 20:41:35 +0800 | From | Wu Fengguang <> | Subject | Re: [PATCH] HWPOISON: Implement hwpoison-on-free for soft offlining |
| |
> >> + if (PageHWPoisonOnFree(page)) > >> + hwpoison_page_on_free(page); > > hwpoison_page_on_free() seems to be undefined when > > CONFIG_HWPOISON_ON_FREE is not defined. > > Yes, but I rely on the compiler never generating the call in this case > because > the test is zero. > > It would fail on a unoptimized build, but the kernel doesn't support > that anyways.
Fair enough.
Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
> Thanks for the review.
:)
Thanks, Fengguang
| |