x86/xen: only warn once if bad MFNs are found during setup
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 7 Jan 2014 11:36:53 +0000 (11:36 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 15 May 2014 15:15:01 +0000 (16:15 +0100)
commit2dcc9a3de1d7f77bb4dbc108358a75776328e887
tree74909541226457ce58d59a53f4ae60a583fbed06
parent3cb83e46d032505016ab2565f067e24c8cba9a9d
x86/xen: only warn once if bad MFNs are found during setup

In xen_add_extra_mem(), if the WARN() checks for bad MFNs trigger it is
likely that they will trigger at lot, spamming the log.

Use WARN_ONCE() instead.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/setup.c