From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A2041A9B58 for ; Mon, 5 Jan 2026 15:26:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767626813; cv=none; b=TAAtt7MrnvT6o0lP2xYRu2rJVPu9/ypRV9R9cD1RbM6I82aHndKhPGxmeZXctakGr+0ZLdeMhs9cDYK55b3IPs3F8ENf5mgAlrZTnuNThQ5eorPG+mAO9dhLjdiwlekyMARFZZbDooXMgc0K1m24+Y//iE/zdmsEqasvW9jT634= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767626813; c=relaxed/simple; bh=O9Md3w7lNMp3yThfL4xFtXu53Q1Q5xKPg+ZTtqtQvSA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=h9tV/E/isVPH1uHLch+UAauVo1bpU2ZgkEJKPeoF1NGeNduaacJ+TuAgACedr/d1FIYUjE7j0Qai5eglhK1vqL2tRlTGUTqLCzBRo0JNpyIKK7NWsNppBZ6UDs9q6oD/YW7iG/A8ezekJZuEMkOyP6yrBcBmTtFPjG1tiXDgeKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org; spf=pass smtp.mailfrom=joelfernandes.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b=Jgg/0vDm; arc=none smtp.client-ip=209.85.219.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="Jgg/0vDm" Received: by mail-qv1-f51.google.com with SMTP id 6a1803df08f44-8887f43b224so215024786d6.1 for ; Mon, 05 Jan 2026 07:26:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1767626810; x=1768231610; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ECBBJ6POzfhfzDwCrm5/OLG6dFv+kKLqVuVdBNepvg4=; b=Jgg/0vDmYeOLvuAWS+1W30chAHl9LAy+Cr99UOgeOTqgAQQkzaFjRq8/4OjxoEbVeb tXT5iP+xbGjVtbbzmMxx16lQDcL0554mB1Lq4QwdAj2xN9c6eUpY0ZDeU4ccWtEX8hVZ KLpNf5OeP2cZr2NmGUSL+7LHAU6lhyvb1s6gg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767626810; x=1768231610; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ECBBJ6POzfhfzDwCrm5/OLG6dFv+kKLqVuVdBNepvg4=; b=mAftbOeQmy1n2b0stUZdegNkptihLYVuv0S1KeIOnKO/HwPHA8c5kpoaRsGZjrGklu GKePsbVppLyuPh7Ipot+0pdTm/bBwntEWiHtEhAWZ5PAIzUc58cFyM6VZ3Dot2GJNjCN q0PkAT45NGRr/fe5bIU9B52afPvPvLuUInMogYvhQd3ZJ9t705sZjn+yQ+Z8ttuOalq1 WaDGOC4nxRXEL48POjFOLsQzICr350KSbBl51wHnGuYp4iXUxW2COc3ONIxJfmiM2fXu Vxs35Jgzr3WBOrvJnA6Xq/iTQ60E+IuA/tJ0TpnD4jh7qkzs5bNEt87plEwHK325jXTk 3saQ== X-Gm-Message-State: AOJu0YyiHQvrnXn0XcYNGW6AVps542ZDyXL1P/y3X9SRyHdPjM8iAKWf tz6sUi9l9WwM6tCr1u3VqKUyWFXGq5lRiSqSp0hxKSop88cUUyZxkO5fFPP54tUYZsE= X-Gm-Gg: AY/fxX6GvGF7QHafRPv71Jgd+3D+Zv3Oi/UrYzQS6gY4QBKko/vrN12FoWgv2vDuhD5 nKe5NYcZNZmAQ4+pZzHEhAawS8DtO7gHj8mn+DIxidqSFRiYXtGwmmZE2djD6dqekjd5oHWRx0p OxV+XjSc+5bYrRoq9amgayBNj+spXcJi25i8N9xKNcBH3FQQ5EeLbysnxggtqw2Qjn0Hu2iSABb z+TiTGvPujOGMzG/89sLi+T/VQJKxbrzp1OZLYUOEJsFkyt4LcXuhKT+KMwJSPmzDzFL3bwOATn qYZji6xZ3Ivvw6H3JjODxZ5hPTFiWhbBzgvXpth8q0gkXNL8OK4BjmQSCBbdqRmSFhSpw5NlxTd uExhIvxCk3sARPAVuOBfzlOl+G5s4+j8cyOzDo/ICO8M86ryJ7cVR1o6/5j0Vlp2Zb9mbLUUwGr Jbv4A8z4GdOT/hoOIjdXTnv4/jaA== X-Google-Smtp-Source: AGHT+IHyYqBQIngprr8F5e7p/iZ5wE4clnripTijwzPoRX5WNcQwXd9Vjk+PldWi+443V3CmWMgumA== X-Received: by 2002:a05:6214:488f:b0:88f:ca98:b00a with SMTP id 6a1803df08f44-88fca98b1bcmr651727396d6.49.1767626810036; Mon, 05 Jan 2026 07:26:50 -0800 (PST) Received: from [192.168.0.99] ([71.219.3.177]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4ffa7088afesm462931cf.8.2026.01.05.07.26.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jan 2026 07:26:49 -0800 (PST) Message-ID: Date: Mon, 5 Jan 2026 10:26:48 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 16/27] rust: rcu: add __rust_helper to helpers To: Alice Ryhl , rust-for-linux@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Boqun Feng , Gary Guo , "Paul E. McKenney" , rcu@vger.kernel.org References: <20260105-define-rust-helper-v2-0-51da5f454a67@google.com> <20260105-define-rust-helper-v2-16-51da5f454a67@google.com> Content-Language: en-US From: Joel Fernandes In-Reply-To: <20260105-define-rust-helper-v2-16-51da5f454a67@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/5/2026 7:42 AM, Alice Ryhl wrote: > This is needed to inline these helpers into Rust code. > > Reviewed-by: Boqun Feng > Reviewed-by: Gary Guo > Signed-off-by: Alice Ryhl Reviewed-by: Joel Fernandes (NVIDIA) Thanks. > --- > Cc: "Paul E. McKenney" > Cc: Boqun Feng > Cc: rcu@vger.kernel.org > --- > rust/helpers/rcu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/rust/helpers/rcu.c b/rust/helpers/rcu.c > index f1cec6583513497e996f74835ca2c6c3f4a8c954..481274c058577276e20093a1014fc49f4a40421b 100644 > --- a/rust/helpers/rcu.c > +++ b/rust/helpers/rcu.c > @@ -2,12 +2,12 @@ > > #include > > -void rust_helper_rcu_read_lock(void) > +__rust_helper void rust_helper_rcu_read_lock(void) > { > rcu_read_lock(); > } > > -void rust_helper_rcu_read_unlock(void) > +__rust_helper void rust_helper_rcu_read_unlock(void) > { > rcu_read_unlock(); > } >