linux-stable/drivers/gpu/drm/i915/gt/selftest_engine.c
Chris Wilson 24f90d6688 drm/i915/gt: SPDX cleanup
Clean up the SPDX licence declarations to comply with checkpatch.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122192913.4518-1-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2021-03-24 19:30:34 +01:00

27 lines
459 B
C

// SPDX-License-Identifier: GPL-2.0
/*
* Copyright © 2018 Intel Corporation
*/
#include "i915_selftest.h"
#include "selftest_engine.h"
int intel_engine_live_selftests(struct drm_i915_private *i915)
{
static int (* const tests[])(struct intel_gt *) = {
live_engine_pm_selftests,
NULL,
};
struct intel_gt *gt = &i915->gt;
typeof(*tests) *fn;
for (fn = tests; *fn; fn++) {
int err;
err = (*fn)(gt);
if (err)
return err;
}
return 0;
}