mbox series

[0/3] x86 bugfixes for LTO

Message ID 20180202145434.100626-1-arnd@arndb.de
Headers show
Series x86 bugfixes for LTO | expand

Message

Arnd Bergmann Feb. 2, 2018, 2:54 p.m. UTC
Here are three bugfixes for x86 that I needed to get LTO-enabled
kernels to build reliably. I'm not sure abouto that first one
though.

None of these are urgent, as they don't show up in mainline
kernels and they don't indicate serious problems.

Arnd Bergmann (3):
  x86: dumpstack: avoid uninitialized variable
  x86: fix swsusp_arch_resume prototype
  x86: error_inject: make  just_return_func globally visible

 arch/x86/kernel/dumpstack.c   | 2 +-
 arch/x86/lib/error-inject.c   | 1 +
 arch/x86/power/hibernate_32.c | 2 +-
 arch/x86/power/hibernate_64.c | 2 +-
 include/linux/suspend.h       | 2 ++
 kernel/power/power.h          | 3 ---
 6 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.9.0

Comments

Chris Wilson Feb. 9, 2018, 10:24 p.m. UTC | #1
Quoting Arnd Bergmann (2018-02-02 14:54:28)
> Here are three bugfixes for x86 that I needed to get LTO-enabled

> kernels to build reliably. I'm not sure abouto that first one

> though.


Is there a howto on how to build LTO kernels? I tried Andi's lto-415-2
branch, but linking fails with lots of arcane PIE-vs-PIC errors. We are
wanting to investigate how we can use LTO to reduce our (i915.ko) module
size (by e.g. supporting a subset of chipsets).
-Chris
Andi Kleen Feb. 9, 2018, 11 p.m. UTC | #2
On Fri, Feb 09, 2018 at 10:24:33PM +0000, Chris Wilson wrote:
> Quoting Arnd Bergmann (2018-02-02 14:54:28)

> > Here are three bugfixes for x86 that I needed to get LTO-enabled

> > kernels to build reliably. I'm not sure abouto that first one

> > though.

> 

> Is there a howto on how to build LTO kernels? I tried Andi's lto-415-2

> branch, but linking fails with lots of arcane PIE-vs-PIC errors. We are

> wanting to investigate how we can use LTO to reduce our (i915.ko) module

> size (by e.g. supporting a subset of chipsets).


What are the errors? Kernel shouldn't use PIE or PIC

-Andi