Skip to contentSkip to conversation

HOTPLUG_CPU is not defined

DISCUSSION Francis Moreau 2 participants 6 messages Sep 30, 2008 – Oct 1, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

Hello

Any reasons why this macro is not defined for SH ?

thanks

Francis

#1 lore raw
Quoted 2 lines · Francis Moreau

Any reasons why this macro is not defined for SH ?

Yes, it's not implemented.

#2 lore raw
In reply to Francis Moreau
Quoted 5 lines · Paul Mundt
Quoted 2 lines · Francis Moreau

Any reasons why this macro is not defined for SH ?

Yes, it's not implemented.

Well, it doesn't really matter and it avoids some warnings emitted by Kconfig because of this in kernel/power/Kconfig:

config PM_SLEEP_SMP

        bool
        ....
        select HOTPLUG_CPU
        default y

thanks

Signature · 1 line
Francis
#3 lore raw
In reply to Francis Moreau
Quoted 11 lines · Francis Moreau
Quoted 5 lines · Paul Mundt
Quoted 2 lines · Francis Moreau

Any reasons why this macro is not defined for SH ?

Yes, it's not implemented.

Well, it doesn't really matter and it avoids some warnings emitted by Kconfig because of this in kernel/power/Kconfig:

Quoted 6 lines

config PM_SLEEP_SMP

        bool
        ....
        select HOTPLUG_CPU
        default y

We don't provide symbols for stuff we don't support. The fact people screw up select usage is nothing new, which is part of the reason it should generally be avoided.

Your options are either to fix the PM_SLEEP_SMP Kconfig behaviour, or ignore the warning. We're not going to paper around it in the architecture side at least.

#4 lore raw
In reply to Francis Moreau
Quoted 18 lines · Paul Mundt
Quoted 11 lines · Francis Moreau
Quoted 5 lines · Paul Mundt
Quoted 2 lines · Francis Moreau

Any reasons why this macro is not defined for SH ?

Yes, it's not implemented.

Well, it doesn't really matter and it avoids some warnings emitted by Kconfig because of this in kernel/power/Kconfig:

Quoted 6 lines

config PM_SLEEP_SMP

        bool
        ....
        select HOTPLUG_CPU
        default y
Quoted 4 lines

We don't provide symbols for stuff we don't support. The fact people screw up select usage is nothing new, which is part of the reason it should generally be avoided.

Still we could define it with a default value to 'n', in that case the symbol is not provided for the code and kconfig doesn't generate the warning anymore.

thanks

Signature · 1 line
Francis
#5 lore raw
In reply to Francis Moreau
Quoted 19 lines · Francis Moreau
Quoted 18 lines · Paul Mundt
Quoted 17 lines · Francis Moreau
Quoted 5 lines · Paul Mundt
Quoted 2 lines · Francis Moreau

Any reasons why this macro is not defined for SH ?

Yes, it's not implemented.

Well, it doesn't really matter and it avoids some warnings emitted by Kconfig because of this in kernel/power/Kconfig:

config PM_SLEEP_SMP

        bool
        ....
        select HOTPLUG_CPU
        default y
Quoted 9 lines
Quoted 4 lines

We don't provide symbols for stuff we don't support. The fact people screw up select usage is nothing new, which is part of the reason it should generally be avoided.

Still we could define it with a default value to 'n', in that case the symbol is not provided for the code and kconfig doesn't generate the warning anymore.

Except that 'select' negates that entirely if the symbol is defined, regardless of whether we give it a value or not. Presently we don't define any of the symbols that PM_SLEEP_SMP depends on:

config PM_SLEEP_SMP
bool
depends on SMP
depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE depends on PM_SLEEP
select HOTPLUG_CPU

If any of those dependencies change, the select will automatically enable HOTPLUG_CPU for us if we provide the symbol, regardless of whether it's just a bool or default n or whatever else.

If you want this warning to go away, either have the select dropped or get the Kconfig people to fix the dependency tracking. Again, we will not be papering around this in the architecture code. We do not make a habit of "fixing" things to make warnings go away when the warnings themselves are bogus. While the kernel janitors are fond of this sort of mindless work, it is actively harmful and doesn't help anything in the least.