Android: fix undeclared identifier 'gfx9d_reg_table'
authorChih-Wei Huang <cwhuang@android-x86.org>
Sat, 9 Sep 2017 17:17:25 +0000 (01:17 +0800)
committerRob Herring <robh@kernel.org>
Mon, 11 Sep 2017 14:35:23 +0000 (09:35 -0500)
commitaf726a1e2ca30a7cbd95319ad24aab8d9c6a855e
tree252b081324707256432ea408cb0811f6109317af
parenta2a326e8f877e7b4774dddc78a99c321036511ba
Android: fix undeclared identifier 'gfx9d_reg_table'

Since commit 552aaa11 the compiler complains:

external/mesa/src/amd/common/ac_debug.c:124:51: error: use of undeclared identifier 'gfx9d_reg_table'; did you mean 'sid_reg_table'?
                reg = find_register(gfx9d_reg_table, ARRAY_SIZE(gfx9d_reg_table), offset);
                                                                ^~~~~~~~~~~~~~~
                                                                sid_reg_table

It's because the commit ef97cc0c ("radeonsi/gfx9: add IB parser support")
add gfx9d.h as a recipe of sid_tables.h. But the corresponding Android.mk
was not updated. However, it's not spotted since gfx9d_reg_table is not
really used until commit 552aaa11 was landed.

Fixes: 552aaa11 (ac/debug: take ASIC generation into account when printing registers)
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Rob Herring <robh@kernel.org>
src/amd/Android.common.mk