Skip to contentSkip to conversation

Latest randconfig build errors for CONFIG_MMU=no

Suggestion Chen Gang 3 participants 6 messages Mar 14, 2013 – Mar 18, 2013

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

Hello Maintainers:

when use randconfig:
make V=1 EXTRA_CFLAGS=-W ARCH=arm randconfig
(and "grep CONFIG_MMU .config" outputs "# CONFIG_MMU is not set")

the error information:

    arch/arm/kernel/suspend.c: ????cpu_suspend??:
    arch/arm/kernel/suspend.c:56:32: ???????????????
    arch/arm/kernel/suspend.c:70:3: ??????????cpu_switch_mm? [-Werror=implicit-function-declaration]
    arch/arm/kernel/suspend.c:71:3: ??????????local_flush_bp_all? [-Werror=implicit-function-declaration]
    arch/arm/kernel/suspend.c:72:3: ??????????local_flush_tlb_all? [-Werror=implicit-function-declaration]

I want to be sure whether we can bear it ?

thanks.

Signature · 3 lines
Chen Gang

Asianux Corporation
author
#1 lore raw

also has additional information (maybe useful):

arch/arm/kernel/entry-armv.S:404:2: ???#warning "NPTL on non MMU needs fixing" [-Wcpp] arch/arm/kernel/entry-armv.S:867:2: ???#warning "NPTL on non MMU needs fixing" [-Wcpp] arch/arm/kernel/entry-armv.S:940:2: ???#warning "NPTL on non MMU needs fixing" [-Wcpp]

? 2013?03?14? 11:44, Chen Gang ??:

Quoted 17 lines

Hello Maintainers:

when use randconfig:
make V=1 EXTRA_CFLAGS=-W ARCH=arm randconfig
(and "grep CONFIG_MMU .config" outputs "# CONFIG_MMU is not set")

the error information:

    arch/arm/kernel/suspend.c: ????cpu_suspend??:
    arch/arm/kernel/suspend.c:56:32: ???????????????
    arch/arm/kernel/suspend.c:70:3: ??????????cpu_switch_mm? [-Werror=implicit-function-declaration]
    arch/arm/kernel/suspend.c:71:3: ??????????local_flush_bp_all? [-Werror=implicit-function-declaration]
    arch/arm/kernel/suspend.c:72:3: ??????????local_flush_tlb_all? [-Werror=implicit-function-declaration]

I want to be sure whether we can bear it ?

thanks.

Signature · 3 lines
Chen Gang

Asianux Corporation
#2 lore raw
In reply to Chen Gang

Hi Chen,

Quoted 6 lines · Chen Gang

Hello Maintainers:

when use randconfig:
make V=1 EXTRA_CFLAGS=-W ARCH=arm randconfig
(and "grep CONFIG_MMU .config" outputs "# CONFIG_MMU is not set")

Quoted 9 lines
   the error information:
     arch/arm/kernel/suspend.c: ????cpu_suspend??:
     arch/arm/kernel/suspend.c:56:32: ???????????????
     arch/arm/kernel/suspend.c:70:3: ??????????cpu_switch_mm? [-Werror=implicit-function-declaration]
     arch/arm/kernel/suspend.c:71:3: ??????????local_flush_bp_all? [-Werror=implicit-function-declaration]
     arch/arm/kernel/suspend.c:72:3: ??????????local_flush_tlb_all? [-Werror=implicit-function-declaration]

   I want to be sure whether we can bear it ?

You're right that at the moment that suspend code is broken for NOMMU.

However, Will Deacon has a patch to fix it in his nommu branch on kernel.org:

https://git.kernel.org/cgit/linux/kernel/git/will/linux.git/commit/?h=nommu

I'll let Will comment on how/when he might look at proposing that code to be merged.

Jonny

author
#3 lore raw

? 2013?03?14? 21:25, Jonathan Austin ??:

Quoted 6 lines

You're right that at the moment that suspend code is broken for NOMMU.

However, Will Deacon has a patch to fix it in his nommu branch on kernel.org:

Quoted 6 lines

https://git.kernel.org/cgit/linux/kernel/git/will/linux.git/commit/?h=nommu

I'll let Will comment on how/when he might look at proposing that code to be merged.

Jonny

thank you.

:-)

Signature · 3 lines
Chen Gang

Asianux Corporation
#4 lore raw
In reply to Jonathan Austin
Quoted 19 lines · Jonathan Austin
Quoted 6 lines · Chen Gang

Hello Maintainers:

when use randconfig:
make V=1 EXTRA_CFLAGS=-W ARCH=arm randconfig
(and "grep CONFIG_MMU .config" outputs "# CONFIG_MMU is not set")

Quoted 9 lines
   the error information:
     arch/arm/kernel/suspend.c: ????cpu_suspend??:
     arch/arm/kernel/suspend.c:56:32: ???????????????
     arch/arm/kernel/suspend.c:70:3: ??????????cpu_switch_mm? [-Werror=implicit-function-declaration]
     arch/arm/kernel/suspend.c:71:3: ??????????local_flush_bp_all? [-Werror=implicit-function-declaration]
     arch/arm/kernel/suspend.c:72:3: ??????????local_flush_tlb_all? [-Werror=implicit-function-declaration]

   I want to be sure whether we can bear it ?

You're right that at the moment that suspend code is broken for NOMMU.

Quoted 7 lines

However, Will Deacon has a patch to fix it in his nommu branch on kernel.org:

https://git.kernel.org/cgit/linux/kernel/git/will/linux.git/commit/?h=nommu

I'll let Will comment on how/when he might look at proposing that code to be merged.

I can probably bring that up to speed with -rc2 if people are interested. The tricky part is testing -- I used a software model that had a magic control block for killing off CPUs when I wrote this originally.

Will

author
#5 lore raw
Quoted 3 lines · Will Deacon

I can probably bring that up to speed with -rc2 if people are interested. The tricky part is testing -- I used a software model that had a magic control block for killing off CPUs when I wrote this originally.

excuse me, I am not familiar with ARM, so can not provide more ideas.

but at least for me, I think what you said seems valuable.

welcome any ARM experts to reply.

thanks.

:-)

Signature · 3 lines
Chen Gang

Asianux Corporation