Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7721917rdb; Thu, 4 Jan 2024 05:54:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHr8/aHOF9JfCjtZ+C16fXA0MUVFrD3cG/vsVdy1P8FYqSYz9Nu1JHyHuuPbxhnCjCn2F+x X-Received: by 2002:a17:906:a418:b0:a1f:a0f1:ec60 with SMTP id l24-20020a170906a41800b00a1fa0f1ec60mr418306ejz.14.1704376491531; Thu, 04 Jan 2024 05:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704376491; cv=none; d=google.com; s=arc-20160816; b=Qoh9X2dqWymyHkm4q8RHrtJIUBUBeuhmdZiG3IMC47gVxHQjYcroqlSKLpWy/QUJNy rumZ4AkcdTgQs91HRyppdHwdKJgCRQ7B8DUDN0DbZF80clp4wjZLgFEauEnufCA6F//4 Bo9l3PF5DAAkagf297Dy9os/ERZqp+i9Z9v1SdLTfEZLieGhS20wghMX7R4ThlrQkGgl C+IfTnbS3THMfvF5M4rG1v6f+CVwEFx3ZVOkAE8GAABqVo05MllTaPNfxYs1XoQGdfM7 CjINOZ8ZS5sHQcsFrEOdxr8ZwV6h+SbzYuw0dA3hf8zBQjeQd68TD/uDGGCQf5cQ2YOI 7J4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=xC0j8nNl0IjVq5e5DkTu2zl2RjAuSNRZYGbUYvQn0hk=; fh=ZoVubQCsNQOHN49KPCayoZVg1FQY9yrX5yE190npkqs=; b=YaR4MILp0BPJXMvRuPbFGgu7laQ38V2BetST6mcc7umnyqyrMuH3KW0z31uP4p0QCb E5JtgpbJamBr7Mgnr9gkm1D6Bo078ppD7PHSq7oS9YgYiOh9F60A3RzwpHSNjkkS7HaO cdALG0hwZ3zKDGWoXr6eabLmp1zs4yWMJLb7r9WoQhSr0kHe8ccZp6idUYrTboxOom+a GhtQSq9/xxbbZ9nqxo+7Z5VBfWYFv5m0lG2eQn88wZQMiUwQ7gFN2hP698d0TSMjnrN4 +BazegJacSvihZjiiM7XwF9t7jJ/vIs2jEHOjbZb7fs825g+MjV2QJppmH4eFxwhojMv 242w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n3mPtseq; spf=pass (google.com: domain of linux-kernel+bounces-16740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b5-20020a1709062b4500b00a28e7315e4bsi410980ejg.279.2024.01.04.05.54.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 05:54:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n3mPtseq; spf=pass (google.com: domain of linux-kernel+bounces-16740-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4A56A1F251E9 for ; Thu, 4 Jan 2024 13:54:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C81C224DA; Thu, 4 Jan 2024 13:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="n3mPtseq" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (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 783E22232E for ; Thu, 4 Jan 2024 13:54:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-4b71cdbc788so124333e0c.0 for ; Thu, 04 Jan 2024 05:54:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704376478; x=1704981278; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xC0j8nNl0IjVq5e5DkTu2zl2RjAuSNRZYGbUYvQn0hk=; b=n3mPtseqEBHNdHwHjzDMddya67XPT+jx+YS3Mfj+B9svRdWb4i1DW+pxRAC+LlHLJE qu6DpLxAQ+GipxzYf4ahGGXOuOD36v3W6y5podQfjatbRpzhdEk2Wd5zDvIBM2NJGOzE DTSEsLbSG1P31uCtp4W0Qk1kr+FMnNgcY7NyWA6rvBtr1MvfdlT1QDCEzRaGzlsxyt6N 6o7OTVwBK9Vec/kGoPY8kHWs3W+MAZTIsV0MNu4qvHuSA/fiqgtWD5k10tsaen6eqHpG OzFOib6HHSS1jWmbF0zjAz5mZrh68ZUD6QcG62K3/sdmVaAuxJM55fx/GQRquMwi7edA 67Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704376478; x=1704981278; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xC0j8nNl0IjVq5e5DkTu2zl2RjAuSNRZYGbUYvQn0hk=; b=qrJstfnCUWbh0nKOMpdfKuYJfXGzAhoNoVBvCSKOsNC3RcxE6nTczk3UbfSdb9sSNE BK14c7SNfLEi6HW2+IM2XmCPQzC6yktpC7aCjBVnRU0/NrBb3X9rNbKgFU9hSEBZdSsb jeWVibGe0UrHq1Cje7eNmcKDhtnS5FkSw9QabfAjj8ZQHxB9VnTFJsrcfvjdSx4CbI2N tSe/0eUAE32O1zoASUX7XZIwnPnV53yGvw+d6EZj8KSeBahe1YcH09aAYc7XaxPZ+l59 ZMIYZKcfsuteTGfcaFcL+QVtI1o1Emw1t5xDP8J6OfA43krpAN44ueIuy2wcFJqHKHLu u0Ag== X-Gm-Message-State: AOJu0Yy9e4ODfeVe21wxzVkLjTrUc5xprAPZQE6KvuIJ30+hH8FDEr6R WmS3fxkgG8XEWOGNenCklOg3hBAfV275CAUc2h35kqLGTYjr X-Received: by 2002:a05:6122:7cc:b0:4b7:e96b:8b12 with SMTP id l12-20020a05612207cc00b004b7e96b8b12mr367724vkr.19.1704376478197; Thu, 04 Jan 2024 05:54:38 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231216-rb-new-condvar-methods-v2-0-b05ab61e6d5b@google.com> <20231216-rb-new-condvar-methods-v2-4-b05ab61e6d5b@google.com> In-Reply-To: From: Alice Ryhl Date: Thu, 4 Jan 2024 14:54:27 +0100 Message-ID: Subject: Re: [PATCH v2 4/4] rust: sync: update integer types in CondVar To: Boqun Feng Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Tiago Lam , Thomas Gleixner , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2023 at 10:18=E2=80=AFPM Boqun Feng = wrote: > > On Sat, Dec 16, 2023 at 03:31:42PM +0000, Alice Ryhl wrote: > [...] > > > > +const TASK_NORMAL: c_uint =3D bindings::TASK_NORMAL as c_uint; > > +const TASK_INTERRUPTIBLE: c_int =3D bindings::TASK_INTERRUPTIBLE as c_= int; > > +const TASK_UNINTERRUPTIBLE: c_int =3D bindings::TASK_UNINTERRUPTIBLE a= s c_int; > > + > > Similarly, these definitions are better in rust/kernel/task.rs. > > The rest looks fine to me. > > Reviewed-by: Boqun Feng Thanks! I'll move these and add your tag. Alice