public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the asahi-soc tree
@ 2023-06-04 22:58 Stephen Rothwell
  2023-06-04 23:11 ` Hector Martin "marcan"
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2023-06-04 22:58 UTC (permalink / raw)
  To: Hector Martin; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the asahi-soc tree, today's linux-next build (x86_64
allmodconfig) failed like this:

In file included from include/linux/io.h:13,
                 from drivers/soc/apple/mailbox.c:22:
drivers/soc/apple/mailbox.c: In function 'apple_mbox_send':
drivers/soc/apple/mailbox.c:151:24: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
  151 |         writeq_relaxed(FIELD_PREP(APPLE_MBOX_MSG1_MSG, msg.msg1),
      |                        ^~~~~~~~~~
arch/x86/include/asm/io.h:103:42: note: in definition of macro 'writeq_relaxed'
  103 | #define writeq_relaxed(v, a)    __writeq(v, a)
      |                                          ^
drivers/soc/apple/mailbox.c: In function 'apple_mbox_poll_locked':
drivers/soc/apple/mailbox.c:188:28: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
  188 |                 msg.msg1 = FIELD_GET(
      |                            ^~~~~~~~~

Caused by commit

  0d1f3f7f8486 ("soc: apple: mailbox: Add ASC/M3 mailbox driver")

I have used the asshi-soc tree from next-20230602 for today.

-- 
Cheers,
Stephen Rothwell

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the asahi-soc tree
  2023-06-04 22:58 linux-next: build failure after merge of the asahi-soc tree Stephen Rothwell
@ 2023-06-04 23:11 ` Hector Martin "marcan"
  2023-06-05  1:21   ` Hector Martin
  0 siblings, 1 reply; 3+ messages in thread
From: Hector Martin "marcan" @ 2023-06-04 23:11 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

Hi!

Thanks, looks like a missing include. I'll fix it up when I get home in a bit. Sorry for the noise!

(And apologies for top-posting, I'm on mobile right now)

On June 5, 2023 7:58:16 AM GMT+09:00, Stephen Rothwell <sfr@canb•auug.org.au> wrote:
>Hi all,
>
>After merging the asahi-soc tree, today's linux-next build (x86_64
>allmodconfig) failed like this:
>
>In file included from include/linux/io.h:13,
>                 from drivers/soc/apple/mailbox.c:22:
>drivers/soc/apple/mailbox.c: In function 'apple_mbox_send':
>drivers/soc/apple/mailbox.c:151:24: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
>  151 |         writeq_relaxed(FIELD_PREP(APPLE_MBOX_MSG1_MSG, msg.msg1),
>      |                        ^~~~~~~~~~
>arch/x86/include/asm/io.h:103:42: note: in definition of macro 'writeq_relaxed'
>  103 | #define writeq_relaxed(v, a)    __writeq(v, a)
>      |                                          ^
>drivers/soc/apple/mailbox.c: In function 'apple_mbox_poll_locked':
>drivers/soc/apple/mailbox.c:188:28: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
>  188 |                 msg.msg1 = FIELD_GET(
>      |                            ^~~~~~~~~
>
>Caused by commit
>
>  0d1f3f7f8486 ("soc: apple: mailbox: Add ASC/M3 mailbox driver")
>
>I have used the asshi-soc tree from next-20230602 for today.
>

- Hector

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: build failure after merge of the asahi-soc tree
  2023-06-04 23:11 ` Hector Martin "marcan"
@ 2023-06-05  1:21   ` Hector Martin
  0 siblings, 0 replies; 3+ messages in thread
From: Hector Martin @ 2023-06-05  1:21 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linux Kernel Mailing List, Linux Next Mailing List, Asahi Linux

On 05/06/2023 08.11, Hector Martin "marcan" wrote:
> Hi!
> 
> Thanks, looks like a missing include. I'll fix it up when I get home in a bit. Sorry for the noise!
> 
> (And apologies for top-posting, I'm on mobile right now)
> 

Should be fixed now, thanks again!

TIL that allmodconfig includes COMPILE_TEST. Makes sense though. I don't
build test for x86 often, and I think on arm64 we get bitfield.h pulled
in via common headers, so this isn't the first time I've missed this one...

> On June 5, 2023 7:58:16 AM GMT+09:00, Stephen Rothwell <sfr@canb•auug.org.au> wrote:
>> Hi all,
>>
>> After merging the asahi-soc tree, today's linux-next build (x86_64
>> allmodconfig) failed like this:
>>
>> In file included from include/linux/io.h:13,
>>                 from drivers/soc/apple/mailbox.c:22:
>> drivers/soc/apple/mailbox.c: In function 'apple_mbox_send':
>> drivers/soc/apple/mailbox.c:151:24: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
>>  151 |         writeq_relaxed(FIELD_PREP(APPLE_MBOX_MSG1_MSG, msg.msg1),
>>      |                        ^~~~~~~~~~
>> arch/x86/include/asm/io.h:103:42: note: in definition of macro 'writeq_relaxed'
>>  103 | #define writeq_relaxed(v, a)    __writeq(v, a)
>>      |                                          ^
>> drivers/soc/apple/mailbox.c: In function 'apple_mbox_poll_locked':
>> drivers/soc/apple/mailbox.c:188:28: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
>>  188 |                 msg.msg1 = FIELD_GET(
>>      |                            ^~~~~~~~~
>>
>> Caused by commit
>>
>>  0d1f3f7f8486 ("soc: apple: mailbox: Add ASC/M3 mailbox driver")
>>
>> I have used the asshi-soc tree from next-20230602 for today.
>>
> 
> - Hector

- Hector


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-05  1:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-04 22:58 linux-next: build failure after merge of the asahi-soc tree Stephen Rothwell
2023-06-04 23:11 ` Hector Martin "marcan"
2023-06-05  1:21   ` Hector Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox