10f07a6b2a
Sparse warns about this symbol: drivers/media/platform/qcom/venus/hfi_venus.c:133:5: warning: symbol 'venus_fw_debug' was not declared. Should it be static? Because hfi_venus.c doesn't include a header file with the extern. So, move it to core.h, with is included by both hfi_venus.c and dbgfs.c. This way, if something changes with it, warnings or errors will be produced. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
20 lines
391 B
C
20 lines
391 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Copyright (C) 2020 Linaro Ltd.
|
|
*/
|
|
|
|
#include <linux/debugfs.h>
|
|
|
|
#include "core.h"
|
|
|
|
void venus_dbgfs_init(struct venus_core *core)
|
|
{
|
|
core->root = debugfs_create_dir("venus", NULL);
|
|
debugfs_create_x32("fw_level", 0644, core->root, &venus_fw_debug);
|
|
}
|
|
|
|
void venus_dbgfs_deinit(struct venus_core *core)
|
|
{
|
|
debugfs_remove_recursive(core->root);
|
|
}
|