From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753653AbdEZRlz (ORCPT ); Fri, 26 May 2017 13:41:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56826 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564AbdEZRlw (ORCPT ); Fri, 26 May 2017 13:41:52 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 995E83D961 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jpoimboe@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 995E83D961 Date: Fri, 26 May 2017 12:41:49 -0500 From: Josh Poimboeuf To: Miroslav Benes Cc: jeyu@redhat.com, jikos@kernel.org, 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 Message-ID: <20170526174149.hoitvayd3zymlzaq@treble> References: <20170526124521.28592-1-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170526124521.28592-1-mbenes@suse.cz> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 26 May 2017 17:41:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 26, 2017 at 02:45:21PM +0200, 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 Acked-by: Josh Poimboeuf -- Josh