Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964918AbbESOVu (ORCPT ); Tue, 19 May 2015 10:21:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41268 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964782AbbESOVs (ORCPT ); Tue, 19 May 2015 10:21:48 -0400 Date: Tue, 19 May 2015 09:21:44 -0500 From: Josh Poimboeuf To: Jiri Slaby Cc: live-patching@vger.kernel.org, sjenning@redhat.com, jkosina@suse.cz, vojtech@suse.cz, linux-kernel@vger.kernel.org, Miroslav Benes Subject: Re: [PATCH 1/2] livepatch: make kobject in klp_object statically allocated Message-ID: <20150519142144.GA21359@treble.redhat.com> References: <1432029679-9763-1-git-send-email-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1432029679-9763-1-git-send-email-jslaby@suse.cz> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 24 On Tue, May 19, 2015 at 12:01:18PM +0200, Jiri Slaby wrote: > From: Miroslav Benes > > Make kobj variable (of type struct kobject) statically allocated in > klp_object structure. It will allow us to move in the func-object-patch > hierarchy through kobject links. > > The only reason to have it dynamic was to not have empty release > callback in the code. However we have empty callbacks for function and > patch in the code now, so it is no longer valid and the advantage of > static allocation is clear. > > Signed-off-by: Miroslav Benes > Signed-off-by: Jiri Slaby Acked-by: Josh Poimboeuf -- Josh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/