lkml.org 
[lkml]   [2014]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv3 2/3] kernel: add support for live patching
On Fri, Nov 21, 2014 at 04:27:57PM +0100, Jiri Kosina wrote:
> On Fri, 21 Nov 2014, Josh Poimboeuf wrote:
>
> > I think we can use "depends on HAVE_FENTRY" to accomplish this, since
> > CC_USING_FENTRY gets set by the top level kernel Makefile if
> > CONFIG_HAVE_FENTRY is set.
>
> The problem is that HAVE_FENTRY is set automatically on x86_64, no matter
> whether your actual compiler supports it or not.
>
> CC_USING_FENTRY is defined if and only if the actual currently used
> compiler supports it, but that can't be expressed in Kconfig.

Ah, light bulb moment. Now I understand what "$(call cc-option, ...)"
does.

Thanks :-)

--
Josh


\
 
 \ /
  Last update: 2014-11-21 17:21    [W:0.074 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site