summaryrefslogtreecommitdiffstats
path: root/drivers/xen/balloon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen/balloon.c')
-rw-r--r--drivers/xen/balloon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
index 930fb6817901..e33615335aa0 100644
--- a/drivers/xen/balloon.c
+++ b/drivers/xen/balloon.c
@@ -36,6 +36,8 @@
36 * IN THE SOFTWARE. 36 * IN THE SOFTWARE.
37 */ 37 */
38 38
39#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
40
39#include <linux/kernel.h> 41#include <linux/kernel.h>
40#include <linux/sched.h> 42#include <linux/sched.h>
41#include <linux/errno.h> 43#include <linux/errno.h>
@@ -242,7 +244,7 @@ static enum bp_state reserve_additional_memory(long credit)
242 rc = add_memory(nid, hotplug_start_paddr, balloon_hotplug << PAGE_SHIFT); 244 rc = add_memory(nid, hotplug_start_paddr, balloon_hotplug << PAGE_SHIFT);
243 245
244 if (rc) { 246 if (rc) {
245 pr_info("xen_balloon: %s: add_memory() failed: %i\n", __func__, rc); 247 pr_info("%s: add_memory() failed: %i\n", __func__, rc);
246 return BP_EAGAIN; 248 return BP_EAGAIN;
247 } 249 }
248 250
@@ -591,7 +593,7 @@ static int __init balloon_init(void)
591 if (!xen_domain()) 593 if (!xen_domain())
592 return -ENODEV; 594 return -ENODEV;
593 595
594 pr_info("xen/balloon: Initialising balloon driver.\n"); 596 pr_info("Initialising balloon driver\n");
595 597
596 balloon_stats.current_pages = xen_pv_domain() 598 balloon_stats.current_pages = xen_pv_domain()
597 ? min(xen_start_info->nr_pages - xen_released_pages, max_pfn) 599 ? min(xen_start_info->nr_pages - xen_released_pages, max_pfn)