Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp491849lqa; Sat, 27 Apr 2024 10:17:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3YyDa6Lfi+LGWRiuzBa38XR0TDdqyOgCdsOWo7Jkaz12n1Nzx4KQeun9086zyeNvHW/tF2o/rveP+8NJVufBNEHcI5WvdRysnAWU9XQ== X-Google-Smtp-Source: AGHT+IGVGWnVycvyad06Mq7V0NW4hWUgnz28aDngCo88OhLs0UoC6t12t1sF8sNA5hh/3KQqaRGg X-Received: by 2002:a05:6358:5c0e:b0:186:2a96:a5b9 with SMTP id x14-20020a0563585c0e00b001862a96a5b9mr5517089rwe.6.1714238265314; Sat, 27 Apr 2024 10:17:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714238265; cv=pass; d=google.com; s=arc-20160816; b=yaJBCxI1Nvzm6N4gp9F8rG865/X5n/Ot07vHxFqYrgmFg0CdzzlXXNpI46HCxHHmjQ ul0FYVuYFDdSnL99knRT55q+ET59I5TRDv3E3GVp2+L0At5omvJmPj6U4oLZ5edyovie Exi1rRYrK81UOJ4UNLtnUNEetaFcOLqRWEAfKMcGl87iJp2KI2ggJNfhbxbOLXrPZIJH w+MkI12idCpW2Wqp/6H6sgX9Hj8MGAvaqk95A4uJBBW+Sz9A1uUxlU/XWNEt+9uKRHzO 8B9xKZHhVrs6xWVJ7nodDW0zvsfyK7X7p4Hk5dWN4u/g+Buxhu8FE1bpVlzn+n7Y9IrZ tK1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=k/5UWHqSMGl+EvdEUX1UoJ3axC4vu2Va/u/dAPjap/0=; fh=hevvz3SjA01ZtPFHwdeL5M4ia8ooYKb7Iq6mLmatHzE=; b=cjqdbJ6FJOWI+bpWj7Dsnve0XQZ0cneudAp1liiBJ7ctQPjBzxatJiJF2qMUp2GrWk ZZi0YiSkpnRl7PpOsONSQwMpCmryfi2jOCDkh1k2iDU0SgXHZYMm6DPGXHJDagYl955s M4rTCtFQ7Cb/rX0xyIBkAiGIUSxo0ELSazKQhp00Jvjw2TU5TratMW354eliBlCzIBYQ SzqI6aODCVIfrFEKF4eAX6BHAk9db9X0o6YUVQ1ApchSg5OLHF6shxHkn6fNS7IYkKxA FuOR1HeEZQxP+rlHavsnTMAdOldpm95Udl+RHZnpzkWolbcDH/m7SktkutgeM6eXc6ZT kuvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FzS+vtzB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gd24-20020a05622a5c1800b0043a353ed3b9si8270867qtb.111.2024.04.27.10.17.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 10:17:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FzS+vtzB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161109-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2372F1C21634 for ; Sat, 27 Apr 2024 17:17:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90269142E8A; Sat, 27 Apr 2024 17:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FzS+vtzB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2A7B4EB39; Sat, 27 Apr 2024 17:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714238216; cv=none; b=eEVnRtp85XsPzGuMJCvxkUw0nPuVElI2z3UxRhOD+pk0wW01B8zYFvPgSAmLPP71IEuwfq/qipypyqQrbevNSny5rxEOLNI0cqVKUxMTuWFh86ia/lwsUNZZ0Hjf1bA9Q9hY3DtQOBme+lQqZqdIoZJp9Zbh9iFs7XWnlpBJvSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714238216; c=relaxed/simple; bh=6C8qc+2nbWsj88zYuaWTC/p/dDWtLVgW0nmBbGPJGvY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t3yNztLUOs+zpbDSsTLEYduK6419VDw6GjJqo2gOnk4wQ4a01h7dFXmnUiZax/8gHQpUlBGfHq/LZU4ES6bwK0Q8x+4iNsoku7fIVWZUZf/MmR4ObedLkHG5SQNbwBKMIcnLbicI83+yywGmm2qKbKzEuYh2lycqhs7fBlkHoHs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FzS+vtzB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67861C113CE; Sat, 27 Apr 2024 17:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714238216; bh=6C8qc+2nbWsj88zYuaWTC/p/dDWtLVgW0nmBbGPJGvY=; h=From:To:Cc:Subject:Date:From; b=FzS+vtzBO8Xah/t/XnEYCDvpvr2I+G+ce0/HeMHRK30W6pOobK/OUXWZC9QokABPk XDWU9maS10H30JOOvUTxK7OZyEtluAMZMn+Y+hcv2fRb1fp4QNDqxpV3h0Dpy53lT0 ryC6kvMG5Rhg/Go8rk4fQhdL3lx75rXd/2Q9cuESsJQ3VXFo0XUEStcnyOeDueK1eI naLhnECvvsgKnXLyQLvjq+enwTERS88X0y2KK0xEb5GihAJ10b93UcS0imkQFuC7Pa XUIG26fBZM0WYT8BAxmHfRiLtArBWFVrp3WOIdOzKQOHciK31qF3pHBLfpsrZVJiqm c61vSTKRLf6XA== From: Miguel Ojeda To: Linus Torvalds Cc: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Rust fixes for 6.9 Date: Sat, 27 Apr 2024 19:15:49 +0200 Message-ID: <20240427171549.934651-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Linus, Please pull these fixes for Rust. There are a few that I am not sure if they should count as fixes (trivial docs rendering, macro example and CONSTRUCTORS), so if you prefer to see them in the merge window instead, please let me know. The spike you will see in the diffstat is due to indentation changes, added comments and moved lines -- the actual change is small. Most have been in linux-next for more than a week, but the last ones have been there only for a couple linux-next tags, and I reworded one of those a couple days ago to add a tag (no changes otherwise -- the original commits can be found starting at 56b70b91a161 in linux-next). No conflicts expected. No changes to the C side. Cheers, Miguel The following changes since commit 4cece764965020c22cff7665b18a012006359095: Linux 6.9-rc1 (2024-03-24 14:10:05 -0700) are available in the Git repository at: https://github.com/Rust-for-Linux/linux.git tags/rust-fixes-6.9 for you to fetch changes up to 19843452dca40e28d6d3f4793d998b681d505c7f: rust: remove `params` from `module` macro example (2024-04-25 17:34:33 +0200) ---------------------------------------------------------------- Rust fixes for v6.9 - Soundness: make internal functions generated by the 'module!' macro inaccessible, do not implement 'Zeroable' for 'Infallible' and require 'Send' for the 'Module' trait. - Build: avoid errors with "empty" files and workaround 'rustdoc' ICE. - Kconfig: depend on '!CFI_CLANG' and avoid selecting 'CONSTRUCTORS'. - Code docs: remove non-existing key from 'module!' macro example. - Docs: trivial rendering fix in arch table. ---------------------------------------------------------------- Alice Ryhl (1): rust: don't select CONSTRUCTORS Aswin Unnikrishnan (1): rust: remove `params` from `module` macro example Benno Lossin (1): rust: macros: fix soundness issue in `module!` macro Bo-Wei Chen (1): docs: rust: fix improper rendering in Arch Support page Conor Dooley (1): rust: make mutually exclusive with CFI_CLANG Laine Taffin Altman (1): rust: init: remove impl Zeroable for Infallible Miguel Ojeda (2): kbuild: rust: remove unneeded `@rustc_cfg` to avoid ICE kbuild: rust: force `alloc` extern to allow "empty" Rust files Wedson Almeida Filho (2): rust: phy: implement `Send` for `Registration` rust: kernel: require `Send` for `Module` implementations Documentation/rust/arch-support.rst | 2 +- init/Kconfig | 2 +- rust/Makefile | 1 - rust/kernel/init.rs | 11 ++- rust/kernel/lib.rs | 2 +- rust/kernel/net/phy.rs | 4 + rust/macros/lib.rs | 12 --- rust/macros/module.rs | 190 ++++++++++++++++++++++-------------- scripts/Makefile.build | 2 +- 9 files changed, 132 insertions(+), 94 deletions(-)