lkml.org 
[lkml]   [2019]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] KVM: arm64: Drop 'const' from argument of vq_present()
    On Tue, Jun 04, 2019 at 10:13:19AM +0530, Viresh Kumar wrote:
    > We currently get following compilation warning:
    >
    > arch/arm64/kvm/guest.c: In function 'set_sve_vls':
    > arch/arm64/kvm/guest.c:262:18: warning: passing argument 1 of 'vq_present' from incompatible pointer type
    > arch/arm64/kvm/guest.c:212:13: note: expected 'const u64 (* const)[8]' but argument is of type 'u64 (*)[8]'

    Since the vq_present() function does not modify the vqs array, I don't
    understand why this warning. Compiler bug?

    --
    Catalin

    \
     
     \ /
      Last update: 2019-06-04 10:44    [W:3.092 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site