[PATCH 01/11] KVM: ARM/arm64: fix non-const declaration of function returning const

Christoffer Dall christoffer.dall at linaro.org
Tue Aug 26 07:29:14 PDT 2014


On Tue, Aug 26, 2014 at 03:13:20PM +0100, Will Deacon wrote:
> Sparse kicks up about a type mismatch for kvm_target_cpu:
> 
> arch/arm64/kvm/guest.c:271:25: error: symbol 'kvm_target_cpu' redeclared with different type (originally declared at ./arch/arm64/include/asm/kvm_host.h:45) - different modifiers
> 
> so fix this by adding the missing const attribute to the function
> declaration.
> 
> Cc: Christoffer Dall <christoffer.dall at linaro.org>
> Cc: Marc Zyngier <marc.zyngier at arm.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>

Acked-by: Christoffer Dall <christoffer.dall at linaro.org>



More information about the linux-arm-kernel mailing list