Wrong commit in the ACPI release branch
Hi Len,
The following commit:
(ACPI: eliminate unused variable warning for !ACPI_SLEEP) is actually wrong, because it's going to break compilation for (!CONFIG_PM_SLEEP && CONFIG_PM_RUNTIME).
I haven't seen it before, let alone acking it or something like this, so I wonder why it's being pushed directly to Linus?
Thanks,
Rafael
Quoted 9 lines
Quoted 1 line
Quoted 1 line · Rafael J. Wysocki
The following commit:
http://git.kernel.org/?p=linux/kernel/git/lenb/linux-acpi-2.6.git;a=commit;h
=091aad6af4ab29af693ced5d6970ceee9d5981c8(ACPI: eliminate unused variable warning for !ACPI_SLEEP) is actually wrong, because it's going to break compilation for (!CONFIG_PM_SLEEP &&
CONFIG_PM_RUNTIME).
How would this break compilation in *any* configuration? The variable definition got moved into an #ifdef the #else of which has
#define acpi_target_sleep_state ACPI_STATE_S0
Jan
Quoted 9 lines
Quoted 1 line
Quoted 1 line · Rafael J. Wysocki
The following commit:
http://git.kernel.org/?p=linux/kernel/git/lenb/linux-acpi-2.6.git;a=commit;h
=091aad6af4ab29af693ced5d6970ceee9d5981c8(ACPI: eliminate unused variable warning for !ACPI_SLEEP) is actually wrong, because it's going to break compilation for (!CONFIG_PM_SLEEP &&
CONFIG_PM_RUNTIME).
How would this break compilation in *any* configuration? The variable definition got moved into an #ifdef the #else of which has
#define acpi_target_sleep_state ACPI_STATE_S0
Jan
Len Brown
reviewerQuoted 5 lines · Rafael J. Wysocki
(ACPI: eliminate unused variable warning for !ACPI_SLEEP) is actually wrong, because it's going to break compilation for (!CONFIG_PM_SLEEP &&
CONFIG_PM_RUNTIME).
That's funny, that config builds for me.
It got through my 399 kernel build test, as well as linux-next.
If you have a .config that breaks, please send it to me.
Quoted 2 lines
I haven't seen it before, let alone acking it or something like this, so I wonder why it's being pushed directly to Linus?
it fixes an unused variable warning if !CONFG_ACPI_SLEEP, per the commit message.
thanks,
Len Brown, Intel Open Source Technology Center
Len Brown
reviewerQuoted 5 lines · Rafael J. Wysocki
(ACPI: eliminate unused variable warning for !ACPI_SLEEP) is actually wrong, because it's going to break compilation for (!CONFIG_PM_SLEEP &&
CONFIG_PM_RUNTIME).
That's funny, that config builds for me.
It got through my 399 kernel build test, as well as linux-next.
If you have a .config that breaks, please send it to me.
Quoted 2 lines
I haven't seen it before, let alone acking it or something like this, so I wonder why it's being pushed directly to Linus?
it fixes an unused variable warning if !CONFG_ACPI_SLEEP, per the commit message.
thanks,
Len Brown, Intel Open Source Technology Center
Quoted 10 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · Rafael J. Wysocki
The following commit:
http://git.kernel.org/?p=linux/kernel/git/lenb/linux-acpi-2.6.git;a=commit;h
=091aad6af4ab29af693ced5d6970ceee9d5981c8(ACPI: eliminate unused variable warning for !ACPI_SLEEP) is actually wrong, because it's going to break compilation for (!CONFIG_PM_SLEEP &&
CONFIG_PM_RUNTIME).
Quoted 5 lines
How would this break compilation in *any* configuration? The variable definition got moved into an #ifdef the #else of which has
#define
acpi_target_sleep_stateACPI_STATE_S0
OK, I seem to haven't looked at the patch carefully enough, sorry for the noise.
Rafael
Quoted 10 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · Rafael J. Wysocki
The following commit:
http://git.kernel.org/?p=linux/kernel/git/lenb/linux-acpi-2.6.git;a=commit;h
=091aad6af4ab29af693ced5d6970ceee9d5981c8(ACPI: eliminate unused variable warning for !ACPI_SLEEP) is actually wrong, because it's going to break compilation for (!CONFIG_PM_SLEEP &&
CONFIG_PM_RUNTIME).
Quoted 5 lines
How would this break compilation in *any* configuration? The variable definition got moved into an #ifdef the #else of which has
#define
acpi_target_sleep_stateACPI_STATE_S0
OK, I seem to haven't looked at the patch carefully enough, sorry for the noise.
Rafael