This will be used in a subsequent patch that introduces a Rust abstraction around shmem files. The helper is used to fix a lockdep warning about ashmem's backing shmem inodes. Bug: 370906207 Bug: 415769373 Bug: 456158356 Change-Id: Iaa10471a17f7ac0a6d20f5ec0de5f0fa98c46c24 Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
10 lines
232 B
C
10 lines
232 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/mman.h>
|
|
|
|
void rust_helper_lockdep_set_class_rwsem(struct rw_semaphore *lock, struct lock_class_key *key,
|
|
const char *name)
|
|
{
|
|
lockdep_set_class_and_name(lock, key, name);
|
|
}
|