[PATCH -next v3] drm/bridge: fix -Wunused-const-variable= warning

Robert Foss rfoss at kernel.org
Mon Jul 31 09:16:46 UTC 2023


On Mon, 31 Jul 2023 10:13:45 +0800, Zhu Wang wrote:
> When building with W=1, the following warning occurs.
> 
> drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:48:17: warning: ‘anx781x_i2c_addresses’ defined but not used [-Wunused-const-variable=]  static const u8 anx781x_i2c_addresses[] = {
>                  ^~~~~~~~~~~~~~~~~~~~~
> drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:40:17: warning: ‘anx7808_i2c_addresses’ defined but not used [-Wunused-const-variable=]  static const u8 anx7808_i2c_addresses[] = {
> 
> When CONFIG_IO is disabled, above two variables are not used,
> since the place where it is used is inclueded in the macro
> CONFIG_OF.
> 
> [...]

Applied, thanks!

[1/1] drm/bridge: fix -Wunused-const-variable= warning
      https://cgit.freedesktop.org/drm/drm-misc/commit/?id=132b6512e694



Rob



More information about the dri-devel mailing list