!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/src/linux-headers-6.6.116-grsec-jammy-dirty/include/linux/atomic/   drwxr-xr-x
Free 714.76 GB of 879.6 GB (81.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     atomic-instrumented.h (234.87 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// SPDX-License-Identifier: GPL-2.0

// Generated by scripts/atomic/gen-atomic-instrumented.sh
// DO NOT MODIFY THIS FILE DIRECTLY

/*
 * This file provoides atomic operations with explicit instrumentation (e.g.
 * KASAN, KCSAN), which should be used unless it is necessary to avoid
 * instrumentation. Where it is necessary to aovid instrumenation, the
 * raw_atomic*() operations should be used.
 */
#ifndef _LINUX_ATOMIC_INSTRUMENTED_H
#define _LINUX_ATOMIC_INSTRUMENTED_H

#include <linux/build_bug.h>
#include <linux/compiler.h>
#include <linux/instrumented.h>

#if !defined(__atomic_op_pick) || !defined(__atomic64_op_pick)
#error Do not include this file directly, use <linux/atomic.h> instead!
#else
#define atomic_op_pick(pfx,op,order,var)    __atomic_op_pick(,pfx,op,order,var)
#define atomic64_op_pick(pfx,op,order,var)    __atomic64_op_pick(,pfx,op,order,var)
#define atomic_long_op_pick            atomic_op_pick
#endif

/**
 * atomic_read() - atomic load with relaxed ordering
 * @v: pointer to atomic_t
 *
 * Atomically loads the value of @v with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_read() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_read(const atomic_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_read(v);
}

/**
 * atomic_read_acquire() - atomic load with acquire ordering
 * @v: pointer to atomic_t
 *
 * Atomically loads the value of @v with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_read_acquire() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_read_acquire(const atomic_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_read_acquire(v);
}

/**
 * atomic_read_unchecked() - atomic load with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically loads the value of @v with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_read_unchecked() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_read_unchecked(const atomic_unchecked_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_read_unchecked(v);
}
#define atomic_read(v) atomic_op_pick(atomic,read,,v)(v)

/**
 * atomic_read_unchecked_acquire() - atomic load with acquire ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically loads the value of @v with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_read_unchecked_acquire() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_read_unchecked_acquire(const atomic_unchecked_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_read_unchecked_acquire(v);
}
#define atomic_read_acquire(v) atomic_op_pick(atomic,read,_acquire,v)(v)

/**
 * atomic_set() - atomic set with relaxed ordering
 * @v: pointer to atomic_t
 * @i: int value to assign
 *
 * Atomically sets @v to @i with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_set() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_set(atomic_t *v, int i)
{
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_set(v, i);
}

/**
 * atomic_set_release() - atomic set with release ordering
 * @v: pointer to atomic_t
 * @i: int value to assign
 *
 * Atomically sets @v to @i with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_set_release() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_set_release(atomic_t *v, int i)
{
    kcsan_release();
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_set_release(v, i);
}

/**
 * atomic_set_unchecked() - atomic set with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 * @i: int value to assign
 *
 * Atomically sets @v to @i with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_set_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_set_unchecked(atomic_unchecked_t *v, int i)
{
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_set_unchecked(v, i);
}
#define atomic_set(v, i) atomic_op_pick(atomic,set,,v)(v, i)

/**
 * atomic_set_unchecked_release() - atomic set with release ordering
 * @v: pointer to atomic_unchecked_t
 * @i: int value to assign
 *
 * Atomically sets @v to @i with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_set_unchecked_release() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_set_unchecked_release(atomic_unchecked_t *v, int i)
{
    kcsan_release();
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_set_unchecked_release(v, i);
}
#define atomic_set_release(v, i) atomic_op_pick(atomic,set,_release,v)(v, i)

/**
 * atomic_add() - atomic add with relaxed ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_add(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_add(i, v);
}

/**
 * atomic_add_return() - atomic add with full ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return(i, v);
}

/**
 * atomic_add_return_acquire() - atomic add with acquire ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return_acquire(i, v);
}

/**
 * atomic_add_return_release() - atomic add with release ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return_release(i, v);
}

/**
 * atomic_add_return_relaxed() - atomic add with relaxed ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return_relaxed(i, v);
}

/**
 * atomic_fetch_add() - atomic add with full ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add(i, v);
}

/**
 * atomic_fetch_add_acquire() - atomic add with acquire ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_acquire(i, v);
}

/**
 * atomic_fetch_add_release() - atomic add with release ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_release(i, v);
}

/**
 * atomic_fetch_add_relaxed() - atomic add with relaxed ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_relaxed(i, v);
}

/**
 * atomic_add_unchecked() - atomic add with relaxed ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_add_unchecked(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_add_unchecked(i, v);
}
#define atomic_add(i, v) atomic_op_pick(atomic,add,,v)(i, v)

/**
 * atomic_add_return_unchecked() - atomic add with full ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return_unchecked(int i, atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return_unchecked(i, v);
}
#define atomic_add_return(i, v) atomic_op_pick(atomic,add_return,,v)(i, v)

/**
 * atomic_add_return_unchecked_acquire() - atomic add with acquire ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return_unchecked_acquire(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return_unchecked_acquire(i, v);
}
#define atomic_add_return_acquire(i, v) atomic_op_pick(atomic,add_return,_acquire,v)(i, v)

/**
 * atomic_add_return_unchecked_release() - atomic add with release ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return_unchecked_release(int i, atomic_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return_unchecked_release(i, v);
}
#define atomic_add_return_release(i, v) atomic_op_pick(atomic,add_return,_release,v)(i, v)

/**
 * atomic_add_return_unchecked_relaxed() - atomic add with relaxed ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_add_return_unchecked_relaxed(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_return_unchecked_relaxed(i, v);
}
#define atomic_add_return_relaxed(i, v) atomic_op_pick(atomic,add_return,_relaxed,v)(i, v)

/**
 * atomic_fetch_add_unchecked() - atomic add with full ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_unchecked(int i, atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_unchecked(i, v);
}
#define atomic_fetch_add(i, v) atomic_op_pick(atomic,fetch_add,,v)(i, v)

/**
 * atomic_fetch_add_unchecked_acquire() - atomic add with acquire ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_unchecked_acquire(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_unchecked_acquire(i, v);
}
#define atomic_fetch_add_acquire(i, v) atomic_op_pick(atomic,fetch_add,_acquire,v)(i, v)

/**
 * atomic_fetch_add_unchecked_release() - atomic add with release ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_unchecked_release(int i, atomic_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_unchecked_release(i, v);
}
#define atomic_fetch_add_release(i, v) atomic_op_pick(atomic,fetch_add,_release,v)(i, v)

/**
 * atomic_fetch_add_unchecked_relaxed() - atomic add with relaxed ordering
 * @i: int value to add
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_unchecked_relaxed(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_unchecked_relaxed(i, v);
}
#define atomic_fetch_add_relaxed(i, v) atomic_op_pick(atomic,fetch_add,_relaxed,v)(i, v)

/**
 * atomic_sub() - atomic subtract with relaxed ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_sub(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_sub(i, v);
}

/**
 * atomic_sub_return() - atomic subtract with full ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return(i, v);
}

/**
 * atomic_sub_return_acquire() - atomic subtract with acquire ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return_acquire(i, v);
}

/**
 * atomic_sub_return_release() - atomic subtract with release ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return_release(i, v);
}

/**
 * atomic_sub_return_relaxed() - atomic subtract with relaxed ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return_relaxed(i, v);
}

/**
 * atomic_fetch_sub() - atomic subtract with full ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_sub() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_sub(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_sub(i, v);
}

/**
 * atomic_fetch_sub_acquire() - atomic subtract with acquire ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_sub_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_sub_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_sub_acquire(i, v);
}

/**
 * atomic_fetch_sub_release() - atomic subtract with release ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_sub_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_sub_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_sub_release(i, v);
}

/**
 * atomic_fetch_sub_relaxed() - atomic subtract with relaxed ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_sub_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_sub_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_sub_relaxed(i, v);
}

/**
 * atomic_sub_unchecked() - atomic subtract with relaxed ordering
 * @i: int value to subtract
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_sub_unchecked(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_sub_unchecked(i, v);
}
#define atomic_sub(i, v) atomic_op_pick(atomic,sub,,v)(i, v)

/**
 * atomic_sub_return_unchecked() - atomic subtract with full ordering
 * @i: int value to subtract
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return_unchecked(int i, atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return_unchecked(i, v);
}
#define atomic_sub_return(i, v) atomic_op_pick(atomic,sub_return,,v)(i, v)

/**
 * atomic_sub_return_unchecked_acquire() - atomic subtract with acquire ordering
 * @i: int value to subtract
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return_unchecked_acquire(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return_unchecked_acquire(i, v);
}
#define atomic_sub_return_acquire(i, v) atomic_op_pick(atomic,sub_return,_acquire,v)(i, v)

/**
 * atomic_sub_return_unchecked_release() - atomic subtract with release ordering
 * @i: int value to subtract
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return_unchecked_release(int i, atomic_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return_unchecked_release(i, v);
}
#define atomic_sub_return_release(i, v) atomic_op_pick(atomic,sub_return,_release,v)(i, v)

/**
 * atomic_sub_return_unchecked_relaxed() - atomic subtract with relaxed ordering
 * @i: int value to subtract
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_sub_return_unchecked_relaxed(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_return_unchecked_relaxed(i, v);
}
#define atomic_sub_return_relaxed(i, v) atomic_op_pick(atomic,sub_return,_relaxed,v)(i, v)

/**
 * atomic_inc() - atomic increment with relaxed ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_inc(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_inc(v);
}

/**
 * atomic_inc_return() - atomic increment with full ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return(v);
}

/**
 * atomic_inc_return_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return_acquire(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return_acquire(v);
}

/**
 * atomic_inc_return_release() - atomic increment with release ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return_release(atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return_release(v);
}

/**
 * atomic_inc_return_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return_relaxed(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return_relaxed(v);
}

/**
 * atomic_fetch_inc() - atomic increment with full ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc(v);
}

/**
 * atomic_fetch_inc_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc_acquire(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc_acquire(v);
}

/**
 * atomic_fetch_inc_release() - atomic increment with release ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc_release(atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc_release(v);
}

/**
 * atomic_fetch_inc_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc_relaxed(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc_relaxed(v);
}

/**
 * atomic_inc_unchecked() - atomic increment with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_inc_unchecked(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_inc_unchecked(v);
}
#define atomic_inc(v) atomic_op_pick(atomic,inc,,v)(v)

/**
 * atomic_inc_return_unchecked() - atomic increment with full ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return_unchecked(atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return_unchecked(v);
}
#define atomic_inc_return(v) atomic_op_pick(atomic,inc_return,,v)(v)

/**
 * atomic_inc_return_unchecked_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return_unchecked_acquire(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return_unchecked_acquire(v);
}
#define atomic_inc_return_acquire(v) atomic_op_pick(atomic,inc_return,_acquire,v)(v)

/**
 * atomic_inc_return_unchecked_release() - atomic increment with release ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return_unchecked_release(atomic_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return_unchecked_release(v);
}
#define atomic_inc_return_release(v) atomic_op_pick(atomic,inc_return,_release,v)(v)

/**
 * atomic_inc_return_unchecked_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_inc_return_unchecked_relaxed(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_return_unchecked_relaxed(v);
}
#define atomic_inc_return_relaxed(v) atomic_op_pick(atomic,inc_return,_relaxed,v)(v)

/**
 * atomic_fetch_inc_unchecked() - atomic increment with full ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc_unchecked(atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc_unchecked(v);
}
#define atomic_fetch_inc(v) atomic_op_pick(atomic,fetch_inc,,v)(v)

/**
 * atomic_fetch_inc_unchecked_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc_unchecked_acquire(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc_unchecked_acquire(v);
}
#define atomic_fetch_inc_acquire(v) atomic_op_pick(atomic,fetch_inc,_acquire,v)(v)

/**
 * atomic_fetch_inc_unchecked_release() - atomic increment with release ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc_unchecked_release(atomic_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc_unchecked_release(v);
}
#define atomic_fetch_inc_release(v) atomic_op_pick(atomic,fetch_inc,_release,v)(v)

/**
 * atomic_fetch_inc_unchecked_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_inc_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_inc_unchecked_relaxed(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_inc_unchecked_relaxed(v);
}
#define atomic_fetch_inc_relaxed(v) atomic_op_pick(atomic,fetch_inc,_relaxed,v)(v)

/**
 * atomic_dec() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_dec(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_dec(v);
}

/**
 * atomic_dec_return() - atomic decrement with full ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return(v);
}

/**
 * atomic_dec_return_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return_acquire(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return_acquire(v);
}

/**
 * atomic_dec_return_release() - atomic decrement with release ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return_release(atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return_release(v);
}

/**
 * atomic_dec_return_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return_relaxed(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return_relaxed(v);
}

/**
 * atomic_fetch_dec() - atomic decrement with full ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_dec() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_dec(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_dec(v);
}

/**
 * atomic_fetch_dec_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_dec_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_dec_acquire(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_dec_acquire(v);
}

/**
 * atomic_fetch_dec_release() - atomic decrement with release ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_dec_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_dec_release(atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_dec_release(v);
}

/**
 * atomic_fetch_dec_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_dec_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_dec_relaxed(atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_dec_relaxed(v);
}

/**
 * atomic_dec_unchecked() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_dec_unchecked(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_dec_unchecked(v);
}
#define atomic_dec(v) atomic_op_pick(atomic,dec,,v)(v)

/**
 * atomic_dec_return_unchecked() - atomic decrement with full ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return_unchecked(atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return_unchecked(v);
}
#define atomic_dec_return(v) atomic_op_pick(atomic,dec_return,,v)(v)

/**
 * atomic_dec_return_unchecked_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return_unchecked_acquire(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return_unchecked_acquire(v);
}
#define atomic_dec_return_acquire(v) atomic_op_pick(atomic,dec_return,_acquire,v)(v)

/**
 * atomic_dec_return_unchecked_release() - atomic decrement with release ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return_unchecked_release(atomic_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return_unchecked_release(v);
}
#define atomic_dec_return_release(v) atomic_op_pick(atomic,dec_return,_release,v)(v)

/**
 * atomic_dec_return_unchecked_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_return_unchecked_relaxed(atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_return_unchecked_relaxed(v);
}
#define atomic_dec_return_relaxed(v) atomic_op_pick(atomic,dec_return,_relaxed,v)(v)

/**
 * atomic_and() - atomic bitwise AND with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_and() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_and(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_and(i, v);
}

/**
 * atomic_fetch_and() - atomic bitwise AND with full ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_and() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_and(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_and(i, v);
}

/**
 * atomic_fetch_and_acquire() - atomic bitwise AND with acquire ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_and_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_and_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_and_acquire(i, v);
}

/**
 * atomic_fetch_and_release() - atomic bitwise AND with release ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_and_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_and_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_and_release(i, v);
}

/**
 * atomic_fetch_and_relaxed() - atomic bitwise AND with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_and_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_and_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_and_relaxed(i, v);
}

/**
 * atomic_andnot() - atomic bitwise AND NOT with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_andnot() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_andnot(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_andnot(i, v);
}

/**
 * atomic_fetch_andnot() - atomic bitwise AND NOT with full ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & ~@i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_andnot() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_andnot(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_andnot(i, v);
}

/**
 * atomic_fetch_andnot_acquire() - atomic bitwise AND NOT with acquire ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & ~@i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_andnot_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_andnot_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_andnot_acquire(i, v);
}

/**
 * atomic_fetch_andnot_release() - atomic bitwise AND NOT with release ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & ~@i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_andnot_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_andnot_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_andnot_release(i, v);
}

/**
 * atomic_fetch_andnot_relaxed() - atomic bitwise AND NOT with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_andnot_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_andnot_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_andnot_relaxed(i, v);
}

/**
 * atomic_andnot_unchecked() - atomic bitwise AND NOT with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_andnot_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_andnot_unchecked(int i, atomic_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_andnot_unchecked(i, v);
}
#define atomic_andnot(i, v) atomic_op_pick(atomic,andnot,,v)(i, v)

/**
 * atomic_or() - atomic bitwise OR with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v | @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_or() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_or(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_or(i, v);
}

/**
 * atomic_fetch_or() - atomic bitwise OR with full ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v | @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_or() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_or(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_or(i, v);
}

/**
 * atomic_fetch_or_acquire() - atomic bitwise OR with acquire ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v | @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_or_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_or_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_or_acquire(i, v);
}

/**
 * atomic_fetch_or_release() - atomic bitwise OR with release ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v | @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_or_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_or_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_or_release(i, v);
}

/**
 * atomic_fetch_or_relaxed() - atomic bitwise OR with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v | @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_or_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_or_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_or_relaxed(i, v);
}

/**
 * atomic_xor() - atomic bitwise XOR with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xor() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_xor(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_xor(i, v);
}

/**
 * atomic_fetch_xor() - atomic bitwise XOR with full ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v ^ @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_xor() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_xor(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_xor(i, v);
}

/**
 * atomic_fetch_xor_acquire() - atomic bitwise XOR with acquire ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v ^ @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_xor_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_xor_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_xor_acquire(i, v);
}

/**
 * atomic_fetch_xor_release() - atomic bitwise XOR with release ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v ^ @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_xor_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_xor_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_xor_release(i, v);
}

/**
 * atomic_fetch_xor_relaxed() - atomic bitwise XOR with relaxed ordering
 * @i: int value
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_xor_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_xor_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_xor_relaxed(i, v);
}

/**
 * atomic_xchg() - atomic exchange with full ordering
 * @v: pointer to atomic_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg(atomic_t *v, int new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg(v, new);
}

/**
 * atomic_xchg_acquire() - atomic exchange with acquire ordering
 * @v: pointer to atomic_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg_acquire(atomic_t *v, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg_acquire(v, new);
}

/**
 * atomic_xchg_release() - atomic exchange with release ordering
 * @v: pointer to atomic_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg_release(atomic_t *v, int new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg_release(v, new);
}

/**
 * atomic_xchg_relaxed() - atomic exchange with relaxed ordering
 * @v: pointer to atomic_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg_relaxed(atomic_t *v, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg_relaxed(v, new);
}

/**
 * atomic_xchg_unchecked() - atomic exchange with full ordering
 * @v: pointer to atomic_unchecked_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg_unchecked(atomic_unchecked_t *v, int new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg_unchecked(v, new);
}
#define atomic_xchg(v, new) atomic_op_pick(atomic,xchg,,v)(v, new)

/**
 * atomic_xchg_unchecked_acquire() - atomic exchange with acquire ordering
 * @v: pointer to atomic_unchecked_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg_unchecked_acquire(atomic_unchecked_t *v, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg_unchecked_acquire(v, new);
}
#define atomic_xchg_acquire(v, new) atomic_op_pick(atomic,xchg,_acquire,v)(v, new)

/**
 * atomic_xchg_unchecked_release() - atomic exchange with release ordering
 * @v: pointer to atomic_unchecked_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg_unchecked_release(atomic_unchecked_t *v, int new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg_unchecked_release(v, new);
}
#define atomic_xchg_release(v, new) atomic_op_pick(atomic,xchg,_release,v)(v, new)

/**
 * atomic_xchg_unchecked_relaxed() - atomic exchange with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 * @new: int value to assign
 *
 * Atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_xchg_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_xchg_unchecked_relaxed(atomic_unchecked_t *v, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_xchg_unchecked_relaxed(v, new);
}
#define atomic_xchg_relaxed(v, new) atomic_op_pick(atomic,xchg,_relaxed,v)(v, new)

/**
 * atomic_cmpxchg() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg(atomic_t *v, int old, int new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg(v, old, new);
}

/**
 * atomic_cmpxchg_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg_acquire(atomic_t *v, int old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg_acquire(v, old, new);
}

/**
 * atomic_cmpxchg_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg_release(atomic_t *v, int old, int new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg_release(v, old, new);
}

/**
 * atomic_cmpxchg_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg_relaxed(atomic_t *v, int old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg_relaxed(v, old, new);
}

/**
 * atomic_cmpxchg_unchecked() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_unchecked_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg_unchecked(atomic_unchecked_t *v, int old, int new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg_unchecked(v, old, new);
}
#define atomic_cmpxchg(v, old, new) atomic_op_pick(atomic,cmpxchg,,v)(v, old, new)

/**
 * atomic_cmpxchg_unchecked_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_unchecked_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg_unchecked_acquire(atomic_unchecked_t *v, int old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg_unchecked_acquire(v, old, new);
}
#define atomic_cmpxchg_acquire(v, old, new) atomic_op_pick(atomic,cmpxchg,_acquire,v)(v, old, new)

/**
 * atomic_cmpxchg_unchecked_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_unchecked_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg_unchecked_release(atomic_unchecked_t *v, int old, int new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg_unchecked_release(v, old, new);
}
#define atomic_cmpxchg_release(v, old, new) atomic_op_pick(atomic,cmpxchg,_release,v)(v, old, new)

/**
 * atomic_cmpxchg_unchecked_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 * @old: int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_cmpxchg_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_cmpxchg_unchecked_relaxed(atomic_unchecked_t *v, int old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_cmpxchg_unchecked_relaxed(v, old, new);
}
#define atomic_cmpxchg_relaxed(v, old, new) atomic_op_pick(atomic,cmpxchg,_relaxed,v)(v, old, new)

/**
 * atomic_try_cmpxchg() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg(atomic_t *v, int *old, int new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg(v, old, new);
}

/**
 * atomic_try_cmpxchg_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_acquire() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg_acquire(v, old, new);
}

/**
 * atomic_try_cmpxchg_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_release() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg_release(atomic_t *v, int *old, int new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg_release(v, old, new);
}

/**
 * atomic_try_cmpxchg_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_relaxed() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg_relaxed(v, old, new);
}

/**
 * atomic_try_cmpxchg_unchecked() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_unchecked_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_unchecked() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg_unchecked(atomic_unchecked_t *v, int *old, int new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg_unchecked(v, old, new);
}
#define atomic_try_cmpxchg(v, old, new) atomic_op_pick(atomic,try_cmpxchg,,v)(v, old, new)

/**
 * atomic_try_cmpxchg_unchecked_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_unchecked_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_unchecked_acquire() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg_unchecked_acquire(atomic_unchecked_t *v, int *old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg_unchecked_acquire(v, old, new);
}
#define atomic_try_cmpxchg_acquire(v, old, new) atomic_op_pick(atomic,try_cmpxchg,_acquire,v)(v, old, new)

/**
 * atomic_try_cmpxchg_unchecked_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_unchecked_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_unchecked_release() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg_unchecked_release(atomic_unchecked_t *v, int *old, int new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg_unchecked_release(v, old, new);
}
#define atomic_try_cmpxchg_release(v, old, new) atomic_op_pick(atomic,try_cmpxchg,_release,v)(v, old, new)

/**
 * atomic_try_cmpxchg_unchecked_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_unchecked_t
 * @old: pointer to int value to compare with
 * @new: int value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_unchecked_relaxed() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_try_cmpxchg_unchecked_relaxed(atomic_unchecked_t *v, int *old, int new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_try_cmpxchg_unchecked_relaxed(v, old, new);
}
#define atomic_try_cmpxchg_relaxed(v, old, new) atomic_op_pick(atomic,try_cmpxchg,_relaxed,v)(v, old, new)

/**
 * atomic_sub_and_test() - atomic subtract and test if zero with full ordering
 * @i: int value to subtract
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_sub_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_sub_and_test(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_sub_and_test(i, v);
}

/**
 * atomic_dec_and_test() - atomic decrement and test if zero with full ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_dec_and_test(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_and_test(v);
}

/**
 * atomic_dec_and_test_unchecked() - atomic decrement and test if zero with full ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_and_test_unchecked() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_dec_and_test_unchecked(atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_and_test_unchecked(v);
}
#define atomic_dec_and_test(v) atomic_op_pick(atomic,dec_and_test,,v)(v)

/**
 * atomic_inc_and_test() - atomic increment and test if zero with full ordering
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_inc_and_test(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_and_test(v);
}

/**
 * atomic_inc_and_test_unchecked() - atomic increment and test if zero with full ordering
 * @v: pointer to atomic_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_and_test_unchecked() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_inc_and_test_unchecked(atomic_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_and_test_unchecked(v);
}
#define atomic_inc_and_test(v) atomic_op_pick(atomic,inc_and_test,,v)(v)

/**
 * atomic_add_negative() - atomic add and test if negative with full ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_negative() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_add_negative(int i, atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_negative(i, v);
}

/**
 * atomic_add_negative_acquire() - atomic add and test if negative with acquire ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_negative_acquire() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_add_negative_acquire(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_negative_acquire(i, v);
}

/**
 * atomic_add_negative_release() - atomic add and test if negative with release ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_negative_release() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_add_negative_release(int i, atomic_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_negative_release(i, v);
}

/**
 * atomic_add_negative_relaxed() - atomic add and test if negative with relaxed ordering
 * @i: int value to add
 * @v: pointer to atomic_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_negative_relaxed() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_add_negative_relaxed(int i, atomic_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_negative_relaxed(i, v);
}

/**
 * atomic_fetch_add_unless() - atomic add unless value with full ordering
 * @v: pointer to atomic_t
 * @a: int value to add
 * @u: int value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_unless() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_unless(atomic_t *v, int a, int u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_unless(v, a, u);
}

/**
 * atomic_add_unless() - atomic add unless value with full ordering
 * @v: pointer to atomic_t
 * @a: int value to add
 * @u: int value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_unless() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_add_unless(atomic_t *v, int a, int u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_unless(v, a, u);
}

/**
 * atomic_fetch_add_unless_unchecked() - atomic add unless value with full ordering
 * @v: pointer to atomic_unchecked_t
 * @a: int value to add
 * @u: int value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_fetch_add_unless_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow int
atomic_fetch_add_unless_unchecked(atomic_unchecked_t *v, int a, int u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_fetch_add_unless_unchecked(v, a, u);
}
#define atomic_fetch_add_unless(v, a, u) atomic_op_pick(atomic,fetch_add_unless,,v)(v, a, u)

/**
 * atomic_add_unless_unchecked() - atomic add unless value with full ordering
 * @v: pointer to atomic_unchecked_t
 * @a: int value to add
 * @u: int value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_add_unless_unchecked() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_add_unless_unchecked(atomic_unchecked_t *v, int a, int u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_add_unless_unchecked(v, a, u);
}
#define atomic_add_unless(v, a, u) atomic_op_pick(atomic,add_unless,,v)(v, a, u)

/**
 * atomic_inc_not_zero() - atomic increment unless zero with full ordering
 * @v: pointer to atomic_t
 *
 * If (@v != 0), atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_not_zero() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_inc_not_zero(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_not_zero(v);
}

/**
 * atomic_inc_unless_negative() - atomic increment unless negative with full ordering
 * @v: pointer to atomic_t
 *
 * If (@v >= 0), atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_inc_unless_negative() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_inc_unless_negative(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_inc_unless_negative(v);
}

/**
 * atomic_dec_unless_positive() - atomic decrement unless positive with full ordering
 * @v: pointer to atomic_t
 *
 * If (@v <= 0), atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_unless_positive() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_dec_unless_positive(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_unless_positive(v);
}

/**
 * atomic_dec_if_positive() - atomic decrement if positive with full ordering
 * @v: pointer to atomic_t
 *
 * If (@v > 0), atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_dec_if_positive() there.
 *
 * Return: The old value of (@v - 1), regardless of whether @v was updated.
 */
static __always_inline __turn_off_size_overflow int
atomic_dec_if_positive(atomic_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_dec_if_positive(v);
}

/**
 * atomic64_read() - atomic load with relaxed ordering
 * @v: pointer to atomic64_t
 *
 * Atomically loads the value of @v with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_read() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_read(const atomic64_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic64_read(v);
}

/**
 * atomic64_read_acquire() - atomic load with acquire ordering
 * @v: pointer to atomic64_t
 *
 * Atomically loads the value of @v with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_read_acquire() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_read_acquire(const atomic64_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic64_read_acquire(v);
}

/**
 * atomic64_read_unchecked() - atomic load with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically loads the value of @v with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_read_unchecked() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_read_unchecked(const atomic64_unchecked_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic64_read_unchecked(v);
}
#define atomic64_read(v) atomic64_op_pick(atomic64,read,,v)(v)

/**
 * atomic64_read_unchecked_acquire() - atomic load with acquire ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically loads the value of @v with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_read_unchecked_acquire() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_read_unchecked_acquire(const atomic64_unchecked_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic64_read_unchecked_acquire(v);
}
#define atomic64_read_acquire(v) atomic64_op_pick(atomic64,read,_acquire,v)(v)

/**
 * atomic64_set() - atomic set with relaxed ordering
 * @v: pointer to atomic64_t
 * @i: s64 value to assign
 *
 * Atomically sets @v to @i with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_set() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_set(atomic64_t *v, s64 i)
{
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic64_set(v, i);
}

/**
 * atomic64_set_release() - atomic set with release ordering
 * @v: pointer to atomic64_t
 * @i: s64 value to assign
 *
 * Atomically sets @v to @i with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_set_release() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_set_release(atomic64_t *v, s64 i)
{
    kcsan_release();
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic64_set_release(v, i);
}

/**
 * atomic64_set_unchecked() - atomic set with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 * @i: s64 value to assign
 *
 * Atomically sets @v to @i with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_set_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_set_unchecked(atomic64_unchecked_t *v, s64 i)
{
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic64_set_unchecked(v, i);
}
#define atomic64_set(v, i) atomic64_op_pick(atomic64,set,,v)(v, i)

/**
 * atomic64_set_unchecked_release() - atomic set with release ordering
 * @v: pointer to atomic64_unchecked_t
 * @i: s64 value to assign
 *
 * Atomically sets @v to @i with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_set_unchecked_release() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_set_unchecked_release(atomic64_unchecked_t *v, s64 i)
{
    kcsan_release();
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic64_set_unchecked_release(v, i);
}
#define atomic64_set_release(v, i) atomic64_op_pick(atomic64,set,_release,v)(v, i)

/**
 * atomic64_add() - atomic add with relaxed ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_add(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_add(i, v);
}

/**
 * atomic64_add_return() - atomic add with full ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return(i, v);
}

/**
 * atomic64_add_return_acquire() - atomic add with acquire ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return_acquire(i, v);
}

/**
 * atomic64_add_return_release() - atomic add with release ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return_release(i, v);
}

/**
 * atomic64_add_return_relaxed() - atomic add with relaxed ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return_relaxed(i, v);
}

/**
 * atomic64_fetch_add() - atomic add with full ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add(i, v);
}

/**
 * atomic64_fetch_add_acquire() - atomic add with acquire ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_acquire(i, v);
}

/**
 * atomic64_fetch_add_release() - atomic add with release ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_release(i, v);
}

/**
 * atomic64_fetch_add_relaxed() - atomic add with relaxed ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_relaxed(i, v);
}

/**
 * atomic64_add_unchecked() - atomic add with relaxed ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_add_unchecked(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_add_unchecked(i, v);
}
#define atomic64_add(i, v) atomic64_op_pick(atomic64,add,,v)(i, v)

/**
 * atomic64_add_return_unchecked() - atomic add with full ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return_unchecked(s64 i, atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return_unchecked(i, v);
}
#define atomic64_add_return(i, v) atomic64_op_pick(atomic64,add_return,,v)(i, v)

/**
 * atomic64_add_return_unchecked_acquire() - atomic add with acquire ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return_unchecked_acquire(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return_unchecked_acquire(i, v);
}
#define atomic64_add_return_acquire(i, v) atomic64_op_pick(atomic64,add_return,_acquire,v)(i, v)

/**
 * atomic64_add_return_unchecked_release() - atomic add with release ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return_unchecked_release(s64 i, atomic64_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return_unchecked_release(i, v);
}
#define atomic64_add_return_release(i, v) atomic64_op_pick(atomic64,add_return,_release,v)(i, v)

/**
 * atomic64_add_return_unchecked_relaxed() - atomic add with relaxed ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_add_return_unchecked_relaxed(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_return_unchecked_relaxed(i, v);
}
#define atomic64_add_return_relaxed(i, v) atomic64_op_pick(atomic64,add_return,_relaxed,v)(i, v)

/**
 * atomic64_fetch_add_unchecked() - atomic add with full ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_unchecked(s64 i, atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_unchecked(i, v);
}
#define atomic64_fetch_add(i, v) atomic64_op_pick(atomic64,fetch_add,,v)(i, v)

/**
 * atomic64_fetch_add_unchecked_acquire() - atomic add with acquire ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_unchecked_acquire(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_unchecked_acquire(i, v);
}
#define atomic64_fetch_add_acquire(i, v) atomic64_op_pick(atomic64,fetch_add,_acquire,v)(i, v)

/**
 * atomic64_fetch_add_unchecked_release() - atomic add with release ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_unchecked_release(s64 i, atomic64_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_unchecked_release(i, v);
}
#define atomic64_fetch_add_release(i, v) atomic64_op_pick(atomic64,fetch_add,_release,v)(i, v)

/**
 * atomic64_fetch_add_unchecked_relaxed() - atomic add with relaxed ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_unchecked_relaxed(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_unchecked_relaxed(i, v);
}
#define atomic64_fetch_add_relaxed(i, v) atomic64_op_pick(atomic64,fetch_add,_relaxed,v)(i, v)

/**
 * atomic64_sub() - atomic subtract with relaxed ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_sub(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_sub(i, v);
}

/**
 * atomic64_sub_return() - atomic subtract with full ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return(i, v);
}

/**
 * atomic64_sub_return_acquire() - atomic subtract with acquire ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return_acquire(i, v);
}

/**
 * atomic64_sub_return_release() - atomic subtract with release ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return_release(i, v);
}

/**
 * atomic64_sub_return_relaxed() - atomic subtract with relaxed ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return_relaxed(i, v);
}

/**
 * atomic64_fetch_sub() - atomic subtract with full ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_sub() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_sub(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_sub(i, v);
}

/**
 * atomic64_fetch_sub_acquire() - atomic subtract with acquire ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_sub_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_sub_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_sub_acquire(i, v);
}

/**
 * atomic64_fetch_sub_release() - atomic subtract with release ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_sub_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_sub_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_sub_release(i, v);
}

/**
 * atomic64_fetch_sub_relaxed() - atomic subtract with relaxed ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_sub_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_sub_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_sub_relaxed(i, v);
}

/**
 * atomic64_sub_unchecked() - atomic subtract with relaxed ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_sub_unchecked(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_sub_unchecked(i, v);
}
#define atomic64_sub(i, v) atomic64_op_pick(atomic64,sub,,v)(i, v)

/**
 * atomic64_sub_return_unchecked() - atomic subtract with full ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return_unchecked(s64 i, atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return_unchecked(i, v);
}
#define atomic64_sub_return(i, v) atomic64_op_pick(atomic64,sub_return,,v)(i, v)

/**
 * atomic64_sub_return_unchecked_acquire() - atomic subtract with acquire ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return_unchecked_acquire(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return_unchecked_acquire(i, v);
}
#define atomic64_sub_return_acquire(i, v) atomic64_op_pick(atomic64,sub_return,_acquire,v)(i, v)

/**
 * atomic64_sub_return_unchecked_release() - atomic subtract with release ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return_unchecked_release(s64 i, atomic64_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return_unchecked_release(i, v);
}
#define atomic64_sub_return_release(i, v) atomic64_op_pick(atomic64,sub_return,_release,v)(i, v)

/**
 * atomic64_sub_return_unchecked_relaxed() - atomic subtract with relaxed ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_sub_return_unchecked_relaxed(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_return_unchecked_relaxed(i, v);
}
#define atomic64_sub_return_relaxed(i, v) atomic64_op_pick(atomic64,sub_return,_relaxed,v)(i, v)

/**
 * atomic64_inc() - atomic increment with relaxed ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_inc(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_inc(v);
}

/**
 * atomic64_inc_return() - atomic increment with full ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return(v);
}

/**
 * atomic64_inc_return_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return_acquire(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return_acquire(v);
}

/**
 * atomic64_inc_return_release() - atomic increment with release ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return_release(atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return_release(v);
}

/**
 * atomic64_inc_return_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return_relaxed(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return_relaxed(v);
}

/**
 * atomic64_fetch_inc() - atomic increment with full ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc(v);
}

/**
 * atomic64_fetch_inc_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc_acquire(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc_acquire(v);
}

/**
 * atomic64_fetch_inc_release() - atomic increment with release ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc_release(atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc_release(v);
}

/**
 * atomic64_fetch_inc_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc_relaxed(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc_relaxed(v);
}

/**
 * atomic64_inc_unchecked() - atomic increment with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_inc_unchecked(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_inc_unchecked(v);
}
#define atomic64_inc(v) atomic64_op_pick(atomic64,inc,,v)(v)

/**
 * atomic64_inc_return_unchecked() - atomic increment with full ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return_unchecked(atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return_unchecked(v);
}
#define atomic64_inc_return(v) atomic64_op_pick(atomic64,inc_return,,v)(v)

/**
 * atomic64_inc_return_unchecked_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return_unchecked_acquire(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return_unchecked_acquire(v);
}
#define atomic64_inc_return_acquire(v) atomic64_op_pick(atomic64,inc_return,_acquire,v)(v)

/**
 * atomic64_inc_return_unchecked_release() - atomic increment with release ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return_unchecked_release(atomic64_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return_unchecked_release(v);
}
#define atomic64_inc_return_release(v) atomic64_op_pick(atomic64,inc_return,_release,v)(v)

/**
 * atomic64_inc_return_unchecked_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_inc_return_unchecked_relaxed(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_return_unchecked_relaxed(v);
}
#define atomic64_inc_return_relaxed(v) atomic64_op_pick(atomic64,inc_return,_relaxed,v)(v)

/**
 * atomic64_fetch_inc_unchecked() - atomic increment with full ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc_unchecked(atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc_unchecked(v);
}
#define atomic64_fetch_inc(v) atomic64_op_pick(atomic64,fetch_inc,,v)(v)

/**
 * atomic64_fetch_inc_unchecked_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc_unchecked_acquire(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc_unchecked_acquire(v);
}
#define atomic64_fetch_inc_acquire(v) atomic64_op_pick(atomic64,fetch_inc,_acquire,v)(v)

/**
 * atomic64_fetch_inc_unchecked_release() - atomic increment with release ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc_unchecked_release(atomic64_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc_unchecked_release(v);
}
#define atomic64_fetch_inc_release(v) atomic64_op_pick(atomic64,fetch_inc,_release,v)(v)

/**
 * atomic64_fetch_inc_unchecked_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_inc_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_inc_unchecked_relaxed(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_inc_unchecked_relaxed(v);
}
#define atomic64_fetch_inc_relaxed(v) atomic64_op_pick(atomic64,fetch_inc,_relaxed,v)(v)

/**
 * atomic64_dec() - atomic decrement with relaxed ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_dec(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_dec(v);
}

/**
 * atomic64_dec_return() - atomic decrement with full ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return(v);
}

/**
 * atomic64_dec_return_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return_acquire(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return_acquire(v);
}

/**
 * atomic64_dec_return_release() - atomic decrement with release ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return_release(atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return_release(v);
}

/**
 * atomic64_dec_return_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return_relaxed(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return_relaxed(v);
}

/**
 * atomic64_fetch_dec() - atomic decrement with full ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_dec() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_dec(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_dec(v);
}

/**
 * atomic64_fetch_dec_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_dec_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_dec_acquire(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_dec_acquire(v);
}

/**
 * atomic64_fetch_dec_release() - atomic decrement with release ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_dec_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_dec_release(atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_dec_release(v);
}

/**
 * atomic64_fetch_dec_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_dec_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_dec_relaxed(atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_dec_relaxed(v);
}

/**
 * atomic64_dec_unchecked() - atomic decrement with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_dec_unchecked(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_dec_unchecked(v);
}
#define atomic64_dec(v) atomic64_op_pick(atomic64,dec,,v)(v)

/**
 * atomic64_dec_return_unchecked() - atomic decrement with full ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return_unchecked(atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return_unchecked(v);
}
#define atomic64_dec_return(v) atomic64_op_pick(atomic64,dec_return,,v)(v)

/**
 * atomic64_dec_return_unchecked_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return_unchecked_acquire(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return_unchecked_acquire(v);
}
#define atomic64_dec_return_acquire(v) atomic64_op_pick(atomic64,dec_return,_acquire,v)(v)

/**
 * atomic64_dec_return_unchecked_release() - atomic decrement with release ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return_unchecked_release(atomic64_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return_unchecked_release(v);
}
#define atomic64_dec_return_release(v) atomic64_op_pick(atomic64,dec_return,_release,v)(v)

/**
 * atomic64_dec_return_unchecked_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_return_unchecked_relaxed(atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_return_unchecked_relaxed(v);
}
#define atomic64_dec_return_relaxed(v) atomic64_op_pick(atomic64,dec_return,_relaxed,v)(v)

/**
 * atomic64_and() - atomic bitwise AND with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_and() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_and(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_and(i, v);
}

/**
 * atomic64_fetch_and() - atomic bitwise AND with full ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_and() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_and(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_and(i, v);
}

/**
 * atomic64_fetch_and_acquire() - atomic bitwise AND with acquire ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_and_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_and_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_and_acquire(i, v);
}

/**
 * atomic64_fetch_and_release() - atomic bitwise AND with release ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_and_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_and_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_and_release(i, v);
}

/**
 * atomic64_fetch_and_relaxed() - atomic bitwise AND with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_and_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_and_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_and_relaxed(i, v);
}

/**
 * atomic64_andnot() - atomic bitwise AND NOT with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_andnot() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_andnot(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_andnot(i, v);
}

/**
 * atomic64_fetch_andnot() - atomic bitwise AND NOT with full ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & ~@i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_andnot() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_andnot(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_andnot(i, v);
}

/**
 * atomic64_fetch_andnot_acquire() - atomic bitwise AND NOT with acquire ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & ~@i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_andnot_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_andnot_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_andnot_acquire(i, v);
}

/**
 * atomic64_fetch_andnot_release() - atomic bitwise AND NOT with release ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & ~@i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_andnot_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_andnot_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_andnot_release(i, v);
}

/**
 * atomic64_fetch_andnot_relaxed() - atomic bitwise AND NOT with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_andnot_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_andnot_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_andnot_relaxed(i, v);
}

/**
 * atomic64_andnot_unchecked() - atomic bitwise AND NOT with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_andnot_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_andnot_unchecked(s64 i, atomic64_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_andnot_unchecked(i, v);
}
#define atomic64_andnot(i, v) atomic64_op_pick(atomic64,andnot,,v)(i, v)

/**
 * atomic64_or() - atomic bitwise OR with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v | @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_or() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_or(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_or(i, v);
}

/**
 * atomic64_fetch_or() - atomic bitwise OR with full ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v | @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_or() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_or(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_or(i, v);
}

/**
 * atomic64_fetch_or_acquire() - atomic bitwise OR with acquire ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v | @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_or_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_or_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_or_acquire(i, v);
}

/**
 * atomic64_fetch_or_release() - atomic bitwise OR with release ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v | @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_or_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_or_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_or_release(i, v);
}

/**
 * atomic64_fetch_or_relaxed() - atomic bitwise OR with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v | @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_or_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_or_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_or_relaxed(i, v);
}

/**
 * atomic64_xor() - atomic bitwise XOR with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xor() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic64_xor(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic64_xor(i, v);
}

/**
 * atomic64_fetch_xor() - atomic bitwise XOR with full ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v ^ @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_xor() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_xor(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_xor(i, v);
}

/**
 * atomic64_fetch_xor_acquire() - atomic bitwise XOR with acquire ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v ^ @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_xor_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_xor_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_xor_acquire(i, v);
}

/**
 * atomic64_fetch_xor_release() - atomic bitwise XOR with release ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v ^ @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_xor_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_xor_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_xor_release(i, v);
}

/**
 * atomic64_fetch_xor_relaxed() - atomic bitwise XOR with relaxed ordering
 * @i: s64 value
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_xor_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_xor_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_xor_relaxed(i, v);
}

/**
 * atomic64_xchg() - atomic exchange with full ordering
 * @v: pointer to atomic64_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg(atomic64_t *v, s64 new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg(v, new);
}

/**
 * atomic64_xchg_acquire() - atomic exchange with acquire ordering
 * @v: pointer to atomic64_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg_acquire(atomic64_t *v, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg_acquire(v, new);
}

/**
 * atomic64_xchg_release() - atomic exchange with release ordering
 * @v: pointer to atomic64_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg_release(atomic64_t *v, s64 new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg_release(v, new);
}

/**
 * atomic64_xchg_relaxed() - atomic exchange with relaxed ordering
 * @v: pointer to atomic64_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg_relaxed(atomic64_t *v, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg_relaxed(v, new);
}

/**
 * atomic64_xchg_unchecked() - atomic exchange with full ordering
 * @v: pointer to atomic64_unchecked_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg_unchecked(atomic64_unchecked_t *v, s64 new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg_unchecked(v, new);
}
#define atomic64_xchg(v, new) atomic64_op_pick(atomic64,xchg,,v)(v, new)

/**
 * atomic64_xchg_unchecked_acquire() - atomic exchange with acquire ordering
 * @v: pointer to atomic64_unchecked_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg_unchecked_acquire(atomic64_unchecked_t *v, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg_unchecked_acquire(v, new);
}
#define atomic64_xchg_acquire(v, new) atomic64_op_pick(atomic64,xchg,_acquire,v)(v, new)

/**
 * atomic64_xchg_unchecked_release() - atomic exchange with release ordering
 * @v: pointer to atomic64_unchecked_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg_unchecked_release(atomic64_unchecked_t *v, s64 new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg_unchecked_release(v, new);
}
#define atomic64_xchg_release(v, new) atomic64_op_pick(atomic64,xchg,_release,v)(v, new)

/**
 * atomic64_xchg_unchecked_relaxed() - atomic exchange with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 * @new: s64 value to assign
 *
 * Atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_xchg_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_xchg_unchecked_relaxed(atomic64_unchecked_t *v, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_xchg_unchecked_relaxed(v, new);
}
#define atomic64_xchg_relaxed(v, new) atomic64_op_pick(atomic64,xchg,_relaxed,v)(v, new)

/**
 * atomic64_cmpxchg() - atomic compare and exchange with full ordering
 * @v: pointer to atomic64_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg(atomic64_t *v, s64 old, s64 new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg(v, old, new);
}

/**
 * atomic64_cmpxchg_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic64_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg_acquire(atomic64_t *v, s64 old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg_acquire(v, old, new);
}

/**
 * atomic64_cmpxchg_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic64_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg_release(atomic64_t *v, s64 old, s64 new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg_release(v, old, new);
}

/**
 * atomic64_cmpxchg_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic64_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg_relaxed(atomic64_t *v, s64 old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg_relaxed(v, old, new);
}

/**
 * atomic64_cmpxchg_unchecked() - atomic compare and exchange with full ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg_unchecked(atomic64_unchecked_t *v, s64 old, s64 new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg_unchecked(v, old, new);
}
#define atomic64_cmpxchg(v, old, new) atomic64_op_pick(atomic64,cmpxchg,,v)(v, old, new)

/**
 * atomic64_cmpxchg_unchecked_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg_unchecked_acquire(atomic64_unchecked_t *v, s64 old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg_unchecked_acquire(v, old, new);
}
#define atomic64_cmpxchg_acquire(v, old, new) atomic64_op_pick(atomic64,cmpxchg,_acquire,v)(v, old, new)

/**
 * atomic64_cmpxchg_unchecked_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg_unchecked_release(atomic64_unchecked_t *v, s64 old, s64 new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg_unchecked_release(v, old, new);
}
#define atomic64_cmpxchg_release(v, old, new) atomic64_op_pick(atomic64,cmpxchg,_release,v)(v, old, new)

/**
 * atomic64_cmpxchg_unchecked_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_cmpxchg_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_cmpxchg_unchecked_relaxed(atomic64_unchecked_t *v, s64 old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_cmpxchg_unchecked_relaxed(v, old, new);
}
#define atomic64_cmpxchg_relaxed(v, old, new) atomic64_op_pick(atomic64,cmpxchg,_relaxed,v)(v, old, new)

/**
 * atomic64_try_cmpxchg() - atomic compare and exchange with full ordering
 * @v: pointer to atomic64_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg(v, old, new);
}

/**
 * atomic64_try_cmpxchg_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic64_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_acquire() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg_acquire(atomic64_t *v, s64 *old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg_acquire(v, old, new);
}

/**
 * atomic64_try_cmpxchg_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic64_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_release() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg_release(atomic64_t *v, s64 *old, s64 new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg_release(v, old, new);
}

/**
 * atomic64_try_cmpxchg_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic64_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_relaxed() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg_relaxed(v, old, new);
}

/**
 * atomic64_try_cmpxchg_unchecked() - atomic compare and exchange with full ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_unchecked() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg_unchecked(atomic64_unchecked_t *v, s64 *old, s64 new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg_unchecked(v, old, new);
}
#define atomic64_try_cmpxchg(v, old, new) atomic64_op_pick(atomic64,try_cmpxchg,,v)(v, old, new)

/**
 * atomic64_try_cmpxchg_unchecked_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_unchecked_acquire() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg_unchecked_acquire(atomic64_unchecked_t *v, s64 *old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg_unchecked_acquire(v, old, new);
}
#define atomic64_try_cmpxchg_acquire(v, old, new) atomic64_op_pick(atomic64,try_cmpxchg,_acquire,v)(v, old, new)

/**
 * atomic64_try_cmpxchg_unchecked_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_unchecked_release() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg_unchecked_release(atomic64_unchecked_t *v, s64 *old, s64 new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg_unchecked_release(v, old, new);
}
#define atomic64_try_cmpxchg_release(v, old, new) atomic64_op_pick(atomic64,try_cmpxchg,_release,v)(v, old, new)

/**
 * atomic64_try_cmpxchg_unchecked_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic64_unchecked_t
 * @old: pointer to s64 value to compare with
 * @new: s64 value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_unchecked_relaxed() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_try_cmpxchg_unchecked_relaxed(atomic64_unchecked_t *v, s64 *old, s64 new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic64_try_cmpxchg_unchecked_relaxed(v, old, new);
}
#define atomic64_try_cmpxchg_relaxed(v, old, new) atomic64_op_pick(atomic64,try_cmpxchg,_relaxed,v)(v, old, new)

/**
 * atomic64_sub_and_test() - atomic subtract and test if zero with full ordering
 * @i: s64 value to subtract
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_sub_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_sub_and_test(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_sub_and_test(i, v);
}

/**
 * atomic64_dec_and_test() - atomic decrement and test if zero with full ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_dec_and_test(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_and_test(v);
}

/**
 * atomic64_dec_and_test_unchecked() - atomic decrement and test if zero with full ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_and_test_unchecked() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_dec_and_test_unchecked(atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_and_test_unchecked(v);
}
#define atomic64_dec_and_test(v) atomic64_op_pick(atomic64,dec_and_test,,v)(v)

/**
 * atomic64_inc_and_test() - atomic increment and test if zero with full ordering
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_inc_and_test(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_and_test(v);
}

/**
 * atomic64_inc_and_test_unchecked() - atomic increment and test if zero with full ordering
 * @v: pointer to atomic64_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_and_test_unchecked() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_inc_and_test_unchecked(atomic64_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_and_test_unchecked(v);
}
#define atomic64_inc_and_test(v) atomic64_op_pick(atomic64,inc_and_test,,v)(v)

/**
 * atomic64_add_negative() - atomic add and test if negative with full ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_negative() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_add_negative(s64 i, atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_negative(i, v);
}

/**
 * atomic64_add_negative_acquire() - atomic add and test if negative with acquire ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_negative_acquire() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_add_negative_acquire(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_negative_acquire(i, v);
}

/**
 * atomic64_add_negative_release() - atomic add and test if negative with release ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_negative_release() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_add_negative_release(s64 i, atomic64_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_negative_release(i, v);
}

/**
 * atomic64_add_negative_relaxed() - atomic add and test if negative with relaxed ordering
 * @i: s64 value to add
 * @v: pointer to atomic64_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_negative_relaxed() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_add_negative_relaxed(s64 i, atomic64_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_negative_relaxed(i, v);
}

/**
 * atomic64_fetch_add_unless() - atomic add unless value with full ordering
 * @v: pointer to atomic64_t
 * @a: s64 value to add
 * @u: s64 value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_unless() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_unless(v, a, u);
}

/**
 * atomic64_add_unless() - atomic add unless value with full ordering
 * @v: pointer to atomic64_t
 * @a: s64 value to add
 * @u: s64 value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_unless() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_add_unless(atomic64_t *v, s64 a, s64 u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_unless(v, a, u);
}

/**
 * atomic64_fetch_add_unless_unchecked() - atomic add unless value with full ordering
 * @v: pointer to atomic64_unchecked_t
 * @a: s64 value to add
 * @u: s64 value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_fetch_add_unless_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_fetch_add_unless_unchecked(atomic64_unchecked_t *v, s64 a, s64 u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_fetch_add_unless_unchecked(v, a, u);
}
#define atomic64_fetch_add_unless(v, a, u) atomic64_op_pick(atomic64,fetch_add_unless,,v)(v, a, u)

/**
 * atomic64_add_unless_unchecked() - atomic add unless value with full ordering
 * @v: pointer to atomic64_unchecked_t
 * @a: s64 value to add
 * @u: s64 value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_add_unless_unchecked() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_add_unless_unchecked(atomic64_unchecked_t *v, s64 a, s64 u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_add_unless_unchecked(v, a, u);
}
#define atomic64_add_unless(v, a, u) atomic64_op_pick(atomic64,add_unless,,v)(v, a, u)

/**
 * atomic64_inc_not_zero() - atomic increment unless zero with full ordering
 * @v: pointer to atomic64_t
 *
 * If (@v != 0), atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_not_zero() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_inc_not_zero(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_not_zero(v);
}

/**
 * atomic64_inc_unless_negative() - atomic increment unless negative with full ordering
 * @v: pointer to atomic64_t
 *
 * If (@v >= 0), atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_inc_unless_negative() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_inc_unless_negative(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_inc_unless_negative(v);
}

/**
 * atomic64_dec_unless_positive() - atomic decrement unless positive with full ordering
 * @v: pointer to atomic64_t
 *
 * If (@v <= 0), atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_unless_positive() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic64_dec_unless_positive(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_unless_positive(v);
}

/**
 * atomic64_dec_if_positive() - atomic decrement if positive with full ordering
 * @v: pointer to atomic64_t
 *
 * If (@v > 0), atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic64_dec_if_positive() there.
 *
 * Return: The old value of (@v - 1), regardless of whether @v was updated.
 */
static __always_inline __turn_off_size_overflow s64
atomic64_dec_if_positive(atomic64_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic64_dec_if_positive(v);
}

/**
 * atomic_long_read() - atomic load with relaxed ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically loads the value of @v with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_read() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_read(const atomic_long_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_long_read(v);
}

/**
 * atomic_long_read_acquire() - atomic load with acquire ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically loads the value of @v with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_read_acquire() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_read_acquire(const atomic_long_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_long_read_acquire(v);
}

/**
 * atomic_long_read_unchecked() - atomic load with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically loads the value of @v with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_read_unchecked() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_read_unchecked(const atomic_long_unchecked_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_long_read_unchecked(v);
}
#define atomic_long_read(v) atomic_long_op_pick(atomic_long,read,,v)(v)

/**
 * atomic_long_read_unchecked_acquire() - atomic load with acquire ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically loads the value of @v with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_read_unchecked_acquire() there.
 *
 * Return: The value loaded from @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_read_unchecked_acquire(const atomic_long_unchecked_t *v)
{
    instrument_atomic_read(v, sizeof(*v));
    return raw_atomic_long_read_unchecked_acquire(v);
}
#define atomic_long_read_acquire(v) atomic_long_op_pick(atomic_long,read,_acquire,v)(v)

/**
 * atomic_long_set() - atomic set with relaxed ordering
 * @v: pointer to atomic_long_t
 * @i: long value to assign
 *
 * Atomically sets @v to @i with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_set() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_set(atomic_long_t *v, long i)
{
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_long_set(v, i);
}

/**
 * atomic_long_set_release() - atomic set with release ordering
 * @v: pointer to atomic_long_t
 * @i: long value to assign
 *
 * Atomically sets @v to @i with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_set_release() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_set_release(atomic_long_t *v, long i)
{
    kcsan_release();
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_long_set_release(v, i);
}

/**
 * atomic_long_set_unchecked() - atomic set with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 * @i: long value to assign
 *
 * Atomically sets @v to @i with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_set_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_set_unchecked(atomic_long_unchecked_t *v, long i)
{
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_long_set_unchecked(v, i);
}
#define atomic_long_set(v, i) atomic_long_op_pick(atomic_long,set,,v)(v, i)

/**
 * atomic_long_set_unchecked_release() - atomic set with release ordering
 * @v: pointer to atomic_long_unchecked_t
 * @i: long value to assign
 *
 * Atomically sets @v to @i with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_set_unchecked_release() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_set_unchecked_release(atomic_long_unchecked_t *v, long i)
{
    kcsan_release();
    instrument_atomic_write(v, sizeof(*v));
    raw_atomic_long_set_unchecked_release(v, i);
}
#define atomic_long_set_release(v, i) atomic_long_op_pick(atomic_long,set,_release,v)(v, i)

/**
 * atomic_long_add() - atomic add with relaxed ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_add(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_add(i, v);
}

/**
 * atomic_long_add_return() - atomic add with full ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return(i, v);
}

/**
 * atomic_long_add_return_acquire() - atomic add with acquire ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return_acquire(i, v);
}

/**
 * atomic_long_add_return_release() - atomic add with release ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return_release(i, v);
}

/**
 * atomic_long_add_return_relaxed() - atomic add with relaxed ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return_relaxed(i, v);
}

/**
 * atomic_long_fetch_add() - atomic add with full ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add(i, v);
}

/**
 * atomic_long_fetch_add_acquire() - atomic add with acquire ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_acquire(i, v);
}

/**
 * atomic_long_fetch_add_release() - atomic add with release ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_release(i, v);
}

/**
 * atomic_long_fetch_add_relaxed() - atomic add with relaxed ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_relaxed(i, v);
}

/**
 * atomic_long_add_unchecked() - atomic add with relaxed ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_add_unchecked(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_add_unchecked(i, v);
}
#define atomic_long_add(i, v) atomic_long_op_pick(atomic_long,add,,v)(i, v)

/**
 * atomic_long_add_return_unchecked() - atomic add with full ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return_unchecked(long i, atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return_unchecked(i, v);
}
#define atomic_long_add_return(i, v) atomic_long_op_pick(atomic_long,add_return,,v)(i, v)

/**
 * atomic_long_add_return_unchecked_acquire() - atomic add with acquire ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return_unchecked_acquire(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return_unchecked_acquire(i, v);
}
#define atomic_long_add_return_acquire(i, v) atomic_long_op_pick(atomic_long,add_return,_acquire,v)(i, v)

/**
 * atomic_long_add_return_unchecked_release() - atomic add with release ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return_unchecked_release(long i, atomic_long_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return_unchecked_release(i, v);
}
#define atomic_long_add_return_release(i, v) atomic_long_op_pick(atomic_long,add_return,_release,v)(i, v)

/**
 * atomic_long_add_return_unchecked_relaxed() - atomic add with relaxed ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_add_return_unchecked_relaxed(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_return_unchecked_relaxed(i, v);
}
#define atomic_long_add_return_relaxed(i, v) atomic_long_op_pick(atomic_long,add_return,_relaxed,v)(i, v)

/**
 * atomic_long_fetch_add_unchecked() - atomic add with full ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_unchecked(long i, atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_unchecked(i, v);
}
#define atomic_long_fetch_add(i, v) atomic_long_op_pick(atomic_long,fetch_add,,v)(i, v)

/**
 * atomic_long_fetch_add_unchecked_acquire() - atomic add with acquire ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_unchecked_acquire(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_unchecked_acquire(i, v);
}
#define atomic_long_fetch_add_acquire(i, v) atomic_long_op_pick(atomic_long,fetch_add,_acquire,v)(i, v)

/**
 * atomic_long_fetch_add_unchecked_release() - atomic add with release ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_unchecked_release(long i, atomic_long_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_unchecked_release(i, v);
}
#define atomic_long_fetch_add_release(i, v) atomic_long_op_pick(atomic_long,fetch_add,_release,v)(i, v)

/**
 * atomic_long_fetch_add_unchecked_relaxed() - atomic add with relaxed ordering
 * @i: long value to add
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_unchecked_relaxed(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_unchecked_relaxed(i, v);
}
#define atomic_long_fetch_add_relaxed(i, v) atomic_long_op_pick(atomic_long,fetch_add,_relaxed,v)(i, v)

/**
 * atomic_long_sub() - atomic subtract with relaxed ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_sub(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_sub(i, v);
}

/**
 * atomic_long_sub_return() - atomic subtract with full ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return(i, v);
}

/**
 * atomic_long_sub_return_acquire() - atomic subtract with acquire ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return_acquire(i, v);
}

/**
 * atomic_long_sub_return_release() - atomic subtract with release ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return_release(i, v);
}

/**
 * atomic_long_sub_return_relaxed() - atomic subtract with relaxed ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return_relaxed(i, v);
}

/**
 * atomic_long_fetch_sub() - atomic subtract with full ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_sub() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_sub(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_sub(i, v);
}

/**
 * atomic_long_fetch_sub_acquire() - atomic subtract with acquire ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_sub_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_sub_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_sub_acquire(i, v);
}

/**
 * atomic_long_fetch_sub_release() - atomic subtract with release ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_sub_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_sub_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_sub_release(i, v);
}

/**
 * atomic_long_fetch_sub_relaxed() - atomic subtract with relaxed ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_sub_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_sub_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_sub_relaxed(i, v);
}

/**
 * atomic_long_sub_unchecked() - atomic subtract with relaxed ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_sub_unchecked(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_sub_unchecked(i, v);
}
#define atomic_long_sub(i, v) atomic_long_op_pick(atomic_long,sub,,v)(i, v)

/**
 * atomic_long_sub_return_unchecked() - atomic subtract with full ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return_unchecked(long i, atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return_unchecked(i, v);
}
#define atomic_long_sub_return(i, v) atomic_long_op_pick(atomic_long,sub_return,,v)(i, v)

/**
 * atomic_long_sub_return_unchecked_acquire() - atomic subtract with acquire ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return_unchecked_acquire(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return_unchecked_acquire(i, v);
}
#define atomic_long_sub_return_acquire(i, v) atomic_long_op_pick(atomic_long,sub_return,_acquire,v)(i, v)

/**
 * atomic_long_sub_return_unchecked_release() - atomic subtract with release ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return_unchecked_release(long i, atomic_long_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return_unchecked_release(i, v);
}
#define atomic_long_sub_return_release(i, v) atomic_long_op_pick(atomic_long,sub_return,_release,v)(i, v)

/**
 * atomic_long_sub_return_unchecked_relaxed() - atomic subtract with relaxed ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_sub_return_unchecked_relaxed(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_return_unchecked_relaxed(i, v);
}
#define atomic_long_sub_return_relaxed(i, v) atomic_long_op_pick(atomic_long,sub_return,_relaxed,v)(i, v)

/**
 * atomic_long_inc() - atomic increment with relaxed ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_inc(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_inc(v);
}

/**
 * atomic_long_inc_return() - atomic increment with full ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return(v);
}

/**
 * atomic_long_inc_return_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return_acquire(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return_acquire(v);
}

/**
 * atomic_long_inc_return_release() - atomic increment with release ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return_release(atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return_release(v);
}

/**
 * atomic_long_inc_return_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return_relaxed(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return_relaxed(v);
}

/**
 * atomic_long_fetch_inc() - atomic increment with full ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc(v);
}

/**
 * atomic_long_fetch_inc_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc_acquire(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc_acquire(v);
}

/**
 * atomic_long_fetch_inc_release() - atomic increment with release ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc_release(atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc_release(v);
}

/**
 * atomic_long_fetch_inc_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc_relaxed(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc_relaxed(v);
}

/**
 * atomic_long_inc_unchecked() - atomic increment with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_inc_unchecked(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_inc_unchecked(v);
}
#define atomic_long_inc(v) atomic_long_op_pick(atomic_long,inc,,v)(v)

/**
 * atomic_long_inc_return_unchecked() - atomic increment with full ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return_unchecked(atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return_unchecked(v);
}
#define atomic_long_inc_return(v) atomic_long_op_pick(atomic_long,inc_return,,v)(v)

/**
 * atomic_long_inc_return_unchecked_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return_unchecked_acquire(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return_unchecked_acquire(v);
}
#define atomic_long_inc_return_acquire(v) atomic_long_op_pick(atomic_long,inc_return,_acquire,v)(v)

/**
 * atomic_long_inc_return_unchecked_release() - atomic increment with release ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return_unchecked_release(atomic_long_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return_unchecked_release(v);
}
#define atomic_long_inc_return_release(v) atomic_long_op_pick(atomic_long,inc_return,_release,v)(v)

/**
 * atomic_long_inc_return_unchecked_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_inc_return_unchecked_relaxed(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_return_unchecked_relaxed(v);
}
#define atomic_long_inc_return_relaxed(v) atomic_long_op_pick(atomic_long,inc_return,_relaxed,v)(v)

/**
 * atomic_long_fetch_inc_unchecked() - atomic increment with full ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc_unchecked(atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc_unchecked(v);
}
#define atomic_long_fetch_inc(v) atomic_long_op_pick(atomic_long,fetch_inc,,v)(v)

/**
 * atomic_long_fetch_inc_unchecked_acquire() - atomic increment with acquire ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc_unchecked_acquire(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc_unchecked_acquire(v);
}
#define atomic_long_fetch_inc_acquire(v) atomic_long_op_pick(atomic_long,fetch_inc,_acquire,v)(v)

/**
 * atomic_long_fetch_inc_unchecked_release() - atomic increment with release ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc_unchecked_release(atomic_long_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc_unchecked_release(v);
}
#define atomic_long_fetch_inc_release(v) atomic_long_op_pick(atomic_long,fetch_inc,_release,v)(v)

/**
 * atomic_long_fetch_inc_unchecked_relaxed() - atomic increment with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_inc_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_inc_unchecked_relaxed(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_inc_unchecked_relaxed(v);
}
#define atomic_long_fetch_inc_relaxed(v) atomic_long_op_pick(atomic_long,fetch_inc,_relaxed,v)(v)

/**
 * atomic_long_dec() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_dec(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_dec(v);
}

/**
 * atomic_long_dec_return() - atomic decrement with full ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return(v);
}

/**
 * atomic_long_dec_return_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return_acquire(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return_acquire(v);
}

/**
 * atomic_long_dec_return_release() - atomic decrement with release ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return_release(atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return_release(v);
}

/**
 * atomic_long_dec_return_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return_relaxed(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return_relaxed(v);
}

/**
 * atomic_long_fetch_dec() - atomic decrement with full ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_dec() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_dec(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_dec(v);
}

/**
 * atomic_long_fetch_dec_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_dec_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_dec_acquire(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_dec_acquire(v);
}

/**
 * atomic_long_fetch_dec_release() - atomic decrement with release ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_dec_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_dec_release(atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_dec_release(v);
}

/**
 * atomic_long_fetch_dec_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_dec_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_dec_relaxed(atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_dec_relaxed(v);
}

/**
 * atomic_long_dec_unchecked() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_dec_unchecked(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_dec_unchecked(v);
}
#define atomic_long_dec(v) atomic_long_op_pick(atomic_long,dec,,v)(v)

/**
 * atomic_long_dec_return_unchecked() - atomic decrement with full ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return_unchecked() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return_unchecked(atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return_unchecked(v);
}
#define atomic_long_dec_return(v) atomic_long_op_pick(atomic_long,dec_return,,v)(v)

/**
 * atomic_long_dec_return_unchecked_acquire() - atomic decrement with acquire ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return_unchecked_acquire() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return_unchecked_acquire(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return_unchecked_acquire(v);
}
#define atomic_long_dec_return_acquire(v) atomic_long_op_pick(atomic_long,dec_return,_acquire,v)(v)

/**
 * atomic_long_dec_return_unchecked_release() - atomic decrement with release ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return_unchecked_release() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return_unchecked_release(atomic_long_unchecked_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return_unchecked_release(v);
}
#define atomic_long_dec_return_release(v) atomic_long_op_pick(atomic_long,dec_return,_release,v)(v)

/**
 * atomic_long_dec_return_unchecked_relaxed() - atomic decrement with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_return_unchecked_relaxed() there.
 *
 * Return: The updated value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_return_unchecked_relaxed(atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_return_unchecked_relaxed(v);
}
#define atomic_long_dec_return_relaxed(v) atomic_long_op_pick(atomic_long,dec_return,_relaxed,v)(v)

/**
 * atomic_long_and() - atomic bitwise AND with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_and() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_and(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_and(i, v);
}

/**
 * atomic_long_fetch_and() - atomic bitwise AND with full ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_and() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_and(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_and(i, v);
}

/**
 * atomic_long_fetch_and_acquire() - atomic bitwise AND with acquire ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_and_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_and_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_and_acquire(i, v);
}

/**
 * atomic_long_fetch_and_release() - atomic bitwise AND with release ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_and_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_and_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_and_release(i, v);
}

/**
 * atomic_long_fetch_and_relaxed() - atomic bitwise AND with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_and_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_and_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_and_relaxed(i, v);
}

/**
 * atomic_long_andnot() - atomic bitwise AND NOT with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_andnot() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_andnot(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_andnot(i, v);
}

/**
 * atomic_long_fetch_andnot() - atomic bitwise AND NOT with full ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & ~@i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_andnot() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_andnot(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_andnot(i, v);
}

/**
 * atomic_long_fetch_andnot_acquire() - atomic bitwise AND NOT with acquire ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & ~@i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_andnot_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_andnot_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_andnot_acquire(i, v);
}

/**
 * atomic_long_fetch_andnot_release() - atomic bitwise AND NOT with release ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & ~@i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_andnot_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_andnot_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_andnot_release(i, v);
}

/**
 * atomic_long_fetch_andnot_relaxed() - atomic bitwise AND NOT with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_andnot_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_andnot_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_andnot_relaxed(i, v);
}

/**
 * atomic_long_andnot_unchecked() - atomic bitwise AND NOT with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_andnot_unchecked() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_andnot_unchecked(long i, atomic_long_unchecked_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_andnot_unchecked(i, v);
}
#define atomic_long_andnot(i, v) atomic_long_op_pick(atomic_long,andnot,,v)(i, v)

/**
 * atomic_long_or() - atomic bitwise OR with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v | @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_or() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_or(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_or(i, v);
}

/**
 * atomic_long_fetch_or() - atomic bitwise OR with full ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v | @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_or() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_or(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_or(i, v);
}

/**
 * atomic_long_fetch_or_acquire() - atomic bitwise OR with acquire ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v | @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_or_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_or_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_or_acquire(i, v);
}

/**
 * atomic_long_fetch_or_release() - atomic bitwise OR with release ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v | @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_or_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_or_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_or_release(i, v);
}

/**
 * atomic_long_fetch_or_relaxed() - atomic bitwise OR with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v | @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_or_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_or_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_or_relaxed(i, v);
}

/**
 * atomic_long_xor() - atomic bitwise XOR with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xor() there.
 *
 * Return: Nothing.
 */
static __always_inline __turn_off_size_overflow void
atomic_long_xor(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    raw_atomic_long_xor(i, v);
}

/**
 * atomic_long_fetch_xor() - atomic bitwise XOR with full ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v ^ @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_xor() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_xor(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_xor(i, v);
}

/**
 * atomic_long_fetch_xor_acquire() - atomic bitwise XOR with acquire ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v ^ @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_xor_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_xor_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_xor_acquire(i, v);
}

/**
 * atomic_long_fetch_xor_release() - atomic bitwise XOR with release ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v ^ @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_xor_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_xor_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_xor_release(i, v);
}

/**
 * atomic_long_fetch_xor_relaxed() - atomic bitwise XOR with relaxed ordering
 * @i: long value
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_xor_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_xor_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_xor_relaxed(i, v);
}

/**
 * atomic_long_xchg() - atomic exchange with full ordering
 * @v: pointer to atomic_long_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg(atomic_long_t *v, long new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg(v, new);
}

/**
 * atomic_long_xchg_acquire() - atomic exchange with acquire ordering
 * @v: pointer to atomic_long_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg_acquire(atomic_long_t *v, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg_acquire(v, new);
}

/**
 * atomic_long_xchg_release() - atomic exchange with release ordering
 * @v: pointer to atomic_long_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg_release(atomic_long_t *v, long new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg_release(v, new);
}

/**
 * atomic_long_xchg_relaxed() - atomic exchange with relaxed ordering
 * @v: pointer to atomic_long_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg_relaxed(atomic_long_t *v, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg_relaxed(v, new);
}

/**
 * atomic_long_xchg_unchecked() - atomic exchange with full ordering
 * @v: pointer to atomic_long_unchecked_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg_unchecked(atomic_long_unchecked_t *v, long new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg_unchecked(v, new);
}
#define atomic_long_xchg(v, new) atomic_long_op_pick(atomic_long,xchg,,v)(v, new)

/**
 * atomic_long_xchg_unchecked_acquire() - atomic exchange with acquire ordering
 * @v: pointer to atomic_long_unchecked_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg_unchecked_acquire(atomic_long_unchecked_t *v, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg_unchecked_acquire(v, new);
}
#define atomic_long_xchg_acquire(v, new) atomic_long_op_pick(atomic_long,xchg,_acquire,v)(v, new)

/**
 * atomic_long_xchg_unchecked_release() - atomic exchange with release ordering
 * @v: pointer to atomic_long_unchecked_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg_unchecked_release(atomic_long_unchecked_t *v, long new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg_unchecked_release(v, new);
}
#define atomic_long_xchg_release(v, new) atomic_long_op_pick(atomic_long,xchg,_release,v)(v, new)

/**
 * atomic_long_xchg_unchecked_relaxed() - atomic exchange with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 * @new: long value to assign
 *
 * Atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_xchg_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_xchg_unchecked_relaxed(atomic_long_unchecked_t *v, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_xchg_unchecked_relaxed(v, new);
}
#define atomic_long_xchg_relaxed(v, new) atomic_long_op_pick(atomic_long,xchg,_relaxed,v)(v, new)

/**
 * atomic_long_cmpxchg() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_long_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg(atomic_long_t *v, long old, long new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg(v, old, new);
}

/**
 * atomic_long_cmpxchg_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_long_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg_acquire(atomic_long_t *v, long old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg_acquire(v, old, new);
}

/**
 * atomic_long_cmpxchg_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_long_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg_release(atomic_long_t *v, long old, long new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg_release(v, old, new);
}

/**
 * atomic_long_cmpxchg_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_long_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg_relaxed(atomic_long_t *v, long old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg_relaxed(v, old, new);
}

/**
 * atomic_long_cmpxchg_unchecked() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg_unchecked(atomic_long_unchecked_t *v, long old, long new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg_unchecked(v, old, new);
}
#define atomic_long_cmpxchg(v, old, new) atomic_long_op_pick(atomic_long,cmpxchg,,v)(v, old, new)

/**
 * atomic_long_cmpxchg_unchecked_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg_unchecked_acquire() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg_unchecked_acquire(atomic_long_unchecked_t *v, long old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg_unchecked_acquire(v, old, new);
}
#define atomic_long_cmpxchg_acquire(v, old, new) atomic_long_op_pick(atomic_long,cmpxchg,_acquire,v)(v, old, new)

/**
 * atomic_long_cmpxchg_unchecked_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg_unchecked_release() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg_unchecked_release(atomic_long_unchecked_t *v, long old, long new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg_unchecked_release(v, old, new);
}
#define atomic_long_cmpxchg_release(v, old, new) atomic_long_op_pick(atomic_long,cmpxchg,_release,v)(v, old, new)

/**
 * atomic_long_cmpxchg_unchecked_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_cmpxchg_unchecked_relaxed() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_cmpxchg_unchecked_relaxed(atomic_long_unchecked_t *v, long old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_cmpxchg_unchecked_relaxed(v, old, new);
}
#define atomic_long_cmpxchg_relaxed(v, old, new) atomic_long_op_pick(atomic_long,cmpxchg,_relaxed,v)(v, old, new)

/**
 * atomic_long_try_cmpxchg() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_long_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg(v, old, new);
}

/**
 * atomic_long_try_cmpxchg_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_long_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_acquire() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg_acquire(atomic_long_t *v, long *old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg_acquire(v, old, new);
}

/**
 * atomic_long_try_cmpxchg_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_long_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_release() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg_release(atomic_long_t *v, long *old, long new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg_release(v, old, new);
}

/**
 * atomic_long_try_cmpxchg_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_long_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_relaxed() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg_relaxed(v, old, new);
}

/**
 * atomic_long_try_cmpxchg_unchecked() - atomic compare and exchange with full ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with full ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_unchecked() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg_unchecked(atomic_long_unchecked_t *v, long *old, long new)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg_unchecked(v, old, new);
}
#define atomic_long_try_cmpxchg(v, old, new) atomic_long_op_pick(atomic_long,try_cmpxchg,,v)(v, old, new)

/**
 * atomic_long_try_cmpxchg_unchecked_acquire() - atomic compare and exchange with acquire ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with acquire ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_unchecked_acquire() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg_unchecked_acquire(atomic_long_unchecked_t *v, long *old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg_unchecked_acquire(v, old, new);
}
#define atomic_long_try_cmpxchg_acquire(v, old, new) atomic_long_op_pick(atomic_long,try_cmpxchg,_acquire,v)(v, old, new)

/**
 * atomic_long_try_cmpxchg_unchecked_release() - atomic compare and exchange with release ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with release ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_unchecked_release() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg_unchecked_release(atomic_long_unchecked_t *v, long *old, long new)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg_unchecked_release(v, old, new);
}
#define atomic_long_try_cmpxchg_release(v, old, new) atomic_long_op_pick(atomic_long,try_cmpxchg,_release,v)(v, old, new)

/**
 * atomic_long_try_cmpxchg_unchecked_relaxed() - atomic compare and exchange with relaxed ordering
 * @v: pointer to atomic_long_unchecked_t
 * @old: pointer to long value to compare with
 * @new: long value to assign
 *
 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_unchecked_relaxed() there.
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_try_cmpxchg_unchecked_relaxed(atomic_long_unchecked_t *v, long *old, long new)
{
    instrument_atomic_read_write(v, sizeof(*v));
    instrument_atomic_read_write(old, sizeof(*old));
    return raw_atomic_long_try_cmpxchg_unchecked_relaxed(v, old, new);
}
#define atomic_long_try_cmpxchg_relaxed(v, old, new) atomic_long_op_pick(atomic_long,try_cmpxchg,_relaxed,v)(v, old, new)

/**
 * atomic_long_sub_and_test() - atomic subtract and test if zero with full ordering
 * @i: long value to subtract
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_sub_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_sub_and_test(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_sub_and_test(i, v);
}

/**
 * atomic_long_dec_and_test() - atomic decrement and test if zero with full ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_dec_and_test(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_and_test(v);
}

/**
 * atomic_long_dec_and_test_unchecked() - atomic decrement and test if zero with full ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_and_test_unchecked() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_dec_and_test_unchecked(atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_and_test_unchecked(v);
}
#define atomic_long_dec_and_test(v) atomic_long_op_pick(atomic_long,dec_and_test,,v)(v)

/**
 * atomic_long_inc_and_test() - atomic increment and test if zero with full ordering
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_and_test() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_inc_and_test(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_and_test(v);
}

/**
 * atomic_long_inc_and_test_unchecked() - atomic increment and test if zero with full ordering
 * @v: pointer to atomic_long_unchecked_t
 *
 * Atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_and_test_unchecked() there.
 *
 * Return: @true if the resulting value of @v is zero, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_inc_and_test_unchecked(atomic_long_unchecked_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_and_test_unchecked(v);
}
#define atomic_long_inc_and_test(v) atomic_long_op_pick(atomic_long,inc_and_test,,v)(v)

/**
 * atomic_long_add_negative() - atomic add and test if negative with full ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_negative() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_add_negative(long i, atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_negative(i, v);
}

/**
 * atomic_long_add_negative_acquire() - atomic add and test if negative with acquire ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with acquire ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_negative_acquire() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_add_negative_acquire(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_negative_acquire(i, v);
}

/**
 * atomic_long_add_negative_release() - atomic add and test if negative with release ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with release ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_negative_release() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_add_negative_release(long i, atomic_long_t *v)
{
    kcsan_release();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_negative_release(i, v);
}

/**
 * atomic_long_add_negative_relaxed() - atomic add and test if negative with relaxed ordering
 * @i: long value to add
 * @v: pointer to atomic_long_t
 *
 * Atomically updates @v to (@v + @i) with relaxed ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_negative_relaxed() there.
 *
 * Return: @true if the resulting value of @v is negative, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_add_negative_relaxed(long i, atomic_long_t *v)
{
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_negative_relaxed(i, v);
}

/**
 * atomic_long_fetch_add_unless() - atomic add unless value with full ordering
 * @v: pointer to atomic_long_t
 * @a: long value to add
 * @u: long value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_unless() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_unless(atomic_long_t *v, long a, long u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_unless(v, a, u);
}

/**
 * atomic_long_add_unless() - atomic add unless value with full ordering
 * @v: pointer to atomic_long_t
 * @a: long value to add
 * @u: long value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_unless() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_add_unless(atomic_long_t *v, long a, long u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_unless(v, a, u);
}

/**
 * atomic_long_fetch_add_unless_unchecked() - atomic add unless value with full ordering
 * @v: pointer to atomic_long_unchecked_t
 * @a: long value to add
 * @u: long value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_fetch_add_unless_unchecked() there.
 *
 * Return: The original value of @v.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_fetch_add_unless_unchecked(atomic_long_unchecked_t *v, long a, long u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_fetch_add_unless_unchecked(v, a, u);
}
#define atomic_long_fetch_add_unless(v, a, u) atomic_long_op_pick(atomic_long,fetch_add_unless,,v)(v, a, u)

/**
 * atomic_long_add_unless_unchecked() - atomic add unless value with full ordering
 * @v: pointer to atomic_long_unchecked_t
 * @a: long value to add
 * @u: long value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_add_unless_unchecked() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_add_unless_unchecked(atomic_long_unchecked_t *v, long a, long u)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_add_unless_unchecked(v, a, u);
}
#define atomic_long_add_unless(v, a, u) atomic_long_op_pick(atomic_long,add_unless,,v)(v, a, u)

/**
 * atomic_long_inc_not_zero() - atomic increment unless zero with full ordering
 * @v: pointer to atomic_long_t
 *
 * If (@v != 0), atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_not_zero() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_inc_not_zero(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_not_zero(v);
}

/**
 * atomic_long_inc_unless_negative() - atomic increment unless negative with full ordering
 * @v: pointer to atomic_long_t
 *
 * If (@v >= 0), atomically updates @v to (@v + 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_inc_unless_negative() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_inc_unless_negative(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_inc_unless_negative(v);
}

/**
 * atomic_long_dec_unless_positive() - atomic decrement unless positive with full ordering
 * @v: pointer to atomic_long_t
 *
 * If (@v <= 0), atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_unless_positive() there.
 *
 * Return: @true if @v was updated, @false otherwise.
 */
static __always_inline __turn_off_size_overflow bool
atomic_long_dec_unless_positive(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_unless_positive(v);
}

/**
 * atomic_long_dec_if_positive() - atomic decrement if positive with full ordering
 * @v: pointer to atomic_long_t
 *
 * If (@v > 0), atomically updates @v to (@v - 1) with full ordering.
 *
 * Unsafe to use in noinstr code; use raw_atomic_long_dec_if_positive() there.
 *
 * Return: The old value of (@v - 1), regardless of whether @v was updated.
 */
static __always_inline __turn_off_size_overflow long
atomic_long_dec_if_positive(atomic_long_t *v)
{
    kcsan_mb();
    instrument_atomic_read_write(v, sizeof(*v));
    return raw_atomic_long_dec_if_positive(v);
}

#define xchg(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_xchg(__ai_ptr, __VA_ARGS__); \
})

#define xchg_acquire(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_xchg_acquire(__ai_ptr, __VA_ARGS__); \
})

#define xchg_release(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_release(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_xchg_release(__ai_ptr, __VA_ARGS__); \
})

#define xchg_relaxed(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_xchg_relaxed(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg_acquire(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg_acquire(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg_release(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_release(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg_release(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg_relaxed(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg_relaxed(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg64(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg64(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg64_acquire(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg64_acquire(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg64_release(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_release(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg64_release(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg64_relaxed(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg64_relaxed(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg128(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg128(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg128_acquire(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg128_acquire(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg128_release(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_release(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg128_release(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg128_relaxed(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg128_relaxed(__ai_ptr, __VA_ARGS__); \
})

#define try_cmpxchg(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg_acquire(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg_acquire(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg_release(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    kcsan_release(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg_release(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg_relaxed(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg_relaxed(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg64(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg64(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg64_acquire(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg64_acquire(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg64_release(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    kcsan_release(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg64_release(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg64_relaxed(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg64_relaxed(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg128(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg128(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg128_acquire(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg128_acquire(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg128_release(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    kcsan_release(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg128_release(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg128_relaxed(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg128_relaxed(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define cmpxchg_local(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg64_local(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg64_local(__ai_ptr, __VA_ARGS__); \
})

#define cmpxchg128_local(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_cmpxchg128_local(__ai_ptr, __VA_ARGS__); \
})

#define sync_cmpxchg(ptr, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    kcsan_mb(); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    raw_sync_cmpxchg(__ai_ptr, __VA_ARGS__); \
})

#define try_cmpxchg_local(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg_local(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg64_local(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg64_local(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})

#define try_cmpxchg128_local(ptr, oldp, ...) \
({ \
    typeof(ptr) __ai_ptr = (ptr); \
    typeof(oldp) __ai_oldp = (oldp); \
    instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \
    instrument_read_write(__ai_oldp, sizeof(*__ai_oldp)); \
    raw_try_cmpxchg128_local(__ai_ptr, __ai_oldp, __VA_ARGS__); \
})


#endif /* _LINUX_ATOMIC_INSTRUMENTED_H */
// 8cc4fa3da6a820ad3d59b616e07c36074a65a2ea

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0737 ]--