Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp819698ybn; Wed, 2 Oct 2019 06:44:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMYUdBpcJM06NnUtH/vkbJ6wn7ZZJjrIUcn6OCiNxuWxOZtLuEB2C9Txl4o8dpc1IXOehG X-Received: by 2002:a05:6402:35b:: with SMTP id r27mr3869270edw.140.1570023878138; Wed, 02 Oct 2019 06:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570023878; cv=none; d=google.com; s=arc-20160816; b=zNcd3tfhEAiIC7y9y8ydk7bsJEz9yWHYwfj7fPUn0gISVKxgqti2VBAuF/NHDI4gB9 2zQzG3Jv9ij3jyTpHTTIxK0VAqyuBoyyO2IkA/Tu1BC42/JvNkgCMkQ7uqVh0tam826v CltxGgkGJh6wpsfLhoi2zWb+ZRcQc2w2PLW1o82TTdQlH4m5ZfdA+uWqrUD3O8dde1Uc pxFOrh2tmFNIN71cxtdQCP0f0jabbE6UiMgjLU9H00aImu97lFH21IwkY4j+vQccs2sh pHo7CDb8J1H28kam/pk9xMiefX3XJJYdtDZmjbRJ6OsHg4wnF/+X4MACFxLXfzBKn9bf UAEA== 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=S/yNxf7OMEXk816xUffFuAXqBe3Dbzevjl2w+yDgDlw=; b=zM9Xv+sF5gRx77A5OzALjCjUfAbEQ0QwI1Wgfr1mU4LM6GJMhkJSzlfGm6Uq5VIZdc vJKeLknNrOr2BS/P26pl2LDIFdYeKFXYL8r4fQhRDNokOqGItcHWyh24mXEeb/HbS5Y8 0QdXTybpFf4sZXC5tJNdqLinOpOBjb3XFo9Nr00XpyBsMKjbLTDOWqUvjNBdb3CGvRRr YSzldGc51ETRFOdtMUTG7X2jweGEmdX3OOFGynrox3DwV8RPL4m/sg9zcxBg/QZnW+8D pbJVkcUzFh8v1bsrou29ha/scCTXOuejo1AsS2U+7g4Z7xqwV/oGMKn35PD7kyIpOnDH 5BbA== 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 x29si10852917eda.297.2019.10.02.06.44.13; Wed, 02 Oct 2019 06:44:38 -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 S1727861AbfJBNf4 (ORCPT + 99 others); Wed, 2 Oct 2019 09:35:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:48560 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726948AbfJBNfx (ORCPT ); Wed, 2 Oct 2019 09:35:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E025CB143; Wed, 2 Oct 2019 13:35:51 +0000 (UTC) Date: Wed, 2 Oct 2019 15:35:51 +0200 From: Petr Mladek To: Miroslav Benes Cc: jikos@kernel.org, jpoimboe@redhat.com, joe.lawrence@redhat.com, nstange@suse.de, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 2/3] livepatch: Unify functions for writing and clearing object relocations Message-ID: <20191002133551.4sqeyisjq252kf7o@pathway.suse.cz> References: <20190905124514.8944-1-mbenes@suse.cz> <20190905124514.8944-3-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190905124514.8944-3-mbenes@suse.cz> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2019-09-05 14:45:13, Miroslav Benes wrote: > Functions klp_write_object_relocations() and > klp_clear_object_relocations() share a lot of code. Take the code out to > a common function and provide the specific actions through callbacks. > > Signed-off-by: Miroslav Benes I would prefer when the callback is introduced before the 1st patch. I do not resist on it. This patch looks good, so: Reviewed-by: Petr Mladek Best Regards, Petr