linux-stable/arch/arm
Arnd Bergmann 8d27d1b155 crypto: arm/sha - fix function cast warnings
[ Upstream commit 53cc9baeb9 ]

clang-16 warns about casting between incompatible function types:

arch/arm/crypto/sha256_glue.c:37:5: error: cast from 'void (*)(u32 *, const void *, unsigned int)' (aka 'void (*)(unsigned int *, const void *, unsigned int)') to 'sha256_block_fn *' (aka 'void (*)(struct sha256_state *, const unsigned char *, int)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
   37 |                                 (sha256_block_fn *)sha256_block_data_order);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm/crypto/sha512-glue.c:34:3: error: cast from 'void (*)(u64 *, const u8 *, int)' (aka 'void (*)(unsigned long long *, const unsigned char *, int)') to 'sha512_block_fn *' (aka 'void (*)(struct sha512_state *, const unsigned char *, int)') converts to incompatible function type [-Werror,-Wcast-function-type-strict]
   34 |                 (sha512_block_fn *)sha512_block_data_order);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fix the prototypes for the assembler functions to match the typedef.
The code already relies on the digest being the first part of the
state structure, so there is no change in behavior.

Fixes: c80ae7ca37 ("crypto: arm/sha512 - accelerated SHA-512 using ARM generic ASM and NEON")
Fixes: b59e2ae369 ("crypto: arm/sha256 - move SHA-224/256 ASM/NEON implementation to base layer")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:22:40 -04:00
..
boot ARM: dts: arm: realview: Fix development chip ROM compatible value 2024-03-26 18:22:35 -04:00
common
configs
crypto crypto: arm/sha - fix function cast warnings 2024-03-26 18:22:40 -04:00
firmware
include ARM: 9320/1: fix stack depot IRQ stack filter 2023-11-28 16:46:32 +00:00
kernel hw_breakpoint: fix single-stepping when using bpf_overflow_handler 2023-09-23 10:48:15 +02:00
kvm
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-11-20 10:29:19 +01:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: use proper compatible for sama5d2's rtc 2022-07-12 16:29:02 +02:00
mach-axxia ARM: Fix refcount leak in axxia_boot_secondary 2022-07-02 16:27:37 +02:00
mach-bcm ARM: bcm: Fix refcount leak in bcm_kona_smc_init 2022-08-25 11:15:00 +02:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix refcount leak in cns3xxx_init 2022-07-02 16:27:38 +02:00
mach-davinci ARM: davinci: da850-evm: Avoid NULL pointer dereference 2022-04-20 09:12:50 +02:00
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx ARM: ep93xx: Add terminator to gpiod_lookup_table 2024-03-01 13:06:10 +01:00
mach-exynos ARM: exynos: Fix refcount leak in exynos_map_pmu 2022-07-02 16:27:37 +02:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi ARM: hisi: Add missing of_node_put after of_find_compatible_node 2022-06-14 16:59:18 +02:00
mach-imx ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 17:42:17 +01:00
mach-integrator
mach-iop13xx
mach-iop32x
mach-iop33x
mach-ixp4xx
mach-keystone
mach-ks8695
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson ARM: meson: Fix refcount leak in meson_smp_prepare_cpus 2022-07-12 16:29:02 +02:00
mach-mmp ARM: mmp: fix timer_read delay 2023-01-18 11:30:04 +01:00
mach-moxart
mach-mv78xx0
mach-mvebu
mach-mxs ARM: mxs: fix memory leak in mxs_machine_init() 2022-12-08 11:18:29 +01:00
mach-netx
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: OMAP1: call platform_device_put() in error case in omap1_dm_timer_init() 2023-03-11 16:31:32 +01:00
mach-omap2 ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init 2024-01-08 11:27:33 +01:00
mach-orion5x ARM: orion5x: fix d2net gpio initialization 2023-08-11 11:45:15 +02:00
mach-oxnas
mach-picoxcell
mach-prima2
mach-pxa ARM: pxa: remove use of symbol_get() 2023-09-23 10:47:56 +02:00
mach-qcom
mach-realview
mach-rockchip
mach-rpc
mach-s3c24xx ARM: 9187/1: JIVE: fix return value of __setup handler 2022-04-15 14:15:00 +02:00
mach-s3c64xx
mach-s5pv210
mach-sa1100 treewide: Remove uninitialized_var() usage 2023-08-11 11:45:01 +02:00
mach-shmobile
mach-socfpga ARM: socfpga: Fix crash with CONFIG_FORTIRY_SOURCE 2021-12-01 09:27:42 +01:00
mach-spear
mach-sti
mach-stm32
mach-sunxi ARM: sun9i: smp: fix return code check of of_property_match_string 2024-01-25 14:33:30 -08:00
mach-tango
mach-tegra
mach-u300
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress ARM: versatile: Add missing of_node_put in dcscb_init 2022-06-14 16:59:18 +02:00
mach-vt8500
mach-w90x900
mach-zx
mach-zynq ARM: zynq: Fix refcount leak in zynq_early_slcr_init 2023-03-11 16:31:31 +01:00
mm ARM: 8933/1: replace Sun/Solaris style flag on section directive 2023-11-08 11:22:17 +01:00
net bpf, arm: Fix register clobbering in div/mod implementation 2021-10-13 10:10:51 +02:00
nwfpe ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod 2023-01-18 11:30:43 +01:00
oprofile
plat-iop
plat-omap
plat-orion
plat-pxa
plat-samsung
plat-versatile
probes ARM: 9303/1: kprobes: avoid missing-declaration warnings 2023-08-11 11:45:03 +02:00
tools
vdso
vfp
xen arm/xen: fix xen_vcpu_info allocation alignment 2023-12-08 08:43:23 +01:00
Kconfig ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:49:17 +02:00
Kconfig-nommu
Kconfig.debug ARM: fix function graph tracer and unwinder dependencies 2022-10-26 13:19:16 +02:00
Makefile ARM: 9156/1: drop cc-option fallbacks for architecture selection 2021-11-26 11:36:17 +01:00