linux/drivers/gpu/drm/tests/drm_managed_test.c

// SPDX-License-Identifier: GPL-2.0

#include <drm/drm_drv.h>
#include <drm/drm_kunit_helpers.h>
#include <drm/drm_managed.h>

#include <kunit/resource.h>

#include <linux/device.h>

/* Ought to be enough for anybody */
#define TEST_TIMEOUT_MS

struct managed_test_priv {};

static void drm_action(struct drm_device *drm, void *ptr)
{}

/*
 * The test verifies that the release action is called when
 * drmm_release_action is called.
 */
static void drm_test_managed_release_action(struct kunit *test)
{}

/*
 * The test verifies that the release action is called automatically when the
 * device is released.
 */
static void drm_test_managed_run_action(struct kunit *test)
{}

static int drm_managed_test_init(struct kunit *test)
{}

static struct kunit_case drm_managed_tests[] =;

static struct kunit_suite drm_managed_test_suite =;

kunit_test_suite();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();