Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1176219ybl; Tue, 13 Aug 2019 08:30:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeAw8da4LHdvCu4Uu84KnUM+QQTD23hHcH543ryji6SeL1bfeJAwmhARLwMh/On/nuYAUH X-Received: by 2002:a65:5c4b:: with SMTP id v11mr35289357pgr.62.1565710257130; Tue, 13 Aug 2019 08:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565710257; cv=none; d=google.com; s=arc-20160816; b=dh0y7ERkZprFMK1Dal4RDnGr+nRdL3sDAoSiu6unE5yJli1G6j6DIXiYdEfakj8qA3 zann8JIh769EAsC3GSiBMGlufJ6MoV5UjX1SaqWFlTurtyYcZu44D85lbJm+jwCY6M2c n08sipNNdCLcpyC9ygrk3kLie1koSLyMJ75SkUFAwZ02xr9pW3NPrbAfpt9dlOMg0QOt FXPR7DE5kxttGcJtRUjIuPmhqM6xkmiEr94q2q86yzVHNHKsDPRajz5I7t5MpiuP/2fc vB/up90FEULPf1z4HvPk92jDCfLDJsSAg5ArdkRHZzkxNhILznYudgQ6ZRXgE0AUoRO0 FCMA== 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=1Jljs+80Va6pEH6qfqY/dUxn0qILrvhj+nAedZBJI5M=; b=had4PBN8aaEHEcwBvyfy+VnuuKdrtOXUe+ruAIf/KYrMT5Bz4lZ6NK5tutlxWYrUDM yPbChFGj2egXfyLr7K+7zqw9ynedSP/n6dLh90cP4Dp/bnoHwwE2Bq5awqok00kLyPaU YNZeBGNp3e6AEnLZ32/zh10NSLb/Q7YhifDqJbUgdQWtTebku0bXFKtdWJ+ZqgbHzFom IxVrDcMZ9/g4C7QWw1/HIOp9jdFXJ6akUZ8dMSaF7NNC8ybiZVuoFu89FwDW26R2QDne vm04MLTYdvTlASPPggIqMXxnhT+SE8zXHN2Gk5QdbiWwN2bisZLOPld+QxJsmR9pKA+K jVIA== 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 97si15421932pld.245.2019.08.13.08.30.41; Tue, 13 Aug 2019 08:30:57 -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 S1729195AbfHMNg5 (ORCPT + 99 others); Tue, 13 Aug 2019 09:36:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:56962 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728413AbfHMNg4 (ORCPT ); Tue, 13 Aug 2019 09:36:56 -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 787DDAD05; Tue, 13 Aug 2019 13:36:55 +0000 (UTC) Date: Tue, 13 Aug 2019 15:36:50 +0200 (CEST) From: Miroslav Benes To: Petr Mladek cc: Jiri Kosina , Josh Poimboeuf , Joe Lawrence , Kamalesh Babulal , Nicolai Stange , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/5] livepatch: Allow to distinguish different version of system state changes In-Reply-To: <20190719074034.29761-4-pmladek@suse.com> Message-ID: References: <20190719074034.29761-1-pmladek@suse.com> <20190719074034.29761-4-pmladek@suse.com> 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 > diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h > index 9c8b637f17cd..bc5766f45442 100644 > --- a/include/linux/livepatch.h > +++ b/include/linux/livepatch.h > @@ -133,10 +133,12 @@ struct klp_object { > /** > * struct klp_state - state of the system modified by the livepatch > * @id: system state identifier (non zero) > + * @version: version of the change (non-zero) This is inconsistent. Maybe "nonzero" in both cases (or "non-zero")? Miroslav