Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp328508lqd; Wed, 24 Apr 2024 03:49:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXcDP8Wz93ZS79xN9VudT0NL/grq66lr23nu+p55bVCderl45SOBk+diofVRu06nUZZd9PmAnxmUJT2utU03o4QYPAMRb+T4KSNXuPnQ== X-Google-Smtp-Source: AGHT+IHBfhwRSCPUHB/VQf+FFeB9bshtBd19QRXwVZcvMiPqHIKb0yTyTfm3V9DjhIFrDVMjjS/G X-Received: by 2002:a25:6606:0:b0:dcd:2aa3:d744 with SMTP id a6-20020a256606000000b00dcd2aa3d744mr2146024ybc.17.1713955795798; Wed, 24 Apr 2024 03:49:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713955795; cv=pass; d=google.com; s=arc-20160816; b=BVfVQyCR2IsTTSoe6RypX1RexTlw8DU+jz80QA/srUNXU7pqgQA2mOixpStdsUqfuj J3GB1OWxvqbDDn8D6sB/TzChN/bstq1HaM5ffLNET9rVdmukmPIMesGFEmtSh68Eh6nF lQiMgCnR+S7XSh2vcudXzFS7zd+qbzzXyKElsecXJTr4ao3iDSgrsrSJvGFY03v4mwMV cV7wozpeSO1tLWi6x8rOHDpXH/oNm+lTHb1xlnr+zKCg7WTs8zqqkcrnTP6x+Qdt+WFq /s5uhLgQ5q0/J/4WtBKoLTCYE0mPWlqv7tv4XqvpXDjlcIP2oi7/B00+CcZPwlZQrYv0 oatw== 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=13Hi6ZoedF7xEUK5sGqH0Sjd7YNhbMjL1SAgv6avwWY=; fh=TJG+DWZ+TQW1OlQImniJrUeT7t3eXQ2Za0UIFgaG1oo=; b=Ikt1ttJkFr2Qm+Br8qKVYohQgtJAEtcq8/hc7SJZrAOdNxyaO9m18hxsDWkSiTli3Y XUJR+2ea7Ypfk3/IfbbZcGAplBqN60Xta+AiB7Bz9rVO0IvrJbrtSRgf1xwKDNzuB/8K lYP/xnjOm94YcmNsD9x1mtN0skhATTvu9DN73rw0Gw/ypdKK8kxSA+Mr24L7At0FZdsV H+QuUinpSuT3YD1TZQtTMEk9IrLxHAwEI+f6GjZEG+JH2HMMhd5Fb5Jgb+orHpn35LFr ZE++5O9ZfAgf2QLJqJdkL/PCDuv95sh6vD7uot/5QOZZ2uwNCR7acg5I2xY6JJxKp303 OGYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=khQ5FhJT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id kl17-20020a056214519100b0069cfae401cbsi14380590qvb.356.2024.04.24.03.49.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 03:49:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=khQ5FhJT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-156749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156749-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8551C1C23051 for ; Wed, 24 Apr 2024 10:49:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B95C01598F3; Wed, 24 Apr 2024 10:49:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="khQ5FhJT" 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 DDDCF3EA66; Wed, 24 Apr 2024 10:49:46 +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=1713955787; cv=none; b=MWGLaobaA3FHtvKQJ0mc3hykyYbClrByM8V13X6pCNcem9fy/aWR0m0vPSop6jXcqHTMGe9dUcsJmtXPfNTj17apcSwE2qlFJE7yvkFUvtOm2y7A8sYNRjruAlkKwHHaG/ugy5GsH+ngVwhFRdiv5sZrJVEOS+7Xot4Pvo9zXK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713955787; c=relaxed/simple; bh=13Hi6ZoedF7xEUK5sGqH0Sjd7YNhbMjL1SAgv6avwWY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rIouf/faiffyeOT4mzHGm11ljAXAxMUPqoQ6bj3IHbrr3zgGSUvLAumvsyqU5XNY0AHDmocCIUNl1XEZi5Xe3zk4RIsvDeukskHMbezApcy6XCqY/Bq+0bcOw09EZ2vmLW5qgrouCDhVEBcGljuMzliOLp4viO2WDeg6lR1rtAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=khQ5FhJT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEA7CC113CE; Wed, 24 Apr 2024 10:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713955786; bh=13Hi6ZoedF7xEUK5sGqH0Sjd7YNhbMjL1SAgv6avwWY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=khQ5FhJT5PNr6HWVYFrPZXydqeSHrF0F3rLggVHJqLhR0jsFTHBtnFms6eixSLKNa vCWBfATJSsIT9q4Z3jTkkomxD/o8Y38zHWifEZhLepdOPXBqA4gkcoBbWFGqBoC85w 3d3qPFsX87FWPQC3ivOza86kHUEr5uwfBZ1BQfpH8cBCYJd7OY4aaWZJA8Ia4jOcnu WKh14ZSN/Mm3dLaPCzyxYpH0UyUhM5MPPjFAqEuIgt3p/m0I8kl4OGIXdzQIrIxpq3 ODoftLnsP21x2NUgPg/EftL3rgJ0BsGG7ny0xHU8hd7DxAFo5mFqOQzi2ImL7rSFxn 2meeXkPLUTvBA== Date: Wed, 24 Apr 2024 11:49:42 +0100 From: Conor Dooley To: Samuel Holland Cc: Palmer Dabbelt , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Borkmann , bpf@vger.kernel.org Subject: Re: [PATCH v2 5/7] riscv: Pass patch_text() the length in bytes Message-ID: <20240424-math-recapture-49618e9f9b11@spud> References: <20240327160520.791322-1-samuel.holland@sifive.com> <20240327160520.791322-6-samuel.holland@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sqfgg+TcvaEXDvan" Content-Disposition: inline In-Reply-To: <20240327160520.791322-6-samuel.holland@sifive.com> --sqfgg+TcvaEXDvan Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2024 at 09:04:44AM -0700, Samuel Holland wrote: > patch_text_nosync() already handles an arbitrary length of code, so this > removes a superfluous loop and reduces the number of icache flushes. >=20 > Reviewed-by: Bj=F6rn T=F6pel > Signed-off-by: Samuel Holland Reviewed-by: Conor Dooley --sqfgg+TcvaEXDvan Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZijjxgAKCRB4tDGHoIJi 0qvcAP4r2MrLGz9H1r7SbjaqoHG7Zb6RvXCN/VmJFpdJYnXfAwD/QEb6Rj6izInw SNqGMSWRNoFweZB4bLuaxlv7QL37bwo= =z3sD -----END PGP SIGNATURE----- --sqfgg+TcvaEXDvan--