]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: Unbreak the build
authorBart Van Assche <bvanassche@acm.org>
Tue, 30 Aug 2022 20:58:42 +0000 (13:58 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 30 Sep 2022 02:21:10 +0000 (19:21 -0700)
commit35e14532565fd01e89ac67e42a46938b7f30bc92
treeeea78255cce61b84f4f96ceda8293ceed5e2e4b8
parentc76335e9e47d4023380201f7ab257e3353e6c7c2
sparc: Unbreak the build

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: cc44cb1d052a ("Makefile: Enable -Wcast-function-type")
Cc: stable@vger.kernel.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220830205854.1918026-1-bvanassche@acm.org
arch/sparc/include/asm/smp_32.h
arch/sparc/kernel/leon_smp.c
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4m_smp.c
arch/sparc/mm/srmmu.c