lkml.org 
[lkml]   [2010]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2010-10-12 14:43    [W:0.037 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site