Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753493AbcLGQLb (ORCPT ); Wed, 7 Dec 2016 11:11:31 -0500 Received: from mail-wj0-f193.google.com ([209.85.210.193]:34852 "EHLO mail-wj0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753246AbcLGQL3 (ORCPT ); Wed, 7 Dec 2016 11:11:29 -0500 Date: Wed, 7 Dec 2016 16:11:17 +0000 From: Abel Vesa To: Petr Mladek Cc: Abel Vesa , linux@armlinux.org.uk, jpoimboe@redhat.com, jeyu@redhat.com, jikos@kernel.org, mbenes@suse.cz, rostedt@goodmis.org, mingo@redhat.com, gregkh@linuxfoundation.org, geert+renesas@glider.be, davem@davemloft.net, akpm@linux-foundation.org, emil.l.velikov@gmail.com, mchehab@kernel.org, linux@roeck-us.net, ard.biesheuvel@linaro.org, jens.wiklander@linaro.org, jean-philippe.brucker@arm.com, viro@zeniv.linux.org.uk, stefano.stabellini@eu.citrix.com, chris.brandt@renesas.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org Subject: Re: [PATCH 6/7] arm: Add livepatch to build if CONFIG_LIVEPATCH Message-ID: <20161207161117.GA16293@gce> References: <1481043967-15602-1-git-send-email-abelvesa@linux.com> <1481043967-15602-7-git-send-email-abelvesa@linux.com> <20161207150525.GD13288@linux.suse> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161207150525.GD13288@linux.suse> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1644 Lines: 43 On Wed, Dec 07, 2016 at 04:05:25PM +0100, Petr Mladek wrote: > On Tue 2016-12-06 17:06:06, Abel Vesa wrote: > > Necessary livepatch file added to makefile. > > > > Signed-off-by: Abel Vesa > > --- > > arch/arm/kernel/Makefile | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile > > index ad325a8..9e70220 100644 > > --- a/arch/arm/kernel/Makefile > > +++ b/arch/arm/kernel/Makefile > > @@ -48,6 +48,7 @@ obj-$(CONFIG_HAVE_ARM_TWD) += smp_twd.o > > obj-$(CONFIG_ARM_ARCH_TIMER) += arch_timer.o > > obj-$(CONFIG_FUNCTION_TRACER) += entry-ftrace.o > > obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o insn.o > > +obj-$(CONFIG_LIVEPATCH) += livepatch.o > > It is strange that you add a source file in one patch and make it > build in a much later patch. > > I suggest to restructure the entire patchset a bit. Please, first > add support for FTRACE_WITH_REGS. It makes sense on its own. > Then add the livepatch support on top of it. > > Otherwise, it is not necessary to send v2 immediately for such > non-trivial code. There might be more people that would want > to look at it and it might take days until they find a time. > It is always better to collect some feedback, think about it > over night(s). Every question often opens many other questions > and it usually takes some time until all settles down into > a good picture again. > > Best Regards, > Petr You're right, I should send this into two steps. One patchset that adds FTRACE_WITH_REGS and then a second one that implements the livepatch and is based on the first one. Will do that. Thanks.