• Harvey Harrison's avatar
    x86: two trivial sparse annotations · 9352f569
    Harvey Harrison authored
    Impact: fewer sparse warnings, no functional changes
    
    arch/x86/kernel/vsmp_64.c:87:14: warning: incorrect type in argument 1 (different address spaces)
    arch/x86/kernel/vsmp_64.c:87:14:    expected void const volatile [noderef] <asn:2>*addr
    arch/x86/kernel/vsmp_64.c:87:14:    got void *[assigned] address
    arch/x86/kernel/vsmp_64.c:88:22: warning: incorrect type in argument 1 (different address spaces)
    arch/x86/kernel/vsmp_64.c:88:22:    expected void const volatile [noderef] <asn:2>*addr
    arch/x86/kernel/vsmp_64.c:88:22:    got void *
    arch/x86/kernel/vsmp_64.c:100:23: warning: incorrect type in argument 2 (different address spaces)
    arch/x86/kernel/vsmp_64.c:100:23:    expected void volatile [noderef] <asn:2>*addr
    arch/x86/kernel/vsmp_64.c:100:23:    got void *
    arch/x86/kernel/vsmp_64.c:101:23: warning: incorrect type in argument 1 (different address spaces)
    arch/x86/kernel/vsmp_64.c:101:23:    expected void const volatile [noderef] <asn:2>*addr
    arch/x86/kernel/vsmp_64.c:101:23:    got void *
    arch/x86/mm/gup.c:235:6: warning: incorrect type in argument 1 (different base types)
    arch/x86/mm/gup.c:235:6:    expected void const volatile [noderef] <asn:1>*<noident>
    arch/x86/mm/gup.c:235:6:    got unsigned long [unsigned] [assigned] start
    Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    9352f569
vsmp_64.c 3.44 KB