Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1130016rdb; Mon, 19 Feb 2024 05:24:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWG07zAcBqB1lZA1hj3ppXDLPE75oawZfwiAsy9QoOc1/CtKhyLgfW86EtGU5NNbtj6VqI/XZx+jvdzX5DDd18xjv107SvxOwcfuxIoFA== X-Google-Smtp-Source: AGHT+IFA9067t5g4WdAe3vNHr1TWq5ROEzWyDF/TGxcFYGFHe5zpCRdk/lR7BUyGYg8ydEXEq9Il X-Received: by 2002:a17:903:2449:b0:1d9:4544:ed22 with SMTP id l9-20020a170903244900b001d94544ed22mr15220542pls.42.1708349045528; Mon, 19 Feb 2024 05:24:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708349045; cv=pass; d=google.com; s=arc-20160816; b=sIqxwDuFRCr/Hum2gmh16WJOlg/kOblTmiYOeOSnlK+qvb5ulnDTNtkhzLosphDU4P uBfavxD78+ZrPsWmRKhUK89+hwhVNP7UDyp+ZRXDY61zqwH0Oi2DQAIlGvlxjcdJTkvI DC0RG5CQeXXsvukqobvN/I3t2JCEa0OsrBh41w52B4s3TnH53wqE/l1pNXtLBjOG3PEK JFdHCYjGEope1GTXNLIOJu0PkSFSZZXpBl66MjjWBGERKCWGUymh/HvQ0pJkXP+oH8hS agil9/n8mbY9aDtOehUu/YXic10T9YeJDjaV7oG+91Gt3R2TlJe9i2zb4JuIPelJ2V0I vFEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=tP365zsU1kYrOfI9ft84/uMyXJKlWnv2A2UGYeSOJkE=; fh=gwAII37AmKM/2VKT75K4Fr7s+foyKb/57CLYjp1LKvo=; b=Z9lNHR/xIVY2hHUeedhDbp/SX4nFHG9OdrioQbBNoqy9VtjHBX4bt6cBUl+SzAzdzH QB4H8tyOeav0DoktlCoLUKo4M5tc7/GEr4/kSgpD8hTvrfR8xXGYN/nyfZW2s21Z16sq IOyCakokModXZRWM7uetcaUPx0WRv9UhCfkGnt5zq9PDTwOq6I/Osi6guQJR0vnSfgx0 DMO5CeFU6ILxZ8W/DAdXPtP2uw4mHA5dwiHSZuUQp7QbrPk4Twv/NXX4NBmR1QIbm6/s a59/2UXnapOfdhum44q51V08eY/eGMZUQRE4TsDYpVC2MlNSt5GjANMceVGbIhpDlDQA HNhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WVDkV4M2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71376-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j1-20020a170902c08100b001dbede97219si1979969pld.251.2024.02.19.05.24.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 05:24:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WVDkV4M2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71376-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F0D7EB25951 for ; Mon, 19 Feb 2024 13:08:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31B723611D; Mon, 19 Feb 2024 13:07:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WVDkV4M2" 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 5D6BD31759 for ; Mon, 19 Feb 2024 13:07:13 +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=1708348033; cv=none; b=BNEBicB/BmwG+sILlwR3ADo7w853RV4qbM3CLsrqe3UYTdr3BcPFcF5zbsQIq9TmRZqm92s5OcllziAg2MTFawun+YpctVlSpRUo5DAjqmbCu3+T+P0MJQzpCs28motLOJOQ+RmelA+dTKVHTr9r+f5mC7lzILrYRz5ITAsOfQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708348033; c=relaxed/simple; bh=tP365zsU1kYrOfI9ft84/uMyXJKlWnv2A2UGYeSOJkE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=qlPdOFb/pJiWQrHX+nqbvW1P/IzjqZpFfdYltKUe3dSd0AWon1U9eyri8QGRud7mvrQiCWe8GrANicZa3UTONKQ73hXNwcj8Ky/UvPV6kb9/iVJZOm55gRE+1jWU0FMUqjJOF125Z/fB7boVZttkLRanlW3xrqzyWJDsWUdvriQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WVDkV4M2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 865D4C433F1; Mon, 19 Feb 2024 13:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708348032; bh=tP365zsU1kYrOfI9ft84/uMyXJKlWnv2A2UGYeSOJkE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WVDkV4M2vZwKC4EBVBgVUaHBe902q5NfdDVcoxBZdO96/lwSg2e17CQFklrVBHfj4 5JKW/IMlDqNuXSrwnI2rwjRGovTwlvUPo2Xs3wTZAP2vyCVFragNlOATZQ/Ec8mAr9 3QWhBZkGmIw5NXX8ZEm74z13V8rY1XO3v5mY6efQKlMjTBYG/qvr7eaFzKNEg+UPr5 s4hxKcxosy8GRbfaxyBqvlJeJlkLTune00A/+nFuTm3bkzhcVnZ5acvOMtEJlGoqAh 4n32Khwvd+xufvAHUQCwdHr4etPFf3ovT160bxnXUmxlbwiRkIX6vRNNRHa15fUcg3 8M5VvAsXYl0VQ== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Samuel Holland , Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Samuel Holland Subject: Re: [PATCH 6/7] riscv: Use offset_in_page() in text patching functions In-Reply-To: <20240212025529.1971876-7-samuel.holland@sifive.com> References: <20240212025529.1971876-1-samuel.holland@sifive.com> <20240212025529.1971876-7-samuel.holland@sifive.com> Date: Mon, 19 Feb 2024 14:07:09 +0100 Message-ID: <87ttm4eh6q.fsf@all.your.base.are.belong.to.us> 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-Transfer-Encoding: quoted-printable Samuel Holland writes: > This is a bit easier to parse than the equivalent bit manipulation. > > Signed-off-by: Samuel Holland Reviewed-by: Bj=C3=B6rn T=C3=B6pel