Bug 199283 - sorry, unimplemented: inlining failed in call to 'x': function not inlinable
Summary: sorry, unimplemented: inlining failed in call to 'x': function not inlinable
Status: RESOLVED OBSOLETE
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: x86-64 (show other bugs)
Hardware: x86-64 Linux
: P1 high
Assignee: platform_x86_64@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-04 05:53 UTC by Steven Haigh
Modified: 2022-01-06 23:31 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.14.26+
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

Description Steven Haigh 2018-04-04 05:53:13 UTC
After kernel version 4.14.26 onwards, we are now unable to compile on EL6 environments.

The error messages presented on the build are:
BUILDSTDERR: arch/x86/kernel/head64.c: In function 'copy_bootdata':
BUILDSTDERR: ./arch/x86/include/asm/mem_encrypt.h:59: sorry, unimplemented: inlining failed in call to 'sme_map_bootdata': function not inlinable
BUILDSTDERR: arch/x86/kernel/head64.c:294: sorry, unimplemented: called from here
BUILDSTDERR: ./arch/x86/include/asm/mem_encrypt.h:60: sorry, unimplemented: inlining failed in call to 'sme_unmap_bootdata': function not inlinable
BUILDSTDERR: arch/x86/kernel/head64.c:310: sorry, unimplemented: called from here
BUILDSTDERR: make[2]: *** [arch/x86/kernel/head64.o] Error 1
BUILDSTDERR: make[1]: *** [arch/x86/kernel] Error 2
BUILDSTDERR: make: *** [arch/x86] Error 2

I believe the patch in question is:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/
commit/arch/x86/include/asm/mem_encrypt.h?
h=linux-4.14.y&id=e0f82cbde41353ddf63935175583ceb5580cce87

It seems to be the only change to these files in quite a while.

The gcc version on RHEL6 is:
gcc-c++-4.4.7-18.el6_9.2.x86_64
Comment 1 Steven Haigh 2018-04-04 11:23:45 UTC
Rolling back the gcc packages in RHEL6, the kernel compiles pre-retpoline patches / updates.

Changelog in the RPM packages show:
* Wed Jan 31 2018 Jeff Law <law@redhat.com> 4.4.7-18.2 
- Fix indirect_jump/tablejump patters for retpolines (#1535656) 

* Tue Jan 23 2018 Jeff Law <law@redhat.com> 4.4.7-18.1 
- Retpoline support (#1535656)

https://bugzilla.redhat.com/show_bug.cgi?id=1535656

Currently shows as a private bug.
Comment 2 Borislav Petkov 2022-01-06 23:31:48 UTC
Looks forgotten, closing. Feel free to reopen if still of interest.

Note You need to log in before you can comment on or make changes to this bug.