linux/drivers/hwspinlock
Wolfram Sang bac6094506 hwspinlock: qcom: avoid uninitialized struct members
[ Upstream commit 8752c396ce ]

The reg_field is allocated on stack, so using the REG_FIELD macro will
ensure that unused members do not have uninitialized values.

Fixes: 19a0f61224 ("hwspinlock: qcom: Add support for Qualcomm HW Mutex block")
Link: https://sashiko.dev/#/patchset/20260319105947.6237-1-wsa%2Brenesas%40sang-engineering.com
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260512091339.31085-2-wsa+renesas@sang-engineering.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-07-24 15:51:34 +02:00
..
hwspinlock_core.c hwspinlock: Introduce hwspin_lock_bust() 2024-09-12 11:07:41 +02:00
hwspinlock_internal.h hwspinlock: Introduce hwspin_lock_bust() 2024-09-12 11:07:41 +02:00
Kconfig hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
Makefile hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
omap_hwspinlock.c hwspinlock: omap: Add support for K3 AM64x SoCs 2021-02-09 11:36:50 -06:00
qcom_hwspinlock.c hwspinlock: qcom: avoid uninitialized struct members 2026-07-24 15:51:34 +02:00
sprd_hwspinlock.c hwspinlock: sprd: fixed warning of unused variable 'sprd_hwspinlock_of_match' 2020-11-17 21:42:13 -06:00
stm32_hwspinlock.c hwspinlock: stm32: convert to devm_platform_ioremap_resource 2019-12-28 20:43:23 -08:00
sun6i_hwspinlock.c hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
u8500_hsem.c hwspinlock: u8500_hsem: Remove redundant PM runtime implementation 2019-11-08 16:42:26 -08:00