Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1865927imm; Thu, 18 Oct 2018 05:40:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Xv+lOQXp1fLN9FF4vA2renYhgx8wRGaiRmsAXPpPVwghDZG2F5lFOlJY2k1Z+54dI2Wd4 X-Received: by 2002:a62:d717:: with SMTP id b23-v6mr21774205pfh.238.1539866441554; Thu, 18 Oct 2018 05:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539866441; cv=none; d=google.com; s=arc-20160816; b=BwCB/Rrre9qkSrnkuKLxldxMJZhgekbPwHAJsNF8//5r+NjN6yjl593ACol9MrOGhq L4luLllSG+5N1FwfE3tndsdKp7bPVvAfWoBU/Ri58VG7f2B6E5O+oPefRtQttHpe5Wg6 vWsdECuKizbvUddPL6iv68BpKSQx1dKv9Vgcdfm2uLlNpUvMJUc3OYzCVB6jT92Vht/o frz1FMR/F7R+QDCHOuaKQwGCza35UwTlepst6IhVCjLd4aNP8lxv+mc4yZs4sTMNaA+U aG69noo3IMfb3p4YoWlRDCiKVdfSat/yOWuXR7VuMbOdNGz2mcaaYEVmE0Nrg1vu1T5r bl+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Qtw/fkVKnfjq7qNvvZ5Bva5l4aJMI+QrwZtWwHUzZIk=; b=ou3BSOom1JSuBKkFHxayM7wX/InFKHcPJEEYkpyT8TOn08EFCWK8a97b72djz6OpKk mCP35QqzhVGeLWswxy16qhx02f/yPbekCqFGd3HvRPvqAMUs2Q5MXeXdiQxLyobbGw2z wdtdUbTWxMjJm4Qj5W6xRA8tZqCCK+zpfTC8dnJ4VAHjlZI3Eifw6vI+E16jGKRgOGQd WTQykiuDZ5ncIThTKZjmVp5jFW8j72rNF/7rxpoqMjDTL2pRgcvmpfz+X/fhJXuMwb1P gY8PAr7t5h1GNZKueRcIMJ+sR6LJl2TaSApe71FgTo73m47Aorgt2MbcbfVyzeNYBOPn HAdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d131-v6si22111049pga.37.2018.10.18.05.40.25; Thu, 18 Oct 2018 05:40:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbeJRUkx (ORCPT + 99 others); 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