Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp364445rdb; Thu, 1 Feb 2024 10:34:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIew5K3SpTGyMOC+cHI2Z0tl13I0SqKshW9pvkeP9AYcYTIQFCfIL5yQVObIhhcVIbQcGt X-Received: by 2002:a17:906:13d9:b0:a2e:acd2:1fe1 with SMTP id g25-20020a17090613d900b00a2eacd21fe1mr3915406ejc.73.1706812477022; Thu, 01 Feb 2024 10:34:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706812477; cv=pass; d=google.com; s=arc-20160816; b=P0ejhU4t23qVHoHRTO6MAZ5wl5ULTdN0GabWbNQ6gWwveh4cLQwtC6FL4NUq/4f/qG 8DBbzWCW4DUae+ULUfqSd3y4JGBZSe/LtCn23MPGM1Iu4BHOVrXXLbzjDhElpVqQJQrj FUOEXRTmz8EWChS1xWKdE8M5R8/SsCoxHD02I89ee8/xdySbg5yRlqucSfK00jkcRPgi D2sSWhxW2ne+tWiv1UNECHcXx7Bgh217Ug866vK26g4Jo5RPTbDdhxd8eG392WMWdpJH dv+HIiK94+zvKEcGi2oLOKMCAj9ZNeOF+mM7e7C2vbazjMfGuSpfFrpvN93OI4baBmfS C9rA== ARC-Message-Signature: i=2; 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=2Fd7ZWV1LtdaA8VIvBJoCEjDaseHpe8ZGvyJPTjzAFU=; fh=jmAKmYuEIQQl0s6zuSz9tey6Tydjx18CTjSwiDdX88c=; b=blWUEv91l6kHNiJnVW0SclroLusL00CLHJ2xJOgb05oDvtmchHC1a+GSvNFxoyuXJO i8vNdxOeJdVS5Nw6nbOU2zueTnDcNgqTTzccacDvpMkwO57cL2X8DtQFiFqzZbLcvGIo QdtK9OOn+Obb96wHZHiFbPn8vZIs7bhb5ZCiaKbDNLkXHrL7qnjYoZsbh4AHIWj964zB EskjCcDxtjQQjKOYj864eMpND4fsamUhPqfNITxaH140+0jlzl1El/wP28UL0RRyila5 yIL7yGfIjbvlxMuWs0u5I83xIxRuMYwj7qQtT3u2fI79NCVgoOTnwWxmMgb2nOkjFMGX lpYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ELVB8cY5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXR0q63d1ZUff2Y9bz7BfWxsHLlgUB9U0w8YL0mIpkBTemcF+TreXnidXsm4gv/0b7ha6EI+O77PspQE4nLVlgeX/DRYg43rcR82lxfng== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lu1-20020a170906fac100b00a36802b542esi49935ejb.80.2024.02.01.10.34.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 10:34:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48707-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=@gmail.com header.s=20230601 header.b=ELVB8cY5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 C33F71F277A3 for ; Thu, 1 Feb 2024 18:34:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCC717E112; Thu, 1 Feb 2024 18:34:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ELVB8cY5" Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (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 AEC7B1E88F; Thu, 1 Feb 2024 18:34:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706812462; cv=none; b=BEBiVlw4guBdMRoNdB71HP5NxpTZuQMLSfmrQglYnEJS7VpPP2macQgJ8OIwktTIQw6tkNxzoB4kfglDFpMgpBzSeqQZO7IOBkiGACF5GUg+am4dR0FaYpx96yeFVZXkgJbP8BSZ5UtqgQZftld8U8JLs0lo1uU2fg24myjPUtc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706812462; c=relaxed/simple; bh=2Fd7ZWV1LtdaA8VIvBJoCEjDaseHpe8ZGvyJPTjzAFU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BFCzyaG2pbWTRLyYGyBqwY95oqBunjA5tqbtzJvQpDMK1nPk8JYulA5JQXzU7oxhpf+6hm3elDdNKHQOUJwPI4IRYtDM5zN6rX90vnZkijpILytgEs8OKTVPBEmm/xm8YHiMowCQNxc5XMwaq23f4Ff5MLkLRTmJzWFrE545Fr4= 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=ELVB8cY5; arc=none smtp.client-ip=209.85.128.173 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 Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-603c5d7997aso12588407b3.1; Thu, 01 Feb 2024 10:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706812459; x=1707417259; 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=2Fd7ZWV1LtdaA8VIvBJoCEjDaseHpe8ZGvyJPTjzAFU=; b=ELVB8cY5XfkLaja7Z7okOUs1TbOA+Ea2Td6p3UGdyc9TLUlh/zyK6kMpJ5tJgTvuVQ 1MDVXsUBnIJ6WgtUmebRNquh1qBOGH38AwKSAdzpCTBBgkdctv+RbAWU3SUJBVMfXh8S XEUfaoZKmawGm0MSXgBnKlnTN6gvMWlRvN6M5liZI6iozUddSBlWK0yC3HA6wxV03KvV XWtbq4OW666hUeCoBceJcz61JHofzJTxHBw8SsmyRF9vwh72o1MvFHjerJdwZf7s0Cm9 1WNoBInk0IMtQCB5SeBQ3XOYpZ3XGalIbgwHVkK2Wgk7YQBQFdJ52PcZssOkXC0SWSPz JFDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706812459; x=1707417259; 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=2Fd7ZWV1LtdaA8VIvBJoCEjDaseHpe8ZGvyJPTjzAFU=; b=pEnjffX9xy1y+RFcAC+k6DXIDD83Cfa2DhuPZY9qxGuMfnCcYQs4QWrYkeDRhGbkIA nyRTSjGR6BqnySeh4g/NkGLLuwwjzvE1fWT95jyoRqcSi5troZUW6YxM0jzLHgxdnYtd vcfeFMjjUkeyezJ+PWqj+UZne2W397k9B4bQFcIoa6Ac5bQQVZSdastki8BO4/buewMj ICN+kpFzmYxnO77t6BWsu2hNX8HFei09spPXcGubRRuD46ceT93bzUgWb4UMTDBxqNDc +tYKyeXKSX0UY93G4atanwhyGKC5l5gX0PS+m8hw+DMNj8Z/DUc4CvK0jQKGf166v0nh 82xQ== X-Gm-Message-State: AOJu0YzhYnajFPqLR2ovg7DAhhbsx7V8ImmEg3SH329TAn5aEZoRSXDV wmdZW48bY/T3v/HbQ/jcO6JZPSSGp81kek7hLCg09LQ0diHZ5i5tnVR1w4WxivB7v1VVqXlfbV3 C6RtTnx9sy/txYYilzlkVPt1iND8= X-Received: by 2002:a81:b64b:0:b0:602:cf62:6590 with SMTP id h11-20020a81b64b000000b00602cf626590mr5631484ywk.34.1706812459677; Thu, 01 Feb 2024 10:34:19 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240201-rockchip-rust-phy_depend-v2-0-c5fa4faab924@christina-quast.de> <20240201-rockchip-rust-phy_depend-v2-1-c5fa4faab924@christina-quast.de> In-Reply-To: <20240201-rockchip-rust-phy_depend-v2-1-c5fa4faab924@christina-quast.de> From: Miguel Ojeda Date: Thu, 1 Feb 2024 19:34:08 +0100 Message-ID: Subject: Re: [PATCH v2 1/3] DONOTMERGE: rust: prelude: add bit function To: Christina Quast Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , FUJITA Tomonori , Trevor Gross , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiko Stuebner , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 1, 2024 at 7:07=E2=80=AFPM Christina Quast wrote: > > In order to create masks easily, the define BIT() is used in C code. > This commit adds the same functionality to the rust kernel. Note that it is the same kernel :) Typically we would say "to the Rust side" or similar. > Do not merge this commit, because rust/kernel/types.rs in Rust-for-Linux > already contains this functionality and will be merged into next-net > soon. I think you mean the archived `rust` branch (it is useful to point this out -- Rust for Linux is not just that branch). However, has the `Bit` type (assuming you mean that) been submitted? I don't recall seeing it, and normally something like that would not go through `net-next`. If it has been, could you please send the Lore link? > But this driver does not compile without this commit, so I am adding it > to the patchset to get more feedback on the actual driver. Assuming the patch was not sent, I would suggest replacing this commit with the dependency you want to use, e.g. the `Bit` type, since it is a small enough one. In addition, this series has v2 in the title -- I think you did that because this patch was already submitted, but this is not really a v2 of that series since this is mainly about the driver (and anyway this patch in particular is not meant to be merged; plus you didn't change it from what I can see). Thanks! Cheers, Miguel