Skip to contentSkip to conversation

fix resume from suspend when CONFIG_CC_STACKPROTECTOR

PATCH In review Peter Chubb 4 participants 5 messages Jul 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix resume from suspend when CONFIG_CC_STACKPROTECTOR

Patch 08687aec71bc9134fe336e561f6did877bacf74fc0a (x86: unify power/cpu_(32|64).c) renamed cpu_32.c to cpu.c, but did not update the special compilation flags for the file for the new name.

This patch fixes the compilation flags, and therefore fixes resume from suspend on my Acer Aspire One.

---
 arch/x86/power/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/power/Makefile +1 -1
Index: linux-2.6/arch/x86/power/Makefile
===================================================================
@@ -1,7 +1,7 @@
 # __restore_processor_state() restores %gs after S3 resume and so should not
 # itself be stack-protected
 nostackp := $(call cc-option, -fno-stack-protector)
-CFLAGS_cpu_$(BITS).o	:= $(nostackp)
+CFLAGS_cpu.o	:= $(nostackp)
 
 obj-$(CONFIG_PM_SLEEP)		+= cpu.o
 obj-$(CONFIG_HIBERNATION)	+= hibernate_$(BITS).o hibernate_asm_$(BITS).o

--
Dr Peter Chubb peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
All things shall perish from under the sky/Music alone shall live, never to die

#1 lore raw

Hi,

Quoted 8 lines · Peter Chubb

Patch 08687aec71bc9134fe336e561f6did877bacf74fc0a (x86: unify power/cpu_(32|64).c)  renamed cpu_32.c to cpu.c, but did not update the special compilation flags for the file for the new name.

This patch fixes the compilation flags, and therefore fixes resume from suspend on my Acer Aspire One.

yeah, I missed it, sorry for that. Thanks for catching it. CC'ing Rafael and Ingo, as they will know the best way to push the fix.

Quoted 19 lines

---
 arch/x86/power/Makefile |    2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/x86/power/Makefile
===================================================================

arch/x86/power/Makefile   2009-07-07 13:40:14.000000000 +1000 renamed from arch/x86/power/Makefile      2009-07-07 13:39:54.000000000 +1000 +1 -1
@@ -1,7 +1,7 @@
  # __restore_processor_state() restores %gs after S3 resume and so should not
  # itself be stack-protected
  nostackp := $(call cc-option, -fno-stack-protector)
-CFLAGS_cpu_$(BITS).o   := $(nostackp)
+CFLAGS_cpu.o   := $(nostackp)
 

 obj-$(CONFIG_PM_SLEEP)         += cpu.o obj-$(CONFIG_HIBERNATION)      += hibernate_$(BITS).o hibernate_asm_$(BITS).o

Quoted 5 lines

--
Dr Peter Chubb                                  peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au               ERTOS within National ICT Australia All things shall perish from under the sky/Music alone shall live, never to die

Sergio.

#2 lore raw
Quoted 8 lines · Sergio Luis

Hi,

Quoted 5 lines · Peter Chubb

Patch 08687aec71bc9134fe336e561f6did877bacf74fc0a (x86: unify power/cpu_(32|64).c) renamed cpu_32.c to cpu.c, but did not update the special compilation flags for the file for the new name.

Quoted 6 lines
Quoted 3 lines

This patch fixes the compilation flags, and therefore fixes resume from suspend on my Acer Aspire One.

yeah, I missed it, sorry for that. Thanks for catching it. CC'ing Rafael and Ingo, as they will know the best way to push the fix.

Thanks!

Ingo, do you want me to handle it?

Rafael

Quoted 26 lines
Quoted 20 lines
---
 arch/x86/power/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/x86/power/Makefile
===================================================================

arch/x86/power/Makefile 2009-07-07 13:40:14.000000000 +1000 renamed from arch/x86/power/Makefile 2009-07-07 13:39:54.000000000 +1000 +1 -2
@@ -1,7 +1,7 @@
 # __restore_processor_state() restores %gs after S3 resume and so should not
 # itself be stack-protected
 nostackp := $(call cc-option, -fno-stack-protector)
-CFLAGS_cpu_$(BITS).o   := $(nostackp)
+CFLAGS_cpu.o   := $(nostackp)
 
 obj-$(CONFIG_PM_SLEEP)         += cpu.o
 obj-$(CONFIG_HIBERNATION)      += hibernate_$(BITS).o hibernate_asm_$(BITS).o
 
--
Quoted 4 lines

Dr Peter Chubb peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
All things shall perish from under the sky/Music alone shall live, never to die

Sergio.

#3 lore raw
Quoted 13 lines · Rafael J. Wysocki
Quoted 12 lines · Sergio Luis

Hi,

Quoted 8 lines · Peter Chubb

Patch 08687aec71bc9134fe336e561f6did877bacf74fc0a (x86: unify power/cpu_(32|64).c) renamed cpu_32.c to cpu.c, but did not update the special compilation flags for the file for the new name.

This patch fixes the compilation flags, and therefore fixes resume from suspend on my Acer Aspire One.

Quoted 6 lines
Quoted 2 lines

yeah, I missed it, sorry for that. Thanks for catching it. CC'ing Rafael and Ingo, as they will know the best way to push the fix.

Thanks!

Ingo, do you want me to handle it?

Yes, please. (Ingo is AFK this week)

Thanks,

tglx

#4 lore raw
Quoted 15 lines · Thomas Gleixner
Quoted 13 lines · Rafael J. Wysocki
Quoted 12 lines · Sergio Luis

Hi,

Quoted 8 lines · Peter Chubb

Patch 08687aec71bc9134fe336e561f6did877bacf74fc0a (x86: unify power/cpu_(32|64).c) renamed cpu_32.c to cpu.c, but did not update the special compilation flags for the file for the new name.

This patch fixes the compilation flags, and therefore fixes resume from suspend on my Acer Aspire One.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

yeah, I missed it, sorry for that. Thanks for catching it. CC'ing Rafael and Ingo, as they will know the best way to push the fix.

Thanks!

Ingo, do you want me to handle it?

Yes, please. (Ingo is AFK this week)

I'll do that, then.

Thanks,
Rafael