Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp100624ybn; Thu, 3 Oct 2019 02:09:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4toK6MdtbV+nMrlBZRMiV1LPTjgSMuVY9Bf7Qty2KSrQhwlQH4p6scW8WrMA7K2peW6lq X-Received: by 2002:a17:906:7d0:: with SMTP id m16mr6859705ejc.95.1570093791482; Thu, 03 Oct 2019 02:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570093791; cv=none; d=google.com; s=arc-20160816; b=SdVC6a2HtESak01eQTd49bleKbJ782j7/w1Kxf9bwQ68cw204zkg+mprBQ00Ujehxw vILyjzPgskdz8d87luLzShBLr5/DOEH5Y0L2mH7IQcZFUW/wVAjYWJ4dESCMYaIW/CRd x7OKBJGcg0hban6lxWPYtF74kl2hlQBQxjRZY6XfPCIwYHHqkXN8AHD3lIQhW9oXy29c ejCH9kgTlc3Ds30k9PEaXOoDyDro++uLnicas0ewNMpCutVGanHZFph3qqCDtzAmPoKb zgUntiQ3uKK++pA2c7I4QRwSXYCYGpoPVy05Wi9e2NoqDLe/qf7912y5l0XTcV0FxonD WKGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=T4Zp1JxfcftSBYnUegV1dX2Hh0/2xPCyvpPXnYMV2dM=; b=WoVHmTFchs+Praz8NJXWqUejK6eC9raKAddLJ28Ki51C50dzgvwU+mLpx5lOHaWHjO vyiFdie0aKfxYz50bgOvL0DFeYNcYUafhMRtf80o6hXd3OsN5L58uHY9se1lhCQNB6tm qMmCOw1fbMZPAAYsA7pKGxG4U+f/t/hs8444c4AzSoiwDj6z3pZPG4Res4C0NMsZoL9x nMWb71CxlndqK96hXefjI4FRim8x/KGM+JhxrPwkSmZr3WdwQl+nQKgCk/f6EWG56+UN j4Mo7jVKURx3YlqJwjTk42TVpyt2GjL7hQG1NUylHsb6AmSrY6Rjy4y/TZW5EAJVO/Y+ MkRA== 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 v20si1038877edq.195.2019.10.03.02.09.26; Thu, 03 Oct 2019 02:09:51 -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 S1728883AbfJCJJN (ORCPT + 99 others); Thu, 3 Oct 2019 05:09:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:52602 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727357AbfJCJJN (ORCPT ); Thu, 3 Oct 2019 05:09:13 -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 DFFDAB14B; Thu, 3 Oct 2019 09:09:11 +0000 (UTC) Date: Thu, 3 Oct 2019 11:08:47 +0200 (CEST) From: Miroslav Benes To: Petr Mladek 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 3/3] livepatch: Clean up klp_update_object_relocations() return paths In-Reply-To: <20191002134623.b6mwrvenrywgwdce@pathway.suse.cz> Message-ID: References: <20190905124514.8944-1-mbenes@suse.cz> <20190905124514.8944-4-mbenes@suse.cz> <20191002134623.b6mwrvenrywgwdce@pathway.suse.cz> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Oct 2019, Petr Mladek wrote: > On Thu 2019-09-05 14:45:14, Miroslav Benes wrote: > > Signed-off-by: Miroslav Benes > > This might depend on personal preferences. True. > What was the motivation > for this patch, please? Did it just follow some common > style in this source file? We had it like this once, so it is only going back to the original code. And yes, I think it is better. Commit b56b36ee6751 ("livepatch: Cleanup module page permission changes") changed it due to the error handling. Commit 255e732c61db ("livepatch: use arch_klp_init_object_loaded() to finish arch-specific tasks") removed the reason for the change but did not cleanup the rest. > To make it clear. I have no real preference. I just want to avoid > some back and forth changes of the code depending on who touches > it at the moment. I have no real preference either. I noticed something I did not like while touching the code and that's it. > I would prefer to either remove this patch or explain the motivation > in the commit message. Beside that > > Reviewed-by: Petr Mladek Ok, thanks. Miroslav