Skip to contentSkip to conversation

linux-next: build failure after merge of the asm-generic tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Jul 20, 2022 – Jul 21, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the asm-generic tree, today's linux-next build (arm64 defconfig) failed like this:

drivers/char/mem.c: In function 'page_is_allowed':
drivers/char/mem.c:66:16: error: implicit declaration of function 'devmem_is_allowed'; did you mean 'page_is_allowed'? [-Werror=implicit-function-declaration]

   66 |         return devmem_is_allowed(pfn);
      |                ^~~~~~~~~~~~~~~~~
      |                page_is_allowed

cc1: some warnings being treated as errors

Caused by commit

cdfde8f61a00 ("asm-generic: correct reference to GENERIC_LIB_DEVMEM_IS_ALLOWED")

arm64 does not have a separate declaration of devmem_is_allowed() and was using the asm-generic one by accident ... some other architectures may be in the same boat.

I have reverted that commit for today.

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

Hi all,

After merging the asm-generic tree, today's linux-next build (arm64 defconfig) failed like this:

drivers/char/mem.c: In function 'page_is_allowed':
drivers/char/mem.c:66:16: error: implicit declaration of function 'devmem_is_allowed'; did you mean 'page_is_allowed'? [-Werror=implicit-function-declaration]

   66 |         return devmem_is_allowed(pfn);
      |                ^~~~~~~~~~~~~~~~~
      |                page_is_allowed

cc1: some warnings being treated as errors

Caused by commit

Quoted 7 lines

cdfde8f61a00 ("asm-generic: correct reference to GENERIC_LIB_DEVMEM_IS_ALLOWED")

arm64 does not have a separate declaration of devmem_is_allowed() and was using the asm-generic one by accident ... some other architectures may be in the same boat.

I have reverted that commit for today.

My mistake. I was already aware that the patch was broken, and Lukas said he wanted to send an updated version. Unfortunately I picked up the old version of my asm-generic-fixes branch as I applied a different patch. I've reworked the branch to take this one out again now.

Arnd

#2 lore raw
Quoted 23 lines · Arnd Bergmann
Quoted 21 lines · Stephen Rothwell

Hi all,

After merging the asm-generic tree, today's linux-next build (arm64 defconfig) failed like this:

drivers/char/mem.c: In function 'page_is_allowed':
drivers/char/mem.c:66:16: error: implicit declaration of function 'devmem_is_allowed'; did you mean 'page_is_allowed'? [-Werror=implicit-function-declaration]

   66 |         return devmem_is_allowed(pfn);
      |                ^~~~~~~~~~~~~~~~~
      |                page_is_allowed

cc1: some warnings being treated as errors

Caused by commit

cdfde8f61a00 ("asm-generic: correct reference to GENERIC_LIB_DEVMEM_IS_ALLOWED")

arm64 does not have a separate declaration of devmem_is_allowed() and was using the asm-generic one by accident ... some other architectures may be in the same boat.

Quoted 7 lines
Quoted 1 line

I have reverted that commit for today.

My mistake. I was already aware that the patch was broken, and Lukas said he wanted to send an updated version. Unfortunately I picked up the old version of my asm-generic-fixes branch as I applied a different patch. I've reworked the branch to take this one out again now.

Stephen, thanks for testing and already the first quick analysis on the issue. I will try to get an updated version in place and then we can see which architectures beyond arm64 really need more care.

Lukas