From: Alexander Kuleshov Date: Sun, 6 Sep 2015 13:35:41 +0000 (+0600) Subject: kvm: compile process_smi_save_seg_64() only for x86_64 X-Git-Tag: omap-for-v4.3/fixes-rc1~38^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efbb288afc2f3079fa5e9308f4d9d06a390babdc;p=pandora-kernel.git kvm: compile process_smi_save_seg_64() only for x86_64 The process_smi_save_seg_64() function called only in the process_smi_save_state_64() if the CONFIG_X86_64 is set. This patch adds #ifdef CONFIG_X86_64 around process_smi_save_seg_64() to prevent following warning message: arch/x86/kvm/x86.c:5946:13: warning: ‘process_smi_save_seg_64’ defined but not used [-Wunused-function] static void process_smi_save_seg_64(struct kvm_vcpu *vcpu, char *buf, int n) ^ Signed-off-by: Alexander Kuleshov Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed