Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
25 lines
818 B
C
25 lines
818 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
#ifndef _LINUX_XARRAY_H
|
|
#define _LINUX_XARRAY_H
|
|
/*
|
|
* eXtensible Arrays
|
|
* Copyright (c) 2017 Microsoft Corporation
|
|
* Author: Matthew Wilcox <mawilcox@microsoft.com>
|
|
*/
|
|
|
|
#include <linux/spinlock.h>
|
|
|
|
#define xa_trylock(xa) spin_trylock(&(xa)->xa_lock)
|
|
#define xa_lock(xa) spin_lock(&(xa)->xa_lock)
|
|
#define xa_unlock(xa) spin_unlock(&(xa)->xa_lock)
|
|
#define xa_lock_bh(xa) spin_lock_bh(&(xa)->xa_lock)
|
|
#define xa_unlock_bh(xa) spin_unlock_bh(&(xa)->xa_lock)
|
|
#define xa_lock_irq(xa) spin_lock_irq(&(xa)->xa_lock)
|
|
#define xa_unlock_irq(xa) spin_unlock_irq(&(xa)->xa_lock)
|
|
#define xa_lock_irqsave(xa, flags) \
|
|
spin_lock_irqsave(&(xa)->xa_lock, flags)
|
|
#define xa_unlock_irqrestore(xa, flags) \
|
|
spin_unlock_irqrestore(&(xa)->xa_lock, flags)
|
|
|
|
#endif /* _LINUX_XARRAY_H */
|