samples/kfifo: Rename read_lock/write_lock
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 23 Sep 2021 17:29:18 +0000 (19:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Oct 2021 12:36:48 +0000 (14:36 +0200)
commit880732ae31e890a568a71eb50d5747284b3c4dbe
treed7e64027fec15b8a89def8999a515aecef9e7766
parent85385a51ceadfe79ae3b1eb5848fab6c3b917ea8
samples/kfifo: Rename read_lock/write_lock

The variables names read_lock and write_lock can clash with functions used for
read/writer locks.

Rename read_lock to read_access and write_lock to write_access to avoid a name
collision.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lkml.kernel.org/r/20210806152551.qio7c3ho6pexezup@linutronix.de
Link: https://lore.kernel.org/r/20210923172918.o22iwgvn3w7ilh44@linutronix.de
Acked-by: Stefani Seibold <stefani@seibold.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/kfifo/bytestream-example.c
samples/kfifo/inttype-example.c
samples/kfifo/record-example.c