]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
clk: Silence warnings about lock imbalances
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 24 Jul 2015 19:24:48 +0000 (12:24 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 28 Jul 2015 18:59:30 +0000 (11:59 -0700)
commita57aa18539f8b232065f574f438edb646c6b9d9b
tree5feec1e76d3d6b8ac034c3bfe034a28b94fc335d
parent661e2180cf050a2f859d466f30d74e990b9345be
clk: Silence warnings about lock imbalances

The recursive spinlock implementation trips up sparse and it
complains that these functions have lock imbalances. That isn't
really true though, so add some __acquires() and __releases()
information so that sparse is quiet.

drivers/clk/clk.c:116:22: warning: context imbalance in 'clk_enable_lock' - wrong count at exit
drivers/clk/clk.c:141:9: warning: context imbalance in 'clk_enable_unlock' - unexpected unlock

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c