This is a set of patches to address build warnings and errors that have come up in linux-4.8 but that worked fine in v4.7. I've added the tinyconfig warning patch in there as well, which is not a regression but is something that shows up in the kernelci.org build bots. The other patches address issues that either came up in kernelci.org or in my randconfig test setup.
I have three more fixes queued up in arm-soc/fixes that I plan to send as a pull request for -rc2 along with the other bugfixes.
All patches have been posted before, but for some reason or another failed to make it into the merge window. I have updated the ones that were waiting for a new version from me now, the others are sent without modifications.
Hopefully we can get them all merged into v4.8. Please pick up patches from the middle of the series if appropriate.
Arnd
Arnd Bergmann (7): kconfig: tinyconfig: provide whole choice blocks to avoid warnings dsa: mv88e6xxx: hide unused functions drm/mediatek: add COMMON_CLK dependency drm/mediatek: add CONFIG_OF dependency drm/mediatek: add ARM_SMCCC dependency clocksource: kona: fix get_counter error handling 8250/fintek: rename IRQ_MODE macro
Geert Uytterhoeven (1): test/hash: Fix warning in two-dimensional array init
George Spelvin (1): test/hash: Fix warning in preprocessor symbol evaluation
arch/x86/configs/tiny.config | 2 ++ drivers/clocksource/bcm_kona_timer.c | 16 ++++++++++------ drivers/gpu/drm/mediatek/Kconfig | 3 +++ drivers/net/dsa/mv88e6xxx/chip.c | 2 ++ drivers/tty/serial/8250/8250_fintek.c | 4 ++-- kernel/configs/tiny.config | 8 ++++++++ lib/test_hash.c | 8 ++++---- 7 files changed, 31 insertions(+), 12 deletions(-)
On kernel builds without COMMON_CLK, the newly added mediatek drm driver fails to build:
drivers/gpu/drm/mediatek/mtk_mipi_tx.c:130:16: error: field 'pll_hw' has incomplete type struct clk_hw pll_hw; ^~~~~~ In file included from ../include/linux/clk.h:16:0, from ../drivers/gpu/drm/mediatek/mtk_mipi_tx.c:14: drivers/gpu/drm/mediatek/mtk_mipi_tx.c: In function 'mtk_mipi_tx_from_clk_hw': include/linux/kernel.h:831:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] const typeof( ((type *)0)->member ) *__mptr = (ptr); \ ^ /drivers/gpu/drm/mediatek/mtk_mipi_tx.c:136:9: note: in expansion of macro 'container_of' return container_of(hw, struct mtk_mipi_tx, pll_hw); ^~~~~~~~~~~~ drivers/gpu/drm/mediatek/mtk_mipi_tx.c: At top level: drivers/gpu/drm/mediatek/mtk_mipi_tx.c:302:21: error: variable 'mtk_mipi_tx_pll_ops' has initializer but incomplete type static const struct clk_ops mtk_mipi_tx_pll_ops = {
This adds the required Kconfig dependency.
Signed-off-by: Arnd Bergmann arnd@arndb.de Acked-by: Philipp Zabel p.zabel@pengutronix.de Link: https://patchwork.kernel.org/patch/9069061/ --- I originally sent this on May 11 2016 after the driver was added with this bug, but my fix never made it in. --- drivers/gpu/drm/mediatek/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig index 23ac8041c562..5c2163737691 100644 --- a/drivers/gpu/drm/mediatek/Kconfig +++ b/drivers/gpu/drm/mediatek/Kconfig @@ -2,6 +2,7 @@ config DRM_MEDIATEK tristate "DRM Support for Mediatek SoCs" depends on DRM depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) + depends on COMMON_CLK select DRM_GEM_CMA_HELPER select DRM_KMS_HELPER select DRM_MIPI_DSI
The mediatek DRM driver can be configured for compile testing with CONFIG_OF disabled, but then fails to link:
drivers/gpu/built-in.o: In function `mtk_drm_bind': analogix_dp_reg.c:(.text+0x52888): undefined reference to `of_find_device_by_node' analogix_dp_reg.c:(.text+0x52930): undefined reference to `of_find_device_by_node'
This adds an explicit Kconfig dependency.
Signed-off-by: Arnd Bergmann arnd@arndb.de Link: https://patchwork.kernel.org/patch/9120871/ --- I originally sent this on May 18 when the driver was newly added, but my fix never made it. --- drivers/gpu/drm/mediatek/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig index 5c2163737691..96ebf8bb6024 100644 --- a/drivers/gpu/drm/mediatek/Kconfig +++ b/drivers/gpu/drm/mediatek/Kconfig @@ -3,6 +3,7 @@ config DRM_MEDIATEK depends on DRM depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) depends on COMMON_CLK + depends on OF select DRM_GEM_CMA_HELPER select DRM_KMS_HELPER select DRM_MIPI_DSI
ARM SMCCC is only set for ARMv7 and ARMv8 CPUs, but we currently allow the driver to be build for older architecture levels as well, which results in a link failure:
drivers/gpu/built-in.o: In function `mtk_hdmi_hw_make_reg_writable': :(.text+0x1e737c): undefined reference to `arm_smccc_smc'
This adds a Kconfig dependency. The patch applies on my two previous fixes that are not yet applied, so please apply all three to get randconfig builds to work correctly.
Signed-off-by: Arnd Bergmann arnd@arndb.de Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support") Reviewed-by: Matthias Brugger matthias.bgg@gmail.com --- Sent first on June 27 when it first broke in linux-next. Two other dependencies were already missing, so I'm sending all three patches again now. --- drivers/gpu/drm/mediatek/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/mediatek/Kconfig b/drivers/gpu/drm/mediatek/Kconfig index 96ebf8bb6024..294de4549922 100644 --- a/drivers/gpu/drm/mediatek/Kconfig +++ b/drivers/gpu/drm/mediatek/Kconfig @@ -3,6 +3,7 @@ config DRM_MEDIATEK depends on DRM depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST) depends on COMMON_CLK + depends on HAVE_ARM_SMCCC depends on OF select DRM_GEM_CMA_HELPER select DRM_KMS_HELPER
dri-devel@lists.freedesktop.org