From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liang Li Subject: [QEMU v2 1/9] virtio-balloon: Remove needless precompiled directive Date: Fri, 15 Jul 2016 10:47:21 +0800 Message-ID: <1468550849-22172-2-git-send-email-liang.z.li@intel.com> References: <1468550849-22172-1-git-send-email-liang.z.li@intel.com> Cc: mst@redhat.com, pbonzini@redhat.com, quintela@redhat.com, amit.shah@redhat.com, kvm@vger.kernel.org, dgilbert@redhat.com, thuth@redhat.com, Liang Li To: qemu-devel@nongnu.org Return-path: Received: from mga04.intel.com ([192.55.52.120]:48036 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751641AbcGOCzp (ORCPT ); Thu, 14 Jul 2016 22:55:45 -0400 In-Reply-To: <1468550849-22172-1-git-send-email-liang.z.li@intel.com> Sender: kvm-owner@vger.kernel.org List-ID: Since there in wrapper around madvise(), the virtio-balloon code is able to work without the precompiled directive, the directive can be removed. Signed-off-by: Liang Li Suggested-by: Thomas Huth --- hw/virtio/virtio-balloon.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 1a22e6d..62931b3 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -34,13 +34,11 @@ static void balloon_page(void *addr, int deflate) { -#if defined(__linux__) if (!qemu_balloon_is_inhibited() && (!kvm_enabled() || kvm_has_sync_mmu())) { qemu_madvise(addr, BALLOON_PAGE_SIZE, deflate ? QEMU_MADV_WILLNEED : QEMU_MADV_DONTNEED); } -#endif } static const char *balloon_stat_names[] = { -- 1.9.1