Building on AArch64 with CONFIG_WERROR would return the following errors:
drivers/usb/cdns3/cdnsp-sky1.c:554:12: error: ‘cdnsp_sky1_check_phy_deps’ defined but not used [-Werror=unused-function]
554 | static int cdnsp_sky1_check_phy_deps(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:289: drivers/usb/cdns3/cdnsp-sky1.o] Error 1
make[5]: Target 'drivers/usb/cdns3/' not remade because of errors.
make[4]: *** [scripts/Makefile.build:548: drivers/usb/cdns3] Error 2
make[4]: Target 'drivers/usb/' not remade because of errors.
make[3]: *** [scripts/Makefile.build:548: drivers/usb] Error 2
drivers/gpu/drm/cix/linlon-dp/linlondp_plane.c:292:5: error: no previous prototype for ‘linlondp_atomic_replace_property_blob_from_id’ [-Werror=missing-prototypes]
292 | int linlondp_atomic_replace_property_blob_from_id(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/cix/linlon-dp/linlondp_pipeline_state.c: In function ‘linlondp_split_sbs_master_data_flow’:
drivers/gpu/drm/cix/linlon-dp/linlondp_pipeline_state.c:1246:37: error: variable ‘slave_valid_w’ set but not used [-Werror=unused-but-set-variable]
1246 | u32 master_valid_w, slave_valid_w;
| ^~~~~~~~~~~~~
drivers/gpu/drm/cix/linlon-dp/linlondp_pipeline_state.c:1246:21: error: variable ‘master_valid_w’ set but not used [-Werror=unused-but-set-variable]
1246 | u32 master_valid_w, slave_valid_w;
| ^~~~~~~~~~~~~~
drivers/gpu/drm/cix/linlon-dp/linlondp_dev.c: In function ‘linlondp_dev_create’:
drivers/gpu/drm/cix/linlon-dp/linlondp_dev.c:655:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
655 | if (err)
| ^~
drivers/gpu/drm/cix/linlon-dp/linlondp_dev.c:658:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
658 | is_insmod = linlondp_gop_get();
| ^~~~~~~~~
drivers/gpu/drm/cix/linlon-dp/linlondp_dev.c: At top level:
drivers/gpu/drm/cix/linlon-dp/linlondp_dev.c:623:13: error: ‘linlondp_gop_set’ defined but not used [-Werror=unused-function]
623 | static void linlondp_gop_set(void)
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/cix/dptx/hdcp/hdcp2_tx_state.c:51:6: error: no previous prototype for ‘hdcp2_cipher_enable’ [-Werror=missing-prototypes]
51 | void hdcp2_cipher_enable(struct cix_hdcp *hdcp, void *kdata)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/cix/dptx/hdcp/hdcp2_tx_state.c:80:6: error: no previous prototype for ‘hdcp2_cipher_disable’ [-Werror=missing-prototypes]
80 | void hdcp2_cipher_disable(struct cix_hdcp *hdcp)
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/cix/dptx/hdcp/hdcp2_tx_state.c:108:6: error: no previous prototype for ‘hdcp2_tx_state_init’ [-Werror=missing-prototypes]
108 | void hdcp2_tx_state_init(struct cix_hdcp *hdcp)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/cix/dptx/hdcp/hdcp2_tx_state.c:29:22: error: ‘test_lc128’ defined but not used [-Werror=unused-const-variable=]
29 | static const uint8_t test_lc128[] = { 0x93U, 0xceU, 0x5aU, 0x56U, 0xa0U, 0xa1U,
| ^~~~~~~~~~
drivers/gpu/drm/panthor/panthor_gem.c: In function ‘should_map_wc’:
drivers/gpu/drm/panthor/panthor_gem.c:83:32: error: unused variable ‘ptdev’ [-Werror=unused-variable]
83 | struct panthor_device *ptdev = container_of(bo->base.base.dev, struct panthor_device, base);
| ^~~~~
In function ‘linlondp_wb_connector_create_color_prop’,
inlined from ‘linlondp_wb_connector_add’ at drivers/gpu/drm/cix/linlon-dp/linlondp_wb_connector.c:372:8,
inlined from ‘linlondp_kms_add_wb_connectors’ at drivers/gpu/drm/cix/linlon-dp/linlondp_wb_connector.c:385:9:
drivers/gpu/drm/cix/linlon-dp/linlondp_wb_connector.c:281:35: error: argument to variable-length array is too large [-Werror=vla-larger-than=]
281 | struct drm_prop_enum_list enum_list[max_t(int, DRM_COLOR_ENCODING_MAX,
| ^~~~~~~~~
Building on AArch64 with
CONFIG_WERRORwould return the following errors: