From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF8C2C5ACCC for ; Thu, 18 Oct 2018 12:40:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC07A2145D for ; Thu, 18 Oct 2018 12:40:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC07A2145D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727023AbeJRUkx (ORCPT ); Thu, 18 Oct 2018 16:40:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:53554 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726506AbeJRUkx (ORCPT ); Thu, 18 Oct 2018 16:40:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 79E4FAC90; Thu, 18 Oct 2018 12:40:02 +0000 (UTC) Date: Thu, 18 Oct 2018 14:40:01 +0200 From: Petr Mladek To: Josh Poimboeuf Cc: Jiri Kosina , Miroslav Benes , Jason Baron , Joe Lawrence , Evgenii Shatokhin , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v13 09/12] livepatch: Remove Nop structures when unused Message-ID: <20181018124001.tler4fclqgoh6saf@pathway.suse.cz> References: <20181015123713.25868-1-pmladek@suse.com> <20181015123713.25868-10-pmladek@suse.com> <20181017204821.a23ssldszqpohhvk@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181017204821.a23ssldszqpohhvk@treble> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2018-10-17 15:48:21, Josh Poimboeuf wrote: > On Mon, Oct 15, 2018 at 02:37:10PM +0200, Petr Mladek wrote: > > +void klp_discard_replaced_stuff(struct klp_patch *new_patch) > > +{ > > + klp_discard_replaced_patches(new_patch); > > + klp_discard_nops(new_patch); > > +} > > + > > +/* > > Stuff? Really? :-) How about klp_discard_replaced()? Anything looks confusing. I think that I'll just get rid of it and call the two functions directly. Best Regards, Petr