diff options
author | Helge Deller <deller@gmx.de> | 2023-08-10 04:29:29 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-08-10 17:32:10 +0200 |
commit | a07c03e8064026d55d1699d161c536cc437d58d6 (patch) | |
tree | e890d83b3b8f7413109b6ed0888258060fa80b00 /arch/parisc | |
parent | dc54a52a8cd43cff4fbe8d761c98edeb857d3ad7 (diff) | |
download | lwn-a07c03e8064026d55d1699d161c536cc437d58d6.tar.gz lwn-a07c03e8064026d55d1699d161c536cc437d58d6.zip |
parisc: firmware: Fix sparse context imbalance warnings
Tell sparse about correct context for pdc_cpu_rendezvous_*lock()
functions.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/firmware.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/parisc/kernel/firmware.c b/arch/parisc/kernel/firmware.c index 6d1c781eb1db..9cd8af5e79d7 100644 --- a/arch/parisc/kernel/firmware.c +++ b/arch/parisc/kernel/firmware.c @@ -334,7 +334,7 @@ int __pdc_cpu_rendezvous(void) /** * pdc_cpu_rendezvous_lock - Lock PDC while transitioning to rendezvous state */ -void pdc_cpu_rendezvous_lock(void) +void pdc_cpu_rendezvous_lock(void) __acquires(&pdc_lock) { spin_lock(&pdc_lock); } @@ -342,7 +342,7 @@ void pdc_cpu_rendezvous_lock(void) /** * pdc_cpu_rendezvous_unlock - Unlock PDC after reaching rendezvous state */ -void pdc_cpu_rendezvous_unlock(void) +void pdc_cpu_rendezvous_unlock(void) __releases(&pdc_lock) { spin_unlock(&pdc_lock); } |