linux-next: build failure after merge of the amdgpu tree

From: Stephen Rothwell
Date: Mon May 22 2023 - 03:00:57 EST


Hi all,

After merging the amdgpu tree, today's linux-next build (x86_64
allmodconfig clang-17) failed like this:

drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c:704:23: error: variable 'mmhub_v1_8_mmea_err_status_reg' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]

Caused by commit

fa90ca94dbda ("drm/amdgpu: Add query_ras_error_status for mmhub v1_8")

It is only used as "ARRAY_SIZE(mmhub_v1_8_mmea_err_status_reg)".

Reported by the kernerci.org bot.
--
Cheers,
Stephen Rothwell

Attachment: pgp9lSKhCZKj5.pgp
Description: OpenPGP digital signature