From patchwork Mon Feb 24 23:39:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 868006 Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 E8DB220D4EE; Mon, 24 Feb 2025 23:39:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740440390; cv=none; b=uzj1bsnS1Etl5wX9Lns/MNFEaUZIqEjnLf1AkZmm5yovDt8VpTd8NuB4PVpNSlsr1PZoKzL6f3iBroU7xUf3jeXhd/BpbEnyjeMBCE46wERV072CAZT3jjNTUEhAjUhuH8ndTJa//+n9+e00uCv6TLkB1YJka94QnT1OuTzcJpg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740440390; c=relaxed/simple; bh=dy5wIyg9Jg4HwUFyZnwCx25rcLIim2cRM3MvxcOAjmE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y8wI45wmQd6mYeUyJphwQiHtvjm6diAGwjJj7yEL0u8WU2rASelRSmpcgw2MkMAedQIuR48ZTbWGtKcwFTKgvlG6Yj4CWSovHFBVPH0GSzjrCkM+83DXRu3iktaavLzHiZ25/He72xPIl7NJuxxaqkIY1a2gPmIkT03VeWnJSPI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Qu/bhYcm; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qu/bhYcm" Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-e5dab3f37b1so3890441276.0; Mon, 24 Feb 2025 15:39:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740440388; x=1741045188; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8PO+qEcGHwi3KcJ9iKhqChU9yJ5PCUSHuyHoxT5OZyY=; b=Qu/bhYcm4njpPxxNW2o8Z+TayUaUum24mJ1GKpDqSvRCcjPaUoTHG8xsoMyjhS1396 GTqi96DrH/cJ8n37h85xaGsVH3WmQmDKVlSG/tgPOXL7wuhQ4ycqSWtKPJi/Mf6CgPxn Mrw98F8b7ovQUf/NQ3uj7NXaJPXMbowi2eEK3gUOvogJGcmaAEy2n0M0fHAzlk2LdyGl ZOTd9GtgPm5Rn3955m8YiXz1PjKwmutvx64233XTjXequXnX52koJ13Ae2+fJsR6PRLy RhWDYtJvzDeG8gaaemuPuHJUkejRQ0HoDuAYcbLE2ptUtRyop7wW/gaFI4SPm79+J5LZ LMng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740440388; x=1741045188; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8PO+qEcGHwi3KcJ9iKhqChU9yJ5PCUSHuyHoxT5OZyY=; b=YC0YEqguo6bHKAOe8+W+M2vP8VCZwcYrXgNG3lqVml5oKdj8XE+QfrXddJzrt3cXFe 5wuLKj1dyD33a+ZB4VEx+JuXmuqmNuOI2K8OEIDzaZI44DBjjK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aWUuScl0K5z19KV1IaUBrkhIZ/rirQh4hpadn88E0q+FylHGCRKQ== X-Received: by 2002:a05:6902:cc4:b0:e5d:dc7e:9d3b with SMTP id 3f1490d57ef6-e5e8afe4595mr10874487276.27.1740440387720; Mon, 24 Feb 2025 15:39:47 -0800 (PST) Received: from localhost (c-73-224-175-84.hsd1.fl.comcast.net. [73.224.175.84]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e607b4c6e81sm88291276.53.2025.02.24.15.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 15:39:46 -0800 (PST) From: Yury Norov To: Miguel Ojeda , Viresh Kumar , Danilo Krummrich Cc: Yury Norov , "Rafael J. Wysocki" , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?B?= =?utf-8?q?j=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Rasmus Villemoes , Vincent Guittot , Stephen Boyd , Nishanth Menon , Manos Pitsidianakis , Erik Schilling , =?utf-8?q?Alex_Benn=C3=A9e?= , Joakim Bech , Rob Herring , Christoph Hellwig , Jason Gunthorpe , John Hubbard , linux-pm@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] MAINTAINERS: add rust bindings entry for bitmap API Date: Mon, 24 Feb 2025 18:39:36 -0500 Message-ID: <20250224233938.3158-3-yury.norov@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250224233938.3158-1-yury.norov@gmail.com> References: <20250224233938.3158-1-yury.norov@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "Yury Norov [NVIDIA]" This entry enumerates bitmap and related APIs listed in BITMAP API entry that rust requires but cannot use directly (i.e. inlined functions and macros). The "Rust kernel policy" (https://rust-for-linux.com/rust-kernel-policy) document describes the special status of rust support: "Exceptionally, for Rust, a subsystem may allow to temporarily break Rust code." Accordingly, the following policy applies to all interfaces under the BITMAP API entry that are used in rust codebase, including those not listed explicitly here. Bitmap developers do their best to keep the API stable. When API or user-visible behavior needs to be changed such that it breaks rust, bitmap and rust developers collaborate as follows: - bitmap developers don't consider rust bindings as a blocker for the API change; - bindings maintainer (me) makes sure that kernel build doesn't break with CONFIG_RUST=y. This implies fixes in the binding layer, but not in rust codebase; - rust developers adopt new version of API in their codebase and remove unused bindings timely. CC: Danilo Krummrich CC: Miguel Ojeda CC: Viresh Kumar Signed-off-by: Yury Norov [NVIDIA] --- MAINTAINERS | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index efee40ea589f..315cff76df29 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4021,6 +4021,11 @@ F: tools/include/vdso/bits.h F: tools/lib/bitmap.c F: tools/lib/find_bit.c +BITMAP API BINDINGS [RUST] +M: Yury Norov +S: Maintained +F: rust/helpers/cpumask.c + BITOPS API M: Yury Norov R: Rasmus Villemoes