]> git.baikalelectronics.ru Git - kernel.git/commit
seqlock: seqcount latch APIs: Only allow seqcount_latch_t
authorAhmed S. Darwish <a.darwish@linutronix.de>
Thu, 27 Aug 2020 11:40:44 +0000 (13:40 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 10 Sep 2020 09:19:30 +0000 (11:19 +0200)
commit29457ee966e2e76574b892a63011aeda8569fb0d
tree3ff88ef1eee674882df3e7a174df462ce15f37b0
parent81a779827e06f467afaac48c5d91041b32f7d179
seqlock: seqcount latch APIs: Only allow seqcount_latch_t

All latch sequence counter call-sites have now been converted from plain
seqcount_t to the new seqcount_latch_t data type.

Enforce type-safety by modifying seqlock.h latch APIs to only accept
seqcount_latch_t.

Signed-off-by: Ahmed S. Darwish <a.darwish@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200827114044.11173-9-a.darwish@linutronix.de
include/linux/seqlock.h