|
From: | Anthony Liguori |
Subject: | [Qemu-devel] Re: [PATCH 1/3] x86: fix warning without CONFIG_KVM |
Date: | Thu, 13 Nov 2008 13:31:19 -0600 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
Jan Kiszka wrote:
Isn't it cleaner to provide an empty static inline in the !CONFIG_KVM case? Not all compilers might be smart enough to optimize this function away.
kvm_enabled() is (0) when !CONFIG_KVM so that's why this is a warning and not an error. The function call disappears during linking from dead code elimination. There is no routine overhead when !CONFIG_KVM.
Regards, Anthony Liguori
Jan
[Prev in Thread] | Current Thread | [Next in Thread] |