mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 20:02:23 +07:00
920532991a
With this patch split the kernel module specific code from actual selftest code. This is done to allow adding more selftests as separate file. Also added kernel module exit stub with this patch. Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: alexandru-cosmin.gheorghe@arm.com Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20181016204609.1555-1-drawat@vmware.com
19 lines
390 B
C
19 lines
390 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __TEST_DRM_MODESET_COMMON_H__
|
|
#define __TEST_DRM_MODESET_COMMON_H__
|
|
|
|
#define FAIL(test, msg, ...) \
|
|
do { \
|
|
if (test) { \
|
|
pr_err("%s/%u: " msg, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
|
|
return -EINVAL; \
|
|
} \
|
|
} while (0)
|
|
|
|
#define FAIL_ON(x) FAIL((x), "%s", "FAIL_ON(" __stringify(x) ")\n")
|
|
|
|
int test_drm_plane_helper(void);
|
|
|
|
#endif
|