From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1037447AbdE0BTO (ORCPT ); Fri, 26 May 2017 21:19:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:48783 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1948799AbdEZW2g (ORCPT ); Fri, 26 May 2017 18:28:36 -0400 Date: Sat, 27 May 2017 00:28:33 +0200 (CEST) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Miroslav Benes cc: jpoimboe@redhat.com, jeyu@redhat.com, mmarek@suse.com, pmladek@suse.com, jmoreira@suse.de, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] livepatch: Make livepatch dependent on !TRIM_UNUSED_KSYMS In-Reply-To: <20170526124521.28592-1-mbenes@suse.cz> Message-ID: References: <20170526124521.28592-1-mbenes@suse.cz> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) 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 On Fri, 26 May 2017, Miroslav Benes wrote: > If TRIM_UNUSED_KSYMS is enabled, all unneeded exported symbols are made > unexported. Two-pass build of the kernel is done to find out which > symbols are needed based on a configuration. This effectively > complicates things for out-of-tree modules. > > Livepatch exports functions to (un)register and enable/disable a live > patch. The only in-tree module which uses these functions is a sample in > samples/livepatch/. If the sample is disabled, the functions are > trimmed and out-of-tree live patches cannot be built. > > Note that live patches are intended to be built out-of-tree. > > Suggested-by: Michal Marek > Signed-off-by: Miroslav Benes Applied, thanks. -- Jiri Kosina SUSE Labs