linux/lib/atomic64_test.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Testsuite for atomic64_t functions
 *
 * Copyright © 2010  Luca Barbieri
 */

#define pr_fmt(fmt)

#include <linux/init.h>
#include <linux/bug.h>
#include <linux/kernel.h>
#include <linux/atomic.h>
#include <linux/module.h>

#ifdef CONFIG_X86
#include <asm/cpufeature.h>	/* for boot_cpu_has below */
#endif

#define TEST(bit, op, c_op, val)

/*
 * Test for a atomic operation family,
 * @test should be a macro accepting parameters (bit, op, ...)
 */

#define FAMILY_TEST(test, bit, op, args...)

#define TEST_RETURN(bit, op, c_op, val)

#define TEST_FETCH(bit, op, c_op, val)

#define RETURN_FAMILY_TEST(bit, op, c_op, val)

#define FETCH_FAMILY_TEST(bit, op, c_op, val)

#define TEST_ARGS(bit, op, init, ret, expect, args...)

#define XCHG_FAMILY_TEST(bit, init, new)

#define CMPXCHG_FAMILY_TEST(bit, init, new, wrong)

#define INC_RETURN_FAMILY_TEST(bit, i)

#define DEC_RETURN_FAMILY_TEST(bit, i)

static __init void test_atomic(void)
{}

#define INIT(c)
static __init void test_atomic64(void)
{}

static __init int test_atomics_init(void)
{}

static __exit void test_atomics_exit(void) {}

module_init();
module_exit(test_atomics_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();