Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: venus: place extern venus_fw_debug on a header file

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>

+2 -2
+2
drivers/media/platform/qcom/venus/core.h
··· 24 24 #define VIDC_VCODEC_CLKS_NUM_MAX 2 25 25 #define VIDC_PMDOMAINS_NUM_MAX 3 26 26 27 + extern int venus_fw_debug; 28 + 27 29 struct freq_tbl { 28 30 unsigned int load; 29 31 unsigned long freq;
-2
drivers/media/platform/qcom/venus/dbgfs.c
··· 7 7 8 8 #include "core.h" 9 9 10 - extern int venus_fw_debug; 11 - 12 10 void venus_dbgfs_init(struct venus_core *core) 13 11 { 14 12 core->root = debugfs_create_dir("venus", NULL);