mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
24f90d6688
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>
27 lines
459 B
C
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;
|
|
}
|