[Mesa-dev] [PATCH] Android: fix undeclared identifier 'gfx9d_reg_table'

Rob Herring robh at kernel.org
Mon Sep 11 14:34:53 UTC 2017


On Sat, Sep 9, 2017 at 12:17 PM, Chih-Wei Huang <cwhuang at android-x86.org> wrote:
> 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 at linux.org.tw>
> ---
>  src/amd/Android.common.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied.

Rob


More information about the mesa-dev mailing list