Skip to contentSkip to conversation

Wrong commit in the ACPI release branch

DISCUSSION Rafael J. Wysocki 3 participants 7 messages Dec 11, 2010 – Dec 13, 2010 ACPI

lore
Share & tools
lore
#0 lore raw

Hi Len,

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

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

#1 lore raw
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

#4 lore raw
In reply to Rafael J. Wysocki
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

reviewer
#5 lore raw
In reply to Rafael J. Wysocki
Quoted 5 lines · Rafael J. Wysocki

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

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

reviewer
#6 lore raw
In reply to Rafael J. Wysocki
Quoted 5 lines · Rafael J. Wysocki

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

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

#2 lore raw
In reply to Jan Beulich
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_state ACPI_STATE_S0

OK, I seem to haven't looked at the patch carefully enough, sorry for the noise.

Rafael

#3 lore raw
In reply to Jan Beulich
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_state ACPI_STATE_S0

OK, I seem to haven't looked at the patch carefully enough, sorry for the noise.

Rafael