android_kernel_motorola_sm6225/arch/arm/kvm
Arnd Bergmann d21a1c83c7 ARM: KVM: define KVM_ARM_MAX_VCPUS unconditionally
The CONFIG_KVM_ARM_MAX_VCPUS symbol is needed in order to build the
kernel/context_tracking.c code, which includes the vgic data structures
implictly through the kvm headers. Definining the symbol to zero
on builds without KVM resolves this build error:

In file included from include/linux/kvm_host.h:33:0,
                 from kernel/context_tracking.c:18:
arch/arm/include/asm/kvm_host.h:28:23: warning: "CONFIG_KVM_ARM_MAX_VCPUS" is not defined [-Wundef]
 #define KVM_MAX_VCPUS CONFIG_KVM_ARM_MAX_VCPUS
                       ^
arch/arm/include/asm/kvm_vgic.h:34:24: note: in expansion of macro 'KVM_MAX_VCPUS'
 #define VGIC_MAX_CPUS  KVM_MAX_VCPUS
                        ^
arch/arm/include/asm/kvm_vgic.h:38:6: note: in expansion of macro 'VGIC_MAX_CPUS'
 #if (VGIC_MAX_CPUS > 8)
      ^
In file included from arch/arm/include/asm/kvm_host.h:41:0,
                 from include/linux/kvm_host.h:33,
                 from kernel/context_tracking.c:18:
arch/arm/include/asm/kvm_vgic.h:59:11: error: 'CONFIG_KVM_ARM_MAX_VCPUS' undeclared here (not in a function)
  } percpu[VGIC_MAX_CPUS];
           ^

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <cdall@cs.columbia.edu>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
2013-04-28 22:23:14 -07:00
..
arch_timer.c ARM: KVM: arch_timer: use symbolic constants 2013-04-28 22:22:57 -07:00
arm.c ARM: KVM: promote vfp_host pointer to generic host cpu context 2013-04-28 22:23:13 -07:00
coproc.c ARM: KVM: abstract IL decoding away 2013-03-06 15:48:43 -08:00
coproc.h ARM: KVM: convert GP registers from u32 to unsigned long 2013-03-06 15:48:42 -08:00
coproc_a15.c KVM: ARM: Emulation framework and CP15 emulation 2013-01-23 13:29:13 -05:00
emulate.c ARM: KVM: move kvm_handle_wfi to handle_exit.c 2013-03-06 15:48:45 -08:00
guest.c ARM: KVM: move kvm_target_cpu to guest.c 2013-03-06 15:48:44 -08:00
handle_exit.c ARM: KVM: move kvm_handle_wfi to handle_exit.c 2013-03-06 15:48:45 -08:00
init.S ARM: KVM: switch to a dual-step HYP init code 2013-04-28 22:23:10 -07:00
interrupts.S ARM: KVM: change kvm_tlb_flush_vmid to kvm_tlb_flush_vmid_ipa 2013-03-06 15:48:45 -08:00
interrupts_head.S ARM: KVM: arch_timers: Add timer world switch 2013-02-11 19:05:38 +00:00
Kconfig ARM: KVM: define KVM_ARM_MAX_VCPUS unconditionally 2013-04-28 22:23:14 -07:00
Makefile ARM: KVM: add support for minimal host vs guest profiling 2013-04-28 21:44:01 -07:00
mmio.c ARM: KVM: Fix length of mmio access 2013-03-06 16:01:51 -08:00
mmu.c ARM: KVM: perform HYP initilization for hotplugged CPUs 2013-04-28 22:23:11 -07:00
perf.c ARM: KVM: add support for minimal host vs guest profiling 2013-04-28 21:44:01 -07:00
psci.c KVM: ARM: Power State Coordination Interface implementation 2013-01-23 13:29:18 -05:00
reset.c KVM: ARM: Initial skeleton to compile KVM support 2013-01-23 13:29:10 -05:00
trace.h KVM: ARM: Handle I/O aborts 2013-01-23 13:29:17 -05:00
vgic.c ARM: KVM: vgic: decouple alignment restriction from page size 2013-03-06 15:48:44 -08:00