Re: [PATCH] x86/paravirt: Fix tlb_remove_table function callback prototype warning

2023-08-03 Thread Kees Cook
On Wed, 26 Jul 2023 16:11:43 -0700, Kees Cook wrote: > Under W=1, this warning is visible in Clang 16 and newer: > > arch/x86/kernel/paravirt.c:337:4: warning: cast from 'void (*)(struct > mmu_gather *, struct page *)' to 'void (*)(struct mmu_gather *, void *)' > converts to incompatible

Re: [PATCH] x86/paravirt: Fix tlb_remove_table function callback prototype warning

2023-07-26 Thread Juergen Gross via Virtualization
On 27.07.23 01:11, Kees Cook wrote: Under W=1, this warning is visible in Clang 16 and newer: arch/x86/kernel/paravirt.c:337:4: warning: cast from 'void (*)(struct mmu_gather *, struct page *)' to 'void (*)(struct mmu_gather *, void *)' converts to incompatible function type

[PATCH] x86/paravirt: Fix tlb_remove_table function callback prototype warning

2023-07-26 Thread Kees Cook
Under W=1, this warning is visible in Clang 16 and newer: arch/x86/kernel/paravirt.c:337:4: warning: cast from 'void (*)(struct mmu_gather *, struct page *)' to 'void (*)(struct mmu_gather *, void *)' converts to incompatible function type [-Wcast-function-type-strict]