Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1111943rda; Mon, 23 Oct 2023 03:00:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1M2qONeAZ0iIcndebvjwKtqpRaKx+vtm7w1RH67MoqtX+frqAkj6wo08Umb5Ie10DikMx X-Received: by 2002:a05:6870:4713:b0:1e9:e3be:434b with SMTP id b19-20020a056870471300b001e9e3be434bmr10664040oaq.15.1698055249557; Mon, 23 Oct 2023 03:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698055249; cv=none; d=google.com; s=arc-20160816; b=dIRxvngMsIWXXyZJHrooQaSTQ9oBh+gh1J/iahSBzowDKlKKSJwmm0tN4EpS6N2qSD K89Ek/Opja63a8o+Q2e+ggSJwTOlWM53LWfcVJgeOWp7uwUXsb8Hc2i0rZTFlrpUsqAO mKu9gzMURT+7mcOQWmmNkUYFutdJlpQKgWotOsatOBd67nf79FL5TgDdweqUMFxn4KeK jzw0cf7VeILJW6IyiPp7je+BI4cArtf8iNRGKeGm2x1wCn0VP/v+QfDnfjHSvsAbyvwk o/ZT4n5GoppsruyIbizTq6XrSc0aGbmasrhs/66roeRvB4I54r8n6dVKDRoi1eyYQ/xw MORQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F2RqADPHi/ODAXFTyOZSWwkmYe5FsXVHIx8g7uPzN3k=; fh=2M58xexEgYMOkKj9+FLh7crHdCkIeKqoS96089cM1y8=; b=T88AuYApuGQK0ZTswFdoOn8v2FNlK6tABhL1sRYnVRznzg8jyvr2H85R/Wo7Og5iUr czyXkE1Rfj0rLaekwuvT7wQrBex2xrAVk2ZzlgmxyKky9AjMVRfxX/bZosyfABjmwjel NrqbvElsFzsCDUS3MdZsTSYE5gy/y+PrKltZdFZCmwdUiNbooyeUf83eXR2bfV6Q95fL Q4ZvHA6IgtssMkQxG1tjol0MDUhCLv0e3GAZxR/QT0JagLGkgnECd0wkFxO4ZtaXF0DR Lz7EnoD2cmqPr/UW8DDMh0ZvXXL+5A2D6FiyhH7AMgnzyTOLtzv3gNn5dVwqnKFdolnJ yoDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=TxzHXgFn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id j187-20020a638bc4000000b005b86119661esi6060510pge.86.2023.10.23.03.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 03:00:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=TxzHXgFn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1023C8054B20; Mon, 23 Oct 2023 03:00:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbjJWJ7z (ORCPT + 99 others); Mon, 23 Oct 2023 05:59:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233624AbjJWJ7f (ORCPT ); Mon, 23 Oct 2023 05:59:35 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 437D21992 for ; Mon, 23 Oct 2023 02:59:29 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-53e3e7e478bso4646601a12.0 for ; Mon, 23 Oct 2023 02:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698055167; x=1698659967; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=F2RqADPHi/ODAXFTyOZSWwkmYe5FsXVHIx8g7uPzN3k=; b=TxzHXgFnllwfWEQGStaMkXTLsJzqZy7uSwFyIB2YKCiVqAk8sIO63vab/4J3mPvPS0 vC18Om7qqbvbqBCVaOWvzeo6vl1dNRSNZqqB9DvCgeZYCNBSS+j4CNklulQ+SYfU+ECm fP8YZt9/nGGR3w9A5hvdHnRQYb498lbiLaqaHiGtPc8yBkkP2IhQWdKJ0X2jY+EXh+65 ha8BClBS/cQIabJG43sz7UR0fsBTMKZy/uYdnQKHUmd889vnnMwdx26Qs2p266zJh6lC ElkUg0eDtVUPzHQNLcaez6uzOijA+5D6uW3mbwQIe52Vj2qGcK3tbT1rd4nZrbbOtjK6 cLwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698055167; x=1698659967; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F2RqADPHi/ODAXFTyOZSWwkmYe5FsXVHIx8g7uPzN3k=; b=q8vcEkDzfV2h8gcmfDMKWiwmgVdHxs92VdJx9c0feXq5PqYkwBrRmUFv+YfuNDKrzL ZPedeorWRNl6XmB0kW2XPN0eYylM7sQ5k1TSHJ/K/P3RF4g1EMYNn7dF+BXg7e8aYSY9 HfSf/tfuueOHigOShXkrjDuVwBrpNqaHWgpHkjqETQJR0Lee+cUnh63w9LBz2ezt9pBS PTvNRRNKL2+60aMxDXCs2vyNYJgD/BsFlzO3prpS09LeL/HMCXeX3QRlPilnoaunIGQL 5BiAai2xbx2uPxYFk/4QCECUGJ4cnjoWewfBiZNnnyNubdYFmaMEINSQe0dc1/h32h1V JTdQ== X-Gm-Message-State: AOJu0YznRUaz0mxX77PTvFFYbC/ldYUv0kiAx05qfvfFcIhJ82dWSvtY PmmSTIYDYeoXNZW1kvUHqtj9xA== X-Received: by 2002:a05:6402:51cf:b0:53e:4cd9:2df6 with SMTP id r15-20020a05640251cf00b0053e4cd92df6mr7118888edd.25.1698055167819; Mon, 23 Oct 2023 02:59:27 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id x7-20020aa7d6c7000000b0053ebafe7a60sm6153661edr.59.2023.10.23.02.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 02:59:27 -0700 (PDT) Date: Mon, 23 Oct 2023 11:59:26 +0200 From: Andrew Jones To: =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Subject: Re: [PATCH 1/5] riscv: use ".L" local labels in assembly when applicable Message-ID: <20231023-8397e25545716f7f168e9007@orel> References: <20231004143054.482091-1-cleger@rivosinc.com> <20231004143054.482091-2-cleger@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231004143054.482091-2-cleger@rivosinc.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 23 Oct 2023 03:00:11 -0700 (PDT) On Wed, Oct 04, 2023 at 04:30:50PM +0200, Cl?ment L?ger wrote: > For the sake of coherency, use local labels in assembly when > applicable. This also avoid kprobes being confused when applying a > kprobe since the size of function is computed by checking where the > next visible symbol is located. This might end up in computing some > function size to be way shorter than expected and thus failing to apply > kprobes to the specified offset. > > Signed-off-by: Cl?ment L?ger > --- > arch/riscv/kernel/entry.S | 10 +++---- > arch/riscv/kernel/head.S | 18 ++++++------- > arch/riscv/kernel/mcount.S | 10 +++---- > arch/riscv/lib/memmove.S | 54 +++++++++++++++++++------------------- > 4 files changed, 46 insertions(+), 46 deletions(-) > Reviewed-by: Andrew Jones