public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Ulf Hansson <ulf.hansson@linaro•org>
Cc: AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora•com>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: linux-next: build failure after merge of the pmdomain tree
Date: Thu, 23 Oct 2025 10:30:20 +1100	[thread overview]
Message-ID: <20251023103020.20e9c1cf@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 5337 bytes --]

Hi all,

After merging the pmdomain tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

drivers/pmdomain/mediatek/mtk-pm-domains.c: In function 'scpsys_sec_infra_power_on':
drivers/pmdomain/mediatek/mtk-pm-domains.c:128:30: error: storage size of 'res' isn't known
  128 |         struct arm_smccc_res res;
      |                              ^~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:131:9: error: implicit declaration of function 'arm_smccc_smc' [-Wimplicit-function-declaration]
  131 |         arm_smccc_smc(MTK_SIP_KERNEL_HWCCF_CONTROL, cmd, 0, 0, 0, 0, 0, 0, &res);
      |         ^~~~~~~~~~~~~
In file included from drivers/pmdomain/mediatek/mtk-pm-domains.c:18:
include/linux/soc/mediatek/mtk_sip_svc.h:22:9: error: implicit declaration of function 'ARM_SMCCC_CALL_VAL' [-Wimplicit-function-declaration]
   22 |         ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \
      |         ^~~~~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:56:41: note: in expansion of macro 'MTK_SIP_SMC_CMD'
   56 | #define MTK_SIP_KERNEL_HWCCF_CONTROL    MTK_SIP_SMC_CMD(0x540)
      |                                         ^~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:131:23: note: in expansion of macro 'MTK_SIP_KERNEL_HWCCF_CONTROL'
  131 |         arm_smccc_smc(MTK_SIP_KERNEL_HWCCF_CONTROL, cmd, 0, 0, 0, 0, 0, 0, &res);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/soc/mediatek/mtk_sip_svc.h:22:28: error: 'ARM_SMCCC_FAST_CALL' undeclared (first use in this function)
   22 |         ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \
      |                            ^~~~~~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:56:41: note: in expansion of macro 'MTK_SIP_SMC_CMD'
   56 | #define MTK_SIP_KERNEL_HWCCF_CONTROL    MTK_SIP_SMC_CMD(0x540)
      |                                         ^~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:131:23: note: in expansion of macro 'MTK_SIP_KERNEL_HWCCF_CONTROL'
  131 |         arm_smccc_smc(MTK_SIP_KERNEL_HWCCF_CONTROL, cmd, 0, 0, 0, 0, 0, 0, &res);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/soc/mediatek/mtk_sip_svc.h:22:28: note: each undeclared identifier is reported only once for each function it appears in
   22 |         ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \
      |                            ^~~~~~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:56:41: note: in expansion of macro 'MTK_SIP_SMC_CMD'
   56 | #define MTK_SIP_KERNEL_HWCCF_CONTROL    MTK_SIP_SMC_CMD(0x540)
      |                                         ^~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:131:23: note: in expansion of macro 'MTK_SIP_KERNEL_HWCCF_CONTROL'
  131 |         arm_smccc_smc(MTK_SIP_KERNEL_HWCCF_CONTROL, cmd, 0, 0, 0, 0, 0, 0, &res);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/soc/mediatek/mtk_sip_svc.h:18:41: error: 'ARM_SMCCC_SMC_32' undeclared (first use in this function)
   18 | #define MTK_SIP_SMC_CONVENTION          ARM_SMCCC_SMC_32
      |                                         ^~~~~~~~~~~~~~~~
include/linux/soc/mediatek/mtk_sip_svc.h:22:49: note: in expansion of macro 'MTK_SIP_SMC_CONVENTION'
   22 |         ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:56:41: note: in expansion of macro 'MTK_SIP_SMC_CMD'
   56 | #define MTK_SIP_KERNEL_HWCCF_CONTROL    MTK_SIP_SMC_CMD(0x540)
      |                                         ^~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:131:23: note: in expansion of macro 'MTK_SIP_KERNEL_HWCCF_CONTROL'
  131 |         arm_smccc_smc(MTK_SIP_KERNEL_HWCCF_CONTROL, cmd, 0, 0, 0, 0, 0, 0, &res);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/soc/mediatek/mtk_sip_svc.h:23:28: error: 'ARM_SMCCC_OWNER_SIP' undeclared (first use in this function)
   23 |                            ARM_SMCCC_OWNER_SIP, fn_id)
      |                            ^~~~~~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:56:41: note: in expansion of macro 'MTK_SIP_SMC_CMD'
   56 | #define MTK_SIP_KERNEL_HWCCF_CONTROL    MTK_SIP_SMC_CMD(0x540)
      |                                         ^~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:131:23: note: in expansion of macro 'MTK_SIP_KERNEL_HWCCF_CONTROL'
  131 |         arm_smccc_smc(MTK_SIP_KERNEL_HWCCF_CONTROL, cmd, 0, 0, 0, 0, 0, 0, &res);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:128:30: warning: unused variable 'res' [-Wunused-variable]
  128 |         struct arm_smccc_res res;
      |                              ^~~
drivers/pmdomain/mediatek/mtk-pm-domains.c:133:1: error: control reaches end of non-void function [-Werror=return-type]
  133 | }
      | ^
cc1: some warnings being treated as errors

Caused by commit

  df4e9ec1ed86 ("pmdomain: mediatek: Add support for secure HWCCF infra power on")

(and maybe others)

I have used the pmdomain tree from next-20251022 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2025-10-22 23:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-22 23:30 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-20  0:33 linux-next: build failure after merge of the pmdomain tree Stephen Rothwell
2025-02-20  1:53 ` Shawn Lin
2025-02-24  1:23 ` Stephen Rothwell
2025-02-24  5:20   ` Stephen Rothwell
2025-02-24 12:16     ` Ulf Hansson
2025-02-25  0:34       ` Martin K. Petersen
2025-02-27 15:56       ` Geert Uytterhoeven
2025-02-27 16:16         ` Heiko Stübner
2025-02-27 17:05           ` Geert Uytterhoeven
2025-02-28  9:01             ` Heiko Stübner
2025-02-28  9:41               ` Geert Uytterhoeven
2025-02-28 12:59               ` Ulf Hansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251023103020.20e9c1cf@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=angelogioacchino.delregno@collabora$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=ulf.hansson@linaro$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox