Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp273295lqh; Mon, 6 May 2024 20:29:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyS77Y2he0//eclnU9EZyHbnAOOL7aQ3wfKc3rUQnTSZrbdPNU0spzzveo1wp8GjWzUhDGmHJEztq+iKQk/nulACt32tTFvMV5eI5DZw== X-Google-Smtp-Source: AGHT+IHo1AtJdTnrmlw5K0jQNOcg8m7CbHOkI/nFDVhF8ziydxBuE6r6RBeIs061V27bkmKcU4AW X-Received: by 2002:a17:90a:5307:b0:2a5:3f30:f5f6 with SMTP id x7-20020a17090a530700b002a53f30f5f6mr2162339pjh.20.1715052573594; Mon, 06 May 2024 20:29:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715052573; cv=pass; d=google.com; s=arc-20160816; b=f7Fs0jbUnl2oVw4p09sr3pN1S17DwuTEVpoAEewT6CqAPmsSzB+gE5krb8Dt9uIGJ6 YLAGewKl+FZT/nInhbYpEgGpGxsXdpelLquF8CmzYU1xSSzV043xKArEUrkfR/Zzirnc DR4RibC8ozpHiPe3S9hgqlxnCfG1/TEFaobXrkykzoKgvRme26HCLIzJNxdOcBMdrx3O 8LK/dyuVbjiiY5NUJSsaJfEVVoHVajiQ+rkZ34xwgKVXCod5buiW8Ine1SbyWLiRE5QJ wlLhGQU4k4e/n5/eINXjxNpd2SgnFtnI/1fIT8sI0aMyNuFEGVyZRwLGijSRXyiTNIyk HDUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0iYmzYFruEFGs+lHC4KAMMtLA2kXPC64Ok4vv0iH/G0=; fh=yqH/Ytw/hceKRPNsX2yVqNuE1oi8y3J9eRdnZAl+TxE=; b=ucb2nGV4oqIXFuE0o+VeTf/1uim66YrmU5gwYwv+0PAr+D9kRvOsDS+dIsIMAUvuhQ Imt1ZI2ZoJrjjvASoUbl4ihtD+ZR7wq3hX78iNpYrWKWI9vs6nBLgnCssWDjFwIhUay2 7kvBUpKqyqGpbQnRNFl+5Mh453xboFT7UECVRvXO8LOJJZQZ5ckHf3nf6V+pSHQi6fAX 8dtRYGm41cwc2bOBKfBa3VEhCnefzU882rdl6PRRf2V2vVI8WiWn20tklkxJlplkjAhF m1hDbtjOb1kaOTLIhWwXOQPtR9gMhKeuRH6mhj4Qtfim8NYTM/O+6Z3Cq4bMVQzeBrMP +LiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AYJOtp55; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ft24-20020a17090b0f9800b002b439ccd0dcsi7066096pjb.103.2024.05.06.20.29.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 20:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AYJOtp55; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DDB382848FC for ; Tue, 7 May 2024 03:29:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E9DD3FBA2; Tue, 7 May 2024 03:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AYJOtp55" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A1994C94; Tue, 7 May 2024 03:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715052567; cv=none; b=O/8JjvIRT9NT9WENTWLn/SnAfzYMf22jgrkeYNpHdYQBwFWlJrDEJgnunLeVF4eHMidU0pBkCbn3kz5HxY9HhXECIYwTxc2se/myYqMpwZMeQuAv4H+I//QVAU/Du+O0Lugn8NCCWWsUgIh1IKianG7jKX0IYx7cedxRlmUB8Ek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715052567; c=relaxed/simple; bh=CCU+3G3786o55uqluG43dyB9AWpsNTLLpCXa6nXoX/g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bQxy+AyGeWnbJS09BVkR1iYJuN9Hfk5HNyw8+NemaGGS2LZZ79c2CPmVxwWkJbqop31X2ut3npOfdiX+i52o8RyTTwiyrHy3bB9mTvX5+P8R17ULq8FG3CVJoD3qsxBDuRUCeRvoOvpfkeXhCHdzXSHOtN6As16BeTX063Myjh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AYJOtp55; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5D9DC2BBFC; Tue, 7 May 2024 03:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715052567; bh=CCU+3G3786o55uqluG43dyB9AWpsNTLLpCXa6nXoX/g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AYJOtp55CqE+SveBfADLzWSgb58zzrIQXHHvlGCTvVonRszQRzc1uAShBreXBxRiJ Y7FtBIIOrCHjoxLGYxCUOZJ7XD7B6pyiGg25IsZPCSlWur1VooUNaMBrI53kqInwZf FnoTYIHI3l6umoIVVv4qvZQG1E1OxROasWJG8TIee/4h4wVp8KS0H7NqcIW3tj2eVe o5hn1PRuByrKZFXYHioKdGnPCraKixGIn44BJTY7v3DdckFIYPf7lCZbB6m+VV9wEz XKQYg9a+EyNCsag+rKJK9EL3MzhFXLU8ALXB7JvRyLb2IXU6kwn9GoI1QQwu6PxTBN KuDbtGPFZ9cvw== Date: Mon, 6 May 2024 20:29:25 -0700 From: Josh Poimboeuf To: zhang warden Cc: mbenes@suse.cz, jikos@kernel.org, Petr Mladek , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/1] *** Replace KLP_* to KLP_TRANSITION_* *** Message-ID: <20240507032925.fva2jalnshp44k2p@treble> References: <20240507021714.29689-1-zhangwarden@gmail.com> <0E399FCD-396E-448B-A974-6034F4CF2B53@gmail.com> <20240507024151.6jto4zraqfbqxcw2@treble> <4010C687-88C9-43FC-B8C9-80981B04807F@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4010C687-88C9-43FC-B8C9-80981B04807F@gmail.com> On Tue, May 07, 2024 at 10:56:09AM +0800, zhang warden wrote: > > > > On May 7, 2024, at 10:41, Josh Poimboeuf wrote: > > > > On Tue, May 07, 2024 at 10:21:40AM +0800, zhang warden wrote: > >> > >> > >>> > >>> transition state. With this marcos renamed, comments are not > >>> necessary at this point. > >>> > >> Sorry for my careless, the comment still remains in the code. However, > >> comment in the code do no harms here. Maybe it can be kept. > > > > The comments aren't actually correct. > > > > For example, KLP_TRANSITION_UNPATCHED doesn't always mean "transitioning > > to unpatched state". Sometimes it means "transitioning *from* unpatched > > state". > > > > -- > > Josh > > OK, I got it. I will remove the comment later. After all, comment is > not necessary at this point after we rename the macros. Yeah, removing them altogether might be best, as the meaning of these can vary slightly depending on the operation (patching vs unpatching), and also depending on where it's stored (task->patch_state vs klp_target_state). -- Josh