On 9/9/22 08:28, Andreas Larsson wrote:
On 2022-08-30 22:58, Bart Van Assche wrote:
Fix the following build errors:
arch/sparc/mm/srmmu.c: In function ‘smp_flush_page_for_dma’:
arch/sparc/mm/srmmu.c:1639:13: error: cast between incompatible function types from ‘void (*)(long unsigned int)’ to ‘void (*)(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int)’ [-Werror=cast-function-type]
1639 | xc1((smpfunc_t) local_ops->page_for_dma, page);
| ^
arch/sparc/mm/srmmu.c: In function ‘smp_flush_cache_mm’:
arch/sparc/mm/srmmu.c:1662:29: error: cast between incompatible function types from ‘void (*)(struct mm_struct *)’ to ‘void (*)(long unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int)’ [-Werror=cast-function-type]
1662 | xc1((smpfunc_t) local_ops->cache_mm, (unsigned long) mm);
|
[ ... ]
Compile-tested only.
Fixes: 552a23a0e5d0 ("Makefile: Enable -Wcast-function-type")
Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
Tested-by: Andreas Larsson <andreas@xxxxxxxxxxx>
Hi Dave,
Did I send this patch to the right maintainer? I sent this patch to you
because I found the following in the MAINTAINERS file:
SPARC + UltraSPARC (sparc/sparc64)
M: "David S. Miller" <davem@xxxxxxxxxxxxx>
L: sparclinux@xxxxxxxxxxxxxxx
S: Maintained
Q: http://patchwork.ozlabs.org/project/sparclinux/list/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc.git
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next.git
F: arch/sparc/
F: drivers/sbus/
In case this patch wouldn't be in your inbox anymore, it is available here:
https://lore.kernel.org/all/20220830205854.1918026-1-bvanassche@xxxxxxx/
Thanks,
Bart.