Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp711135rdb; Sun, 18 Feb 2024 08:12:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUdxAAjHgByiyZaOaH3+OLg6hyCsqg6CWe2qM+pLv8NqFAxVcbsqx8Z9JMBSRsuyrHpM3mzlwiun3f9lluk7uK6PUTq2o8rpoBUacvZqA== X-Google-Smtp-Source: AGHT+IF+cPMy947SnJ18woSv7FmNwQ2tAOT9XsmeE0mPxcVLD0ws0HAz6P1hoGWjdwGBZFAGia6h X-Received: by 2002:a17:90b:1881:b0:299:1cce:f3c3 with SMTP id mn1-20020a17090b188100b002991ccef3c3mr12018113pjb.7.1708272722230; Sun, 18 Feb 2024 08:12:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708272722; cv=pass; d=google.com; s=arc-20160816; b=bsrTwli+LuLiSsLNJxGxTUEpeM80CC/vRhsC7b9ovKsoG7NcW46NF7yzunJd0nUGoU dHy7ePvmCkGEkA5ZC2JKv7MS/2VNs2S8x+DIal6ueBs500mR8qYgBChVWeG5GRWyJBh7 p2VCu6sIoj+YWiCDSt1KIuxYUeYQTsDKTkbOUVgWJ6FCz/WUexBjm53Hyt6CngEQxuTG Df2Qh5kfj+46aaIR+IaygWiwAbpBYThv2RCIYLowbJMy7n7pe/uBB/FOBhbimTPL0Jyj XD4WLXW6CRXD9VSRq3KQcv1HX7ODE8d8vcivdliz+ypssjY31KRHDnf4ZWvdhT4ZXzyD f4Zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tW7EMHm+pV1IgZiBPcrF8p6ggsHIaTJdyvaAlRROm4M=; fh=05OHy09oXPiOTsEds8dKGmEZ7NeiJt0eZgzZDzqRVEI=; b=YWRjJUCC+gFaTG9kMzqRnJa7KAHvU4ct+rMw/13l7CX60nC2C3UaPYkAvlQIz72gHq uQD/6PSsnH0Kp9xiE2fCldbhnemoqmpmzgoSr32lvYr0ggzrZrXejb1v0y0awMySg+7S zXAf/vx4II8iXLvtwrVWSsYfn0P2jf0IGiKH5T2BlHO/M66XX+pJqKo+65BEXlHnR+A6 HAkLa1rPG8NGNspgHTkO9OKwIh8cFMvWY/phjdATRsatK1TV1VmWGoCHYseIZ8TqyPqc ixS7pq22bneqz4dQsiKrh2WgryeZkVcDciQNcG6LCCP6bKWkYbid/ApB2iRC5XSmx3oi 0NWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dulISQCg; 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-70437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70437-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id pi16-20020a17090b1e5000b00297327ffe69si3186143pjb.109.2024.02.18.08.12.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 08:12:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dulISQCg; 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-70437-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70437-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ECB7C2817E2 for ; Sun, 18 Feb 2024 16:12:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BE156D1C8; Sun, 18 Feb 2024 16:11:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dulISQCg" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.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 432FEFBEA; Sun, 18 Feb 2024 16:11:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708272713; cv=none; b=cHCwUvJIce/9YQ02GV+frJyxnnoHHWs2W3qSKj/yw5SGtwPtsLYjY7LJj0hTzhrbc+FFvJQyiw29nLc4MzqEQjCZPQxNsqnBVLSCBMQ6e1LUDZD3spw6N5lLLarZXJBvR3dLNgg/WTNpMivJkFh8oVnhxt+uOtZ5xdkOajGrd/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708272713; c=relaxed/simple; bh=O7gBdNUrHWtEdQ7Sb7xM0HZk+kbpmFEH/bA31/rebr4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WKiZvKclk4XHZa8MDZQJryIzuVgy0pdFZWy5HStPJhefxh/oBpQYN65mSjZi/Sg9Kw67jfgexRJtYABucHqRf5hnlCULtfqYNOCmzqt6+gZnw9VVEo2dvXtFEbowX4uyVnJcZxNH9DIWAI5NhsG3ieH4b80c3thHtfhWa5iBl+0= 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=dulISQCg; arc=none smtp.client-ip=209.85.214.171 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-pl1-f171.google.com with SMTP id d9443c01a7336-1dba6b9b060so13988995ad.1; Sun, 18 Feb 2024 08:11:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708272711; x=1708877511; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tW7EMHm+pV1IgZiBPcrF8p6ggsHIaTJdyvaAlRROm4M=; b=dulISQCgLoSdL6sa73gh1QlIRYFGkFSSWA7p+5aVYahFLYOly4DIp+dvHXxo/6zcsA Xy6a5qmw+KCPOsqNxcza/ngVw7KfRuB6qzMBO7Ky+Gf86nNaFc4lrLzpdBwKuyopeuhe vFN/+Jq4xhXRPPex42r/Z8u0n+4jpy83XGJTD5GX1psBm+6ibc4lnhRH/8WRp6R2Zvjt WMpUW9O6Ei2LZHu60p1L5ZuaQ6Cjn7h2ZW2C+KNlysm1JMMm3dOBuXmgtpy3ICjnsaba 6fYbX/cBW1tUmbALrPfpgbA/LtBdWOpXH1CKVdXkR2WGdjK9LbXZYOjpc+4tE7PRoF6F 7ebg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708272711; x=1708877511; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tW7EMHm+pV1IgZiBPcrF8p6ggsHIaTJdyvaAlRROm4M=; b=CszjxikYro7V0+5Fse90lQqsHSfMmFJsB7LSQcqS0T2ZpwdcvHXNSG4TUKeYMhpUEH mgXPb+U+2NsjAexlR/Du53Vnbx1RaFVoFWJtOOPYbzVPRPqAZfUxQr7KtJhuhPVJ0XUo MLT9QGyA14PEVsw+ILZCT9v2OyQdcrdoiFCtONMao6z+lf1mgky+cCmGKpDgT6HhZLWZ sDypJbi9NUa2QCjmt98Spuczdje7k5bNkK0N5zkIqU4fyQnE2HsDtuJ5XDK4r6qdojvv MnjAGYC9ug4HwUDLS2ATPMjH0ukCxADx774OHgXfUjXD9tRCfh2F25mvSLkvOtrBr2ew Ertg== X-Forwarded-Encrypted: i=1; AJvYcCWMQ+lUEXmVIDnFVrgrOKfuhIN8FTAMCnULneCb4t44v8+70M+gIKSqLmIUzX8ifhjm7IuVemcJCFExAyVb2zgzMKNdyIIrECEwje6MsGSvLsvqUUXbfKlguWjr5key77dPnaJaaqs/wTIOE/dJkrqnoe1rZwbvMOgeUZih58HISmJRxtBU54z5Ess= X-Gm-Message-State: AOJu0YyMpafNOJGM0uzs7YksTKtBKlSqrj5LIgE1+5aQfisH6tVgMcEh uNPN25q2d5aLXisfuG88MbC2QKK7UrOLONCzKFA5+0vULBttIyzaUgSI7zrd X-Received: by 2002:a17:903:11c5:b0:1db:8d0a:cfa9 with SMTP id q5-20020a17090311c500b001db8d0acfa9mr13621769plh.6.1708272711402; Sun, 18 Feb 2024 08:11:51 -0800 (PST) Received: from [192.168.54.105] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id b15-20020a170902d50f00b001db4b3769f6sm2813762plg.280.2024.02.18.08.11.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Feb 2024 08:11:50 -0800 (PST) Message-ID: Date: Sun, 18 Feb 2024 13:11:47 -0300 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: [RFC PATCH v3 0/2] rust: crates in other kernel directories Content-Language: en-US To: Masahiro Yamada 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 , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org References: <20231104211213.225891-1-yakoyoku@gmail.com> From: Martin Rodriguez Reboredo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/13/23 11:13, Masahiro Yamada wrote: > [...] > > I will not provide a line-by-line review. > > > Just one thing I'd like to point out. > > You assume the library (drivers/usb/core/*) > is built before its consumers (samples/rust/*). > > If Kbuild ends up with building lib consumers first, > it will be a build error. > > > > Kbuild descends into multiple directories in parallel building. > > You cannot predict which directory is built first. > > [...] Thinking with what you've said the same thing might apply to any Rust written code that depends on crates under the `rust` dir. Adding Make dependencies to object code made from `.rs` will be required if so, assuming that Kbuild is intelligent enough to build the crates first.