Skip to content

[PW_SID:990118] clk: spacemit: fix i2s clock - #753

Closed
linux-riscv-bot wants to merge 4 commits into
workflow__riscv__fixesfrom
pw990118
Closed

[PW_SID:990118] clk: spacemit: fix i2s clock#753
linux-riscv-bot wants to merge 4 commits into
workflow__riscv__fixesfrom
pw990118

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 990118 applied to workflow__riscv__fixes

Name: clk: spacemit: fix i2s clock
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=990118
Version: 2

Previously, the K1 clock driver did not include the parent clocks of
the I2S sysclk.

Otherwise, the I2S clock may not work as expected.

This patch adds their definitions to allow proper registration
in the driver and usage in the device tree.

Fixes: 1b72c59 ("clk: spacemit: Add clock support for SpacemiT K1 SoC")
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The original DDN operations applied an implicit divide-by-2, which should
not be a default behavior.

This patch removes that assumption, letting each clock define its
actual behavior explicitly.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
From the definition of register, The i2s_bclk is a non-linear,
discrete divider clock.

The following table shows the correspondence between index
and frequency division coefficients:

| index |  div  |
|-------|-------|
|   0   |   2   |
|   1   |   4   |
|   2   |   6   |
|   3   |   8   |

But from a software perspective and this table, dividing the
actual div value by 2 is sufficient to obtain a continuous
divider clock.

Rather than introducing a new clock type to handle this case,
a factor parameter has been added to CCU_DIV_GATE_DEFINE.

Suggested-by: Haylen Chu <heylenay@4d2.org>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Defining i2s_bclk and i2s_sysclk as fixed-factor clocks is insufficient
for real I2S use cases.

Moreover, the current I2S clock configuration does not work as expected
due to missing parent clocks.

This patch adds the missing parent clocks, defines i2s_sysclk as
a DDN clock, and i2s_bclk as a DIV clock.

The I2S-related clock registers can be found here [1].

Link:
https://developer.spacemit.com/documentation?token=LCrKwWDasiJuROkVNusc2pWTnEb
[1]

Fixes: 1b72c59 ("clk: spacemit: Add clock support for SpacemiT K1 SoC")
Co-developer: Jinmei Wei <weijinmei@linux.spacemit.com>
Signed-off-by: Jinmei Wei <weijinmei@linux.spacemit.com>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 104.35 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1125.94 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1447.95 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.05 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.95 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.76 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 74.73 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
module-param
Desc: Detect module_param changes
Duration: 0.79 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2,1/4] dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 89.31 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.zdWM2L9aRO/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.zdWM2L9aRO/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.zdWM2L9aRO/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:78: error: too few arguments provided to function-like macro invocation
  139 | CCU_DDN_DEFINE(slow_uart1_14p74, pll1_d16_153p6, MPMU_SUCCR, 16, 13, 0, 13, 0);
      |                                                                              ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_ddn.h:27:9: note: macro 'CCU_DDN_DEFINE' defined here
   27 | #define CCU_DDN_DEFINE(_name, _parent, _reg_ctrl, _num_shift, _num_width,       \
      |         ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
  139 | CCU_DDN_DEFINE(slow_uart1_14p74, pll1_d16_153p6, MPMU_SUCCR, 16, 13, 0, 13, 0);
      | ^
      | int
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:76: error: too few arguments provided to function-like macro invocation
  140 | CCU_DDN_DEFINE(slow_uart2_48, pll1_d4_614p4, MPMU_SUCCR_1, 16, 13, 0, 13, 0);
      |                                                                            ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_ddn.h:27:9: note: macro 'CCU_DDN_DEFINE' defined here
   27 | #define CCU_DDN_DEFINE(_name, _parent, _reg_ctrl, _num_shift, _num_width,       \
      |         ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
  140 | CCU_DDN_DEFINE(slow_uart2_48, pll1_d4_614p4, MPMU_SUCCR_1, 16, 13, 0, 13, 0);
      | ^
      | int
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:163:16: error: use of undeclared identifier 'slow_uart1_14p74'
  163 |         CCU_PARENT_HW(slow_uart1_14p74),
      |                       ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:164:16: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
  164 |         CCU_PARENT_HW(slow_uart2_48),
      |                       ^~~~~~~~~~~~~
      |                       slow_uart
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:52:42: note: expanded from macro 'CCU_PARENT_HW'
   52 | #define CCU_PARENT_HW(_parent)          { .hw = &_parent.common.hw }
      |                                                  ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:138:17: note: 'slow_uart' declared here
  138 | CCU_GATE_DEFINE(slow_uart, CCU_PARENT_NAME(osc), MPMU_ACGR, BIT(1), CLK_IGNORE_UNUSED);
      |                 ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:166:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  166 | CCU_MUX_GATE_DEFINE(uart0_clk, uart_clk_parents, APBC_UART1_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:167:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  167 | CCU_MUX_GATE_DEFINE(uart2_clk, uart_clk_parents, APBC_UART2_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:168:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  168 | CCU_MUX_GATE_DEFINE(uart3_clk, uart_clk_parents, APBC_UART3_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:169:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  169 | CCU_MUX_GATE_DEFINE(uart4_clk, uart_clk_parents, APBC_UART4_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:170:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  170 | CCU_MUX_GATE_DEFINE(uart5_clk, uart_clk_parents, APBC_UART5_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:171:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  171 | CCU_MUX_GATE_DEFINE(uart6_clk, uart_clk_parents, APBC_UART6_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:172:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  172 | CCU_MUX_GATE_DEFINE(uart7_clk, uart_clk_parents, APBC_UART7_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:173:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  173 | CCU_MUX_GATE_DEFINE(uart8_clk, uart_clk_parents, APBC_UART8_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:174:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  174 | CCU_MUX_GATE_DEFINE(uart9_clk, uart_clk_parents, APBC_UART9_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:127:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  127 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  128 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu_mix.h:66:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
I: config: PASS in 0:00:10.227396
I: default: FAIL in 0:01:13.146974
I: kernel: SKIP in 0:00:00.000007
I: xipkernel: SKIP in 0:00:00.000004
I: modules: FAIL in 0:00:00.073721
I: dtbs: PASS in 0:00:01.442690
I: dtbs-legacy: SKIP in 0:00:00.010225
I: debugkernel: SKIP in 0:00:00.000005
I: headers: PASS in 0:00:01.059433
I: build output in /build/tmp.zdWM2L9aRO
   66 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:751:22: error: use of undeclared identifier 'slow_uart1_14p74'
  751 |         [CLK_SLOW_UART1]        = &slow_uart1_14p74.common.hw,
      |                                    ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:752:22: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
  752 |         [CLK_SLOW_UART2]        = &slow_uart2_48.common.hw,
      |                                    ^~~~~~~~~~~~~
      |                                    slow_uart
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:138:17: note: 'slow_uart' declared here
  138 | CCU_GATE_DEFINE(slow_uart, CCU_PARENT_NAME(osc), MPMU_ACGR, BIT(1), CLK_IGNORE_UNUSED);
      |                 ^
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:764:10: error: invalid application of 'sizeof' to an incomplete type 'struct clk_hw *[]'
  764 |         .num            = ARRAY_SIZE(k1_ccu_mpmu_hws),
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmpa9q8jg6k/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
18 errors generated.
make[6]: *** [/build/tmpa9q8jg6k/scripts/Makefile.build:287: drivers/clk/spacemit/ccu-k1.o] Error 1
make[6]: Target 'drivers/clk/spacemit/' not remade because of errors.
make[5]: *** [/build/tmpa9q8jg6k/scripts/Makefile.build:556: drivers/clk/spacemit] Error 2
make[5]: Target 'drivers/clk/' not remade because of errors.
make[4]: *** [/build/tmpa9q8jg6k/scripts/Makefile.build:556: drivers/clk] Error 2
make[4]: Target 'drivers/' not remade because of errors.
make[3]: *** [/build/tmpa9q8jg6k/scripts/Makefile.build:556: drivers] Error 2
make[3]: Target './' not remade because of errors.
make[2]: *** [/build/tmpa9q8jg6k/Makefile:2011: .] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmpa9q8jg6k/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.zdWM2L9aRO/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.zdWM2L9aRO/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.zdWM2L9aRO/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.zdWM2L9aRO/build/modinstall/lib/modules/6.17.0-rc1-00003-g953003ed53e9/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.zdWM2L9aRO/build/modinstall/lib/modules/6.17.0-rc1-00003-g953003ed53e9/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.zdWM2L9aRO/build/modinstall/lib/modules/6.17.0-rc1-00003-g953003ed53e9/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmpa9q8jg6k/Makefile:1917: modules_install] Error 2
make[1]: *** [/build/tmpa9q8jg6k/Makefile:248: __sub-make] Error 2
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.zdWM2L9aRO/build INSTALL_DTBS_PATH=/build/tmp.zdWM2L9aRO/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.zdWM2L9aRO/build/dtbsinstall
mkdir -p /build/tmp.zdWM2L9aRO/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.zdWM2L9aRO/build INSTALL_DTBS_PATH=/build/tmp.zdWM2L9aRO/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1754929405 --clamp-mtime -caf /build/tmp.zdWM2L9aRO/build/dtbs.tar -C /build/tmp.zdWM2L9aRO/build/dtbsinstall dtbs
rm -rf /build/tmp.zdWM2L9aRO/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.zdWM2L9aRO/build INSTALL_HDR_PATH=/build/tmp.zdWM2L9aRO/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1754929405 --clamp-mtime -caf /build/tmp.zdWM2L9aRO/build/headers.tar -C /build/tmp.zdWM2L9aRO/build/install_hdr .
warnings/errors:
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:78: error: too few arguments provided to function-like macro invocation
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:76: error: too few arguments provided to function-like macro invocation
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:163:16: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:164:16: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:166:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:167:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:168:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:169:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:170:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:171:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:172:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:173:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:174:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:751:22: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:752:22: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:764:10: error: invalid application of 'sizeof' to an incomplete type 'struct clk_hw *[]'


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 740.52 seconds
Result: ERROR
Output:

Redirect to /build/tmp.3LLobTDUuq and /build/tmp.15GyBksn5r
Tree base:
5a23f13de04f3 ("dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock")
Building the whole tree with the patch
error:
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:78: error: too few arguments provided to function-like macro invocation
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:76: error: too few arguments provided to function-like macro invocation
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:163:16: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:164:16: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:166:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:167:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:168:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:169:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:170:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:171:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:172:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:173:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:174:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:751:22: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:752:22: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:764:10: error: invalid application of 'sizeof' to an incomplete type 'struct clk_hw *[]'



real	12m14.241s
user	485m3.483s
sys	81m4.517s

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 974.49 seconds
Result: ERROR
Output:

Redirect to /build/tmp.AL0nSlySOl and /build/tmp.vGpIzmMV78
Tree base:
5a23f13de04f3 ("dt-bindings: clock: spacemit: introduce i2s pre-clock to fix i2s clock")
Building the whole tree with the patch
error:
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:78: error: macro "CCU_DDN_DEFINE" requires 9 arguments, but only 8 given
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:139:1: error: type defaults to 'int' in declaration of 'CCU_DDN_DEFINE' [-Wimplicit-int]
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:76: error: macro "CCU_DDN_DEFINE" requires 9 arguments, but only 8 given
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:140:1: error: type defaults to 'int' in declaration of 'CCU_DDN_DEFINE' [-Wimplicit-int]
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:163:23: error: 'slow_uart1_14p74' undeclared here (not in a function)
/build/tmpa9q8jg6k/drivers/clk/spacemit/ccu-k1.c:164:23: error: 'slow_uart2_48' undeclared here (not in a function); did you mean 'slow_uart'?



real	16m7.943s
user	641m28.116s
sys	98m55.222s

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.78 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 22.47 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.96 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 74.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
kdoc
Desc: Detects for kdoc errors
Duration: 0.83 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 2: "[v2,2/4] clk: spacemit: introduce pre-div for ddn clock"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 89.43 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.cqUeAZhr3V/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.cqUeAZhr3V/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.cqUeAZhr3V/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:78: error: too few arguments provided to function-like macro invocation
  139 | CCU_DDN_DEFINE(slow_uart1_14p74, pll1_d16_153p6, MPMU_SUCCR, 16, 13, 0, 13, 0);
      |                                                                              ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_ddn.h:27:9: note: macro 'CCU_DDN_DEFINE' defined here
   27 | #define CCU_DDN_DEFINE(_name, _parent, _reg_ctrl, _num_shift, _num_width,       \
      |         ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
  139 | CCU_DDN_DEFINE(slow_uart1_14p74, pll1_d16_153p6, MPMU_SUCCR, 16, 13, 0, 13, 0);
      | ^
      | int
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:76: error: too few arguments provided to function-like macro invocation
  140 | CCU_DDN_DEFINE(slow_uart2_48, pll1_d4_614p4, MPMU_SUCCR_1, 16, 13, 0, 13, 0);
      |                                                                            ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_ddn.h:27:9: note: macro 'CCU_DDN_DEFINE' defined here
   27 | #define CCU_DDN_DEFINE(_name, _parent, _reg_ctrl, _num_shift, _num_width,       \
      |         ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
  140 | CCU_DDN_DEFINE(slow_uart2_48, pll1_d4_614p4, MPMU_SUCCR_1, 16, 13, 0, 13, 0);
      | ^
      | int
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:163:16: error: use of undeclared identifier 'slow_uart1_14p74'
  163 |         CCU_PARENT_HW(slow_uart1_14p74),
      |                       ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:164:16: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
  164 |         CCU_PARENT_HW(slow_uart2_48),
      |                       ^~~~~~~~~~~~~
      |                       slow_uart
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:53:42: note: expanded from macro 'CCU_PARENT_HW'
   53 | #define CCU_PARENT_HW(_parent)          { .hw = &_parent.common.hw }
      |                                                  ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:138:17: note: 'slow_uart' declared here
  138 | CCU_GATE_DEFINE(slow_uart, CCU_PARENT_NAME(osc), MPMU_ACGR, BIT(1), CLK_IGNORE_UNUSED);
      |                 ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:166:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  166 | CCU_MUX_GATE_DEFINE(uart0_clk, uart_clk_parents, APBC_UART1_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:167:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  167 | CCU_MUX_GATE_DEFINE(uart2_clk, uart_clk_parents, APBC_UART2_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:168:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  168 | CCU_MUX_GATE_DEFINE(uart3_clk, uart_clk_parents, APBC_UART3_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:169:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  169 | CCU_MUX_GATE_DEFINE(uart4_clk, uart_clk_parents, APBC_UART4_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:170:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  170 | CCU_MUX_GATE_DEFINE(uart5_clk, uart_clk_parents, APBC_UART5_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:171:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  171 | CCU_MUX_GATE_DEFINE(uart6_clk, uart_clk_parents, APBC_UART6_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:172:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  172 | CCU_MUX_GATE_DEFINE(uart7_clk, uart_clk_parents, APBC_UART7_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:173:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  173 | CCU_MUX_GATE_DEFINE(uart8_clk, uart_clk_parents, APBC_UART8_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:174:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
  174 | CCU_MUX_GATE_DEFINE(uart9_clk, uart_clk_parents, APBC_UART9_CLK_RST, 4, 3, BIT(1), 0);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:128:3: note: expanded from macro 'CCU_MUX_GATE_DEFINE'
  128 |                 CCU_MIX_INITHW_PARENTS(_name, _parents,                         \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129 |                                        spacemit_ccu_mux_gate_ops, _flags),      \
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:67:13: note: expanded from macro 'CCU_MIX_INITHW_PARENTS'
I: config: PASS in 0:00:10.142497
I: default: FAIL in 0:01:12.925994
I: kernel: SKIP in 0:00:00.000009
I: xipkernel: SKIP in 0:00:00.000004
I: modules: FAIL in 0:00:00.078464
I: dtbs: PASS in 0:00:01.289914
I: dtbs-legacy: SKIP in 0:00:00.003724
I: debugkernel: SKIP in 0:00:00.000004
I: headers: PASS in 0:00:00.917194
I: build output in /build/tmp.cqUeAZhr3V
   67 |         .hw.init = CLK_HW_INIT_PARENTS_DATA(#_name, _parents, &_ops, _flags)
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/clk-provider.h:1561:18: note: expanded from macro 'CLK_HW_INIT_PARENTS_DATA'
 1561 |                 .num_parents    = ARRAY_SIZE(_parents),         \
      |                                   ^~~~~~~~~~~~~~~~~~~~
/build/tmprvbagxjf/include/linux/array_size.h:11:32: note: expanded from macro 'ARRAY_SIZE'
   11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
      |                                ^~~~~
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:642:20: error: too few arguments provided to function-like macro invocation
  642 |                     3, BIT(15), 0);
      |                                  ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu_mix.h:133:9: note: macro 'CCU_DIV_GATE_DEFINE' defined here
  133 | #define CCU_DIV_GATE_DEFINE(_name, _parent, _reg_ctrl, _shift, _width,          \
      |         ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:641:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
  641 | CCU_DIV_GATE_DEFINE(emmc_x_clk, CCU_PARENT_HW(pll1_d2_1228p8), APMU_PMUA_EM_CLK_RES_CTRL, 12,
      | ^
      | int
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:751:22: error: use of undeclared identifier 'slow_uart1_14p74'
  751 |         [CLK_SLOW_UART1]        = &slow_uart1_14p74.common.hw,
      |                                    ^
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:752:22: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
  752 |         [CLK_SLOW_UART2]        = &slow_uart2_48.common.hw,
      |                                    ^~~~~~~~~~~~~
      |                                    slow_uart
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:138:17: note: 'slow_uart' declared here
  138 | CCU_GATE_DEFINE(slow_uart, CCU_PARENT_NAME(osc), MPMU_ACGR, BIT(1), CLK_IGNORE_UNUSED);
      |                 ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[6]: *** [/build/tmprvbagxjf/scripts/Makefile.build:287: drivers/clk/spacemit/ccu-k1.o] Error 1
make[6]: Target 'drivers/clk/spacemit/' not remade because of errors.
make[5]: *** [/build/tmprvbagxjf/scripts/Makefile.build:556: drivers/clk/spacemit] Error 2
make[5]: Target 'drivers/clk/' not remade because of errors.
make[4]: *** [/build/tmprvbagxjf/scripts/Makefile.build:556: drivers/clk] Error 2
make[4]: Target 'drivers/' not remade because of errors.
make[3]: *** [/build/tmprvbagxjf/scripts/Makefile.build:556: drivers] Error 2
make[3]: Target './' not remade because of errors.
make[2]: *** [/build/tmprvbagxjf/Makefile:2011: .] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmprvbagxjf/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.cqUeAZhr3V/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.cqUeAZhr3V/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.cqUeAZhr3V/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.cqUeAZhr3V/build/modinstall/lib/modules/6.17.0-rc1-00004-gf67bac6fda4a/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.cqUeAZhr3V/build/modinstall/lib/modules/6.17.0-rc1-00004-gf67bac6fda4a/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.cqUeAZhr3V/build/modinstall/lib/modules/6.17.0-rc1-00004-gf67bac6fda4a/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmprvbagxjf/Makefile:1917: modules_install] Error 2
make[1]: *** [/build/tmprvbagxjf/Makefile:248: __sub-make] Error 2
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.cqUeAZhr3V/build INSTALL_DTBS_PATH=/build/tmp.cqUeAZhr3V/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.cqUeAZhr3V/build/dtbsinstall
mkdir -p /build/tmp.cqUeAZhr3V/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.cqUeAZhr3V/build INSTALL_DTBS_PATH=/build/tmp.cqUeAZhr3V/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1754929405 --clamp-mtime -caf /build/tmp.cqUeAZhr3V/build/dtbs.tar -C /build/tmp.cqUeAZhr3V/build/dtbsinstall dtbs
rm -rf /build/tmp.cqUeAZhr3V/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.cqUeAZhr3V/build INSTALL_HDR_PATH=/build/tmp.cqUeAZhr3V/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1754929405 --clamp-mtime -caf /build/tmp.cqUeAZhr3V/build/headers.tar -C /build/tmp.cqUeAZhr3V/build/install_hdr .
warnings/errors:
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:78: error: too few arguments provided to function-like macro invocation
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:76: error: too few arguments provided to function-like macro invocation
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:163:16: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:164:16: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:166:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:167:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:168:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:169:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:170:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:171:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:172:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:173:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:174:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:642:20: error: too few arguments provided to function-like macro invocation
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:641:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:751:22: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:752:22: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
fatal error: too many errors emitted, stopping now [-ferror-limit=]


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 740.30 seconds
Result: ERROR
Output:

Redirect to /build/tmp.jqSUSLMfNi and /build/tmp.d4vtEpmfvM
Tree base:
953003ed53e99 ("clk: spacemit: introduce pre-div for ddn clock")
Building the whole tree with the patch
error:
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:78: error: too few arguments provided to function-like macro invocation
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:76: error: too few arguments provided to function-like macro invocation
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:163:16: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:164:16: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:166:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:167:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:168:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:169:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:170:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:171:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:172:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:173:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:174:1: error: invalid application of 'sizeof' to an incomplete type 'const struct clk_parent_data[]'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:642:20: error: too few arguments provided to function-like macro invocation
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:641:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:751:22: error: use of undeclared identifier 'slow_uart1_14p74'
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:752:22: error: use of undeclared identifier 'slow_uart2_48'; did you mean 'slow_uart'?
fatal error: too many errors emitted, stopping now [-ferror-limit=]



real	12m14.139s
user	485m13.154s
sys	81m1.943s

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 974.38 seconds
Result: ERROR
Output:

Redirect to /build/tmp.8zeJWMsON1 and /build/tmp.kCczXwAIE0
Tree base:
953003ed53e99 ("clk: spacemit: introduce pre-div for ddn clock")
Building the whole tree with the patch
error:
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:78: error: macro "CCU_DDN_DEFINE" requires 9 arguments, but only 8 given
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:139:1: error: type defaults to 'int' in declaration of 'CCU_DDN_DEFINE' [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:76: error: macro "CCU_DDN_DEFINE" requires 9 arguments, but only 8 given
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:140:1: error: type defaults to 'int' in declaration of 'CCU_DDN_DEFINE' [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:163:23: error: 'slow_uart1_14p74' undeclared here (not in a function)
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:164:23: error: 'slow_uart2_48' undeclared here (not in a function); did you mean 'slow_uart'?
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:642:34: error: macro "CCU_DIV_GATE_DEFINE" requires 8 arguments, but only 7 given
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:641:1: error: type defaults to 'int' in declaration of 'CCU_DIV_GATE_DEFINE' [-Wimplicit-int]
/build/tmprvbagxjf/drivers/clk/spacemit/ccu-k1.c:901:36: error: 'emmc_x_clk' undeclared here (not in a function); did you mean 'emmc_clk'?



real	16m8.049s
user	640m17.141s
sys	98m55.306s

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 20.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 22.36 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.94 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 75.34 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
kdoc
Desc: Detects for kdoc errors
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
module-param
Desc: Detect module_param changes
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 3: "[v2,3/4] clk: spacemit: introduce factor for div clock"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 104.98 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1035.72 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1339.68 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.03 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.92 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.76 seconds
Result: WARNING
Output:

CHECK: Please use a blank line after function/struct/union/enum declarations
#54: FILE: drivers/clk/spacemit/ccu-k1.c:150:
+};
+CCU_MUX_DEFINE(i2s_153p6_base, i2s_153p6_base_parents, MPMU_FCCR, 29, 1, 0);

CHECK: Please use a blank line after function/struct/union/enum declarations
#60: FILE: drivers/clk/spacemit/ccu-k1.c:156:
+};
+CCU_MUX_GATE_DEFINE(i2s_sysclk_src, i2s_sysclk_src_parents, MPMU_ISCCR, 30, 1, BIT(31), 0);

total: 0 errors, 0 warnings, 2 checks, 56 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit ffcd34d81936 ("clk: spacemit: fix i2s clock") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 2 checks, 56 lines checked
CHECK: Please use a blank line after function/struct/union/enum declarations


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 75.13 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
kdoc
Desc: Detects for kdoc errors
Duration: 0.86 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 4: "[v2,4/4] clk: spacemit: fix i2s clock"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw990118 branch August 11, 2025 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants