Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751612AbbESV7p (ORCPT ); Tue, 19 May 2015 17:59:45 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49550 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbbESV7n (ORCPT ); Tue, 19 May 2015 17:59:43 -0400 Date: Tue, 19 May 2015 23:59:41 +0200 (CEST) From: Jiri Kosina To: Jiri Slaby cc: live-patching@vger.kernel.org, jpoimboe@redhat.com, sjenning@redhat.com, vojtech@suse.cz, linux-kernel@vger.kernel.org, Miroslav Benes Subject: Re: [PATCH 1/2] livepatch: make kobject in klp_object statically allocated In-Reply-To: <1432029679-9763-1-git-send-email-jslaby@suse.cz> Message-ID: References: <1432029679-9763-1-git-send-email-jslaby@suse.cz> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 808 Lines: 23 On Tue, 19 May 2015, 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. Applied to for-4.2/upstream. -- Jiri Kosina SUSE Labs -- 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/