From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3twH9J6VZRzDqQR for ; Sat, 7 Jan 2017 08:04:20 +1100 (AEDT) Date: Fri, 6 Jan 2017 15:04:11 -0600 From: Josh Poimboeuf To: Miroslav Benes Cc: Jessica Yu , Jiri Kosina , Petr Mladek , linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Michael Ellerman , Heiko Carstens , x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Vojtech Pavlik , Jiri Slaby , Chris J Arges , Andy Lutomirski , Ingo Molnar , Peter Zijlstra Subject: Re: [PATCH v3 15/15] livepatch: allow removal of a disabled patch Message-ID: <20170106210411.er57shthgit7bqx3@treble> References: <21cb19ed5a44e876aeb830fdea1fad2c795a63f5.1481220077.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Jan 04, 2017 at 03:57:09PM +0100, Miroslav Benes wrote: > > > diff --git a/samples/livepatch/livepatch-sample.c b/samples/livepatch/livepatch-sample.c > > index bb61c65..0625f38 100644 > > --- a/samples/livepatch/livepatch-sample.c > > +++ b/samples/livepatch/livepatch-sample.c > > @@ -89,7 +89,6 @@ static int livepatch_init(void) > > > > static void livepatch_exit(void) > > { > > - WARN_ON(klp_disable_patch(&patch)); > > WARN_ON(klp_unregister_patch(&patch)); > > } > > Btw, we remove the only call to klp_disable_patch() here. Maybe we can > remove the function completely. It is not needed anywhere. Maybe so. I haven't heard of anybody needing this interface. -- Josh