Skip to contentSkip to conversation

linux-next: build failure after merge of the asahi-soc tree

DISCUSSION Stephen Rothwell 2 participants 3 messages Jun 4, 2023 – Jun 5, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

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)

Quoted 17 lines · Stephen Rothwell

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(

Quoted 8 lines
     |                            ^~~~~~~~~

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

#2 lore raw
Quoted 6 lines · Hector Martin "marcan

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...

Quoted 20 lines · Stephen Rothwell
Quoted 19 lines

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(

     |                            ^~~~~~~~~
Quoted 8 lines
Quoted 6 lines

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