Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1120653rdb; Mon, 19 Feb 2024 05:06:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWEUgCxDo65VTwSZBl7Q5tFtbGn0skVOeR6nCPHVYzQjgnXsk1G+tZbasw+3ctomobtlCFutURF9D9M+h5yRZhuCrH/KyS8jbC/YFIJ/Q== X-Google-Smtp-Source: AGHT+IGotbH3004kat7/J7RkUSY64QEwxb2O91Z2yRVPD0yZLh1GSo4BXIxZQVHABTsmZpn4djL3 X-Received: by 2002:a17:90a:f405:b0:299:c25f:962b with SMTP id ch5-20020a17090af40500b00299c25f962bmr639297pjb.35.1708348011157; Mon, 19 Feb 2024 05:06:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708348011; cv=pass; d=google.com; s=arc-20160816; b=BWndkePjs4bgrgoItqmxebn1YeillVtpOxirfD/T+9AAHwFXmqga8UWURK9tieJnWd mpt28WUJ9H4VhYuw+hDQuhYsp+KGSfOqeDX1rjZiCiHYnm8LlBL9rljBBIWIZ2Hkyfbj AW9Y4dO6QPiw1agtHjErEkBMuI1bMwjLdVnr/De4V/qkIk5vyCEqjYRRd7Pb9lIPcWgy qxUjSps5hDokqa3uCAv75IjEuwrthVS9Y0abv6jPicMFsHaFHsXSKaHTRZ+QOaIGdC8U 8US9qV0IRfJpBBuxHCMtlBajGEZlyMVnOm4JgazFPhzBIK18AyW2HqzVNnAwMORrHCmb 4kCw== 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=F7lFIi5YWEQkqiJdWwbx2quDPyRISPmN8tr0pDUd78c=; fh=cWy7+wyuGYOcgzJns90+AcwZXvrI9o2qMDAiW/Htm+w=; b=v2tZbUcq1XRTySbLX4OLVfz9i82Q1qsh7qRHTIVFhMXdLDFZNE3CY6hUOPCuLbJeUD yBD0VzxDP02njL8VFIvxBGg6g+oIZXa3YacR6FiS9m0MVvtL5u5Q+IR4tcffvP97qrwF RW0WMEJ9gwHWEOcKfCbAR61tfI7jbaqSevhmqdl239lopHTqrGJ77yqutiZQ1ys8nlCd hPzRHkgbcPMQjE8lyt7Qy17uO6l4lwdUoTsMD6nqPEW6K2s3W1An9AirPWlwqtGLbzSo pH7Zav5HRhX48w0MXYVJNUEtTxke9cXgnzCX/lJMCGcYRco+XuTainCgmWTQjHRXi9HX R3+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XDrf2ii6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71372-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 n24-20020a17090ade9800b002993c279760si4438635pjv.71.2024.02.19.05.06.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 05:06:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71372-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=XDrf2ii6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71372-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71372-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 CE2B3285625 for ; Mon, 19 Feb 2024 13:06:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D2AA3770C; Mon, 19 Feb 2024 13:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XDrf2ii6" 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 8A151376E0; Mon, 19 Feb 2024 13:04:48 +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=1708347888; cv=none; b=ANpuDq1Y/T/CnpbAoCATTspYTleDFnAXZ9D2RZSGPs7mHzPFLGwJ5173youzSpOxPC5MT78wS/LyCOuxZqsjwVEabF3ZobOTf0KRVqPLEce7CQ4MPlbCrz2gmNMU0qkco5awqwKGKyI0YCelDDpYvRftcgXC0v6GzhvdoFMezo0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708347888; c=relaxed/simple; bh=F7lFIi5YWEQkqiJdWwbx2quDPyRISPmN8tr0pDUd78c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Rf5VyDqHPL3cAVGJb+o3OnLhWuTnxoJ0r2IgBSA4HsEqjN/HJrsecBlvRbfkPlQOstIanj9ChMfPJxEuY88xUJ/kFstbHYgAURKvypo6E1+PNHxdQInlUd/cgg89jwL9xThs2PFDq8ixDwi9474nkXBmeIctz0DlyONVDkrdd94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XDrf2ii6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0ED59C433B1; Mon, 19 Feb 2024 13:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708347888; bh=F7lFIi5YWEQkqiJdWwbx2quDPyRISPmN8tr0pDUd78c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XDrf2ii6+/hTpL3c07hOnzKUx4KJ1Vb5+CNsbZAoiNbaFD+VUlNJ+CNNJQo7RatC+ twRqAtjIVwor/O3pExrMYPBd3yjJfqjyzmkT6RsCJTzddGiDzJTPjnPj5vE2eND5Uc yVqYCofGovHcBl8svChqtUjor8X16fq8xOIH0ggJPOqNh1k1Q7AqDTEo4axkjyf5jo Y1OGqZExKLsz2JGjKH84CpA5nEDgFB9rJkXHccv9FQeDmvyJgp4e9LxACExkah74tL AHbF4HF2Ye5Tz/iIi23W1R/qN0JAwoq6gpFnc/DLP1YX5RMxgpirJre5B5t06ot4Hq F+iEdIeH+QKhQ== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Samuel Holland , Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Samuel Holland , Daniel Borkmann , bpf@vger.kernel.org Subject: Re: [PATCH 5/7] riscv: Pass patch_text() the length in bytes In-Reply-To: <20240212025529.1971876-6-samuel.holland@sifive.com> References: <20240212025529.1971876-1-samuel.holland@sifive.com> <20240212025529.1971876-6-samuel.holland@sifive.com> Date: Mon, 19 Feb 2024 14:04:45 +0100 Message-ID: <87y1bgehaq.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: > patch_text_nosync() already handles an arbitrary length of code, so this > removes a superfluous loop and reduces the number of icache flushes. > > Signed-off-by: Samuel Holland Nice! Nit: 100 chars lines, please. Reviewed-by: Bj=C3=B6rn T=C3=B6pel