From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jingoo Han Subject: Re: livepatching tree for linux-next Date: Thu, 08 Jan 2015 11:22:32 +0900 Message-ID: <000601d02ae9$f56e0880$e04a1980$%han@samsung.com> References: <20141223094607.GA16445@infradead.org> <20141223151056.GA4789@treble.redhat.com> <20141226155613.36dd95b9@canb.auug.org.au> <20150107144317.61ab2080877a4d8227990551@linux-foundation.org> <20150107153006.60ed354e3458f402e6819b9e@linux-foundation.org> <20150107155701.4839545f63701412003edd88@linux-foundation.org> <20150107163345.ae3ed8f2e4501e258ff01512@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <20150107163345.ae3ed8f2e4501e258ff01512@linux-foundation.org> Content-language: ko Sender: linux-kernel-owner@vger.kernel.org To: 'Andrew Morton' , 'Jiri Kosina' Cc: 'Stephen Rothwell' , 'Josh Poimboeuf' , 'Christoph Hellwig' , linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-next@vger.kernel.org, 'Steven Rostedt' , 'Masami Hiramatsu' , 'Jingoo Han' List-Id: linux-next.vger.kernel.org On Thursday, January 08, 2015 9:34 AM, Andrew Morton wrote: > On Thu, 8 Jan 2015 01:11:03 +0100 (CET) Jiri Kosina wrote: > > > On Wed, 7 Jan 2015, Andrew Morton wrote: > > > > > > --- a/kernel/livepatch/core.c > > > > +++ b/kernel/livepatch/core.c > > > > @@ -911,6 +911,12 @@ static int klp_init(void) > > > > { > > > > int ret; > > > > > > > > + ret = klp_check_compiler_support(); > > > > + if (ret) { > > > > + pr_info("Your compiler is too old; turning off.\n"); > > > > + return -EINVAL; > > > > + } > > > > + > > > > > > Looks reasonable. > > > > Thanks. Can I treat this as your Reported-and-tested-by .. ? > > I compile tested it. Then I got bored trying to hunt down all the > Kconfig things I needed to turn on to runtime test it ;) > > btw, I suggest using HAVE_LIVE_PATCHING instead of > ARCH_HAVE_LIVE_PATCHING. because this: I agree with your opinion. :-) Using 'HAVE_LIVE_PATCHING' looks better. Best regards, Jingoo Han > > akpm3:/usr/src/25> grep " HAVE_" arch/x86/Kconfig | wc -l > 67 > akpm3:/usr/src/25> grep " ARCH_HAVE_" arch/x86/Kconfig | wc -l > 3 > akpm3:/usr/src/25> grep " ARCH_HAS_" arch/x86/Kconfig | wc -l > 7 > akpm3:/usr/src/25> grep " HAVE_ARCH" arch/x86/Kconfig | wc -l > 8 > akpm3:/usr/src/25> grep " ARCH_USE" arch/x86/Kconfig | wc -l > 4 > akpm3:/usr/src/25> grep " ARCH_WANT" arch/x86/Kconfig | wc -l > 6 > > makes me cry.