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.
Even for drivers that do not depend on CONFIG_OF, it's almost
always better to leave out the of_match_ptr(), since the only
thing it can possibly do is to save a few bytes of .text if a
driver can be used both with and without it. Hence we remove
all of_match_ptr() used in other places.
Fixes:
|
||
---|---|---|
.. | ||
cdns-dsi-core.c | ||
cdns-dsi-core.h | ||
cdns-dsi-j721e.c | ||
cdns-dsi-j721e.h | ||
cdns-mhdp8546-core.c | ||
cdns-mhdp8546-core.h | ||
cdns-mhdp8546-hdcp.c | ||
cdns-mhdp8546-hdcp.h | ||
cdns-mhdp8546-j721e.c | ||
cdns-mhdp8546-j721e.h | ||
Kconfig | ||
Makefile |