mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
MALI: midgard-T: fix tests build
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/ktime.h>
|
||||
|
||||
#include <mali_kbase.h>
|
||||
#include <mali_kbase_defs.h>
|
||||
@@ -443,7 +444,7 @@ void kbasep_trace_add(struct kbase_device *kbdev, enum kbase_trace_code code, vo
|
||||
trace_msg->thread_id = task_pid_nr(current);
|
||||
trace_msg->cpu = task_cpu(current);
|
||||
|
||||
getnstimeofday(&trace_msg->timestamp);
|
||||
ktime_get_real_ts64(&trace_msg->timestamp);
|
||||
|
||||
trace_msg->code = code;
|
||||
trace_msg->ctx = ctx;
|
||||
|
||||
@@ -687,19 +687,19 @@ void kutf_add_test_with_filters_and_data(
|
||||
}
|
||||
|
||||
test_func->filters = filters;
|
||||
tmp = debugfs_create_x32("filters", S_IROTH, test_func->dir,
|
||||
debugfs_create_x32("filters", S_IROTH, test_func->dir,
|
||||
&test_func->filters);
|
||||
if (!tmp) {
|
||||
pr_err("Failed to create debugfs file \"filters\" when adding test %s\n", name);
|
||||
goto fail_file;
|
||||
// goto fail_file;
|
||||
}
|
||||
|
||||
test_func->test_id = id;
|
||||
tmp = debugfs_create_u32("test_id", S_IROTH, test_func->dir,
|
||||
debugfs_create_u32("test_id", S_IROTH, test_func->dir,
|
||||
&test_func->test_id);
|
||||
if (!tmp) {
|
||||
pr_err("Failed to create debugfs file \"test_id\" when adding test %s\n", name);
|
||||
goto fail_file;
|
||||
// goto fail_file;
|
||||
}
|
||||
|
||||
for (i = 0; i < suite->fixture_variants; i++) {
|
||||
|
||||
Reference in New Issue
Block a user