Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp433943lqc; Fri, 8 Mar 2024 01:37:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEu3Mjc/+WsICWNC9i5/Qz8XdOAZWJSdxEGqsZyFlcEAC+Vx6FVAXoUTWP9UhSs00iyn680gppWVyUjXvzUh4swp06t9ldng4GEjZWmQ== X-Google-Smtp-Source: AGHT+IGeUcK2bpXFtuTJG5i0z+dtoQYvDqpy8cuLyuO1ECzlC/9CLktozqkx/XnuiAfW+3b+tgUa X-Received: by 2002:a17:906:a454:b0:a45:7f60:a724 with SMTP id cb20-20020a170906a45400b00a457f60a724mr8557931ejb.72.1709890635400; Fri, 08 Mar 2024 01:37:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709890635; cv=pass; d=google.com; s=arc-20160816; b=vFpO6xO4rjlxcUVq9aTWzzclgruXAL+1k02B3Vohxhg2fmL17JVuER3LU8l7viaEU8 RhedsD0jBw9UnfJn9CLngAPXC0B0ZZIQe6FzAWovEuiT0JIBgiwwqKtjz4zm1v6+4jcO PHR81Ajz6D2lnvaErDcUwoBgkwJOCtsX8ZzaCGuoLCpM0Lpz6Qc4kqwPUwOAcR8zVOgI A+fl+lq7OPW3ZGUXoGvfXFxzksiUmRDUWnmlfkgvBhcMyHN2sC+54HCKxCOKGNi3jVdZ J7qU5/9Fotl4w4/28+nxZnhzlVBWMCaBoUXxf0QfaDU8xDk4mph3fohHuEl4Aq4UW1Rk +Jvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=k/FYxEuJJjfDejA1S3OfbTfejCKvINxrPLGNHovjOxc=; fh=qyIC34O/lQA6V+MivN+o8XM4+44STiEnEjTOCXU7y4c=; b=vlP+P3CYfKbH4E4RNArrihg31mRPz9rOQjLp59RAgc6bDaWPRHm9QxGQvSAaioNKKx Rim9ZZQVflaC0/+ABZQPqXlAwiyARbiTeYttk5PvLKE3+iTtb63I1/UgweyigVgpOqcD GLaD4Ct5waeT9l/7M+kxihQj12TfSfgJJsaI6z4fONpl3hRcW4HiLJYfgksQa0phCnAY 5o5FARNXYDLzFdITTz6T9Qlg96vIseAmRDw3kRJTNexCdbEGq0mpn3KRyoxVBTg0lUb1 Xs82PAQQ8lk94HGo4s+MMFnelTKxlL8bxuFkUgWKW0WW24p5VYBlf7ldb3kcTDB6vmuq vIBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Gt1SFTqi; arc=pass (i=1 spf=pass spfdomain=flex--aliceryhl.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-96754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96754-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 r3-20020a1709067fc300b00a3e58786ab0si7580617ejs.495.2024.03.08.01.37.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 01:37:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96754-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=Gt1SFTqi; arc=pass (i=1 spf=pass spfdomain=flex--aliceryhl.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-96754-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96754-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 E9A701F218B3 for ; Fri, 8 Mar 2024 09:37:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44FEA535BA; Fri, 8 Mar 2024 09:37:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Gt1SFTqi" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (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 D8EB9524C3 for ; Fri, 8 Mar 2024 09:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890621; cv=none; b=uMtwW8enPYYuleVAjxcVQyNtI23KYwFCqP2NUtb/EUXrPYvLi44fojuO/dOFmS5wKuRtIG21oBIBOrqJeuZHqxRWpEEZnHOP0D+EiRjv3/qv5gheqXGWdGAhLjwo75fUERYwh8kbvlz6IaSjeYoCYi3MzBVF7Qp4iLWMpTNuIpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890621; c=relaxed/simple; bh=ARgIYQHmcT3WDCT/C37sjRzjUfl+5mv5bdkO5HSlrZc=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=OZKh9/qQNTflZnKemmFvHbPjg6QgP63IhvElqH6yEVAocVrZexFebbV0Ur3ayiO1EkYFas4ZbWvl/3INC0LVvlUvp4yE7PN2QaiDF1H9nZ9AOYTnqQc0AT7S/iBxYJNQysQBmnKuxZ54sC9oZDe2pj2wOslHqGwrDrMJ1BnC7f8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Gt1SFTqi; arc=none smtp.client-ip=209.85.128.202 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=flex--aliceryhl.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-609ff5727f9so13425707b3.0 for ; Fri, 08 Mar 2024 01:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709890619; x=1710495419; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=k/FYxEuJJjfDejA1S3OfbTfejCKvINxrPLGNHovjOxc=; b=Gt1SFTqiGfL+hs4Aq7UxK8B8pqQPlLlJJxIPqKu4A4ExdvuLK4VtTTwO4lvFa9fxo9 WYcE4NheSozoZ8ZgA04VOEINvQZYbL+I3NwOywoA0/c9zctlQimChQDv4EzibrN4qeFI O/4ReT9K1yw+ond9D84zO7aVUWu0w97ffsKIMx8VP2wnS0JrWPCLW0cqsIMuqIJPqh9i LzX3o6XjKZmeUGqY5edgSzN/c7NDIXY9mm+iOh4Z33fyBPORX8/XBrCS7fMbIP4HX+4w A4e8iQqSJjLVK8zREin8eM01DECFLcS5PAvY17gZGBy9oEiVP2Iio6xJ8uqMoBbYMe01 FSLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709890619; x=1710495419; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=k/FYxEuJJjfDejA1S3OfbTfejCKvINxrPLGNHovjOxc=; b=okHVKkpVSdzFHb8nTzzqongqNQWyGODMV9sS/SCSAzw7+LeOQMj5CfUaSfuQA22feR fNY8y+d4RyWj2HP+i0ZwaXhnciDttbywi+8Cy5jxzSDNclLkRR3unilI7cF3kXwpTIgx bUhzp20vIYt5+zchQTc4NJ4lGvhpwWgWvJ3etTDYkuM4n7cEaMP8ZAkv8LYssBXj7Zse W7tusa+pCU9VtMIgf02wbepNEjnjNxgJIu5p36B2boILcw7dJwnWhNg6RtXBRmC86zIM SIhwW/DS00S6iqadyRTohDH4BvOvOGwrqRlJEESBdhiL1y8JHIZysLAsIk3DwhQc1GIP 0L2Q== X-Forwarded-Encrypted: i=1; AJvYcCX2ZRiHSLJn8Xs2TD7wNqGzCp4E3D4Hz445SVoxK2Tbu/S2E2T8ZPRXSkhjdfRYUW+pVslJwJXSfQ6rp+TRm447TJKIv0z//88caiq7 X-Gm-Message-State: AOJu0Yy8TFK0UoK4K5lP5H3FmqoIUyodLBW/lRiOzMs/FoU8eaQbShb5 5QXSRwcxkwZ9PPjM/MYp7BE0BI/KL2cFJ2e54YeD/v9ziOD06orNsHPFkTMd/JKUUChR5jDeGys trEEEJtWc9+6Sug== X-Received: from aliceryhl2.c.googlers.com ([fda3:e722:ac3:cc00:68:949d:c0a8:572]) (user=aliceryhl job=sendgmr) by 2002:a05:690c:4707:b0:609:fdaf:8d0a with SMTP id gz7-20020a05690c470700b00609fdaf8d0amr524280ywb.1.1709890618951; Fri, 08 Mar 2024 01:36:58 -0800 (PST) Date: Fri, 8 Mar 2024 09:36:31 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Developer-Key: i=aliceryhl@google.com; a=openpgp; fpr=49F6C1FAA74960F43A5B86A1EE7A392FDE96209F X-Developer-Signature: v=1; a=openpgp-sha256; l=1508; i=aliceryhl@google.com; h=from:subject:message-id; bh=ARgIYQHmcT3WDCT/C37sjRzjUfl+5mv5bdkO5HSlrZc=; b=owEBbQKS/ZANAwAKAQRYvu5YxjlGAcsmYgBl6ttfeicdGJCfsaczcFXNtWql+LSBl6Qc4+PnP ywKFtoIraSJAjMEAAEKAB0WIQSDkqKUTWQHCvFIvbIEWL7uWMY5RgUCZerbXwAKCRAEWL7uWMY5 RnVUD/sHQH5VMR08yYy75nUq6fV+Yv5tkgOTsv2agrrP44YcVQqy7U/melDNm3n8nJYrXh2gOpa gOJQ91t+rxLwzIhod7YxtA4+ZXSOmc1MdtahuK7efuKiKgPbmw8Yg58mz5iTmwAkNWhKudF3QM5 qMw4n2zKKLH2WlyW+y+inDtP0rfZiX82OPgH7fi05cl5dQYCOYWVL6OACSuUE6/gkumY2pCedgK Qbe3daRvucMgT/Nk5pumZPMrNXzjxL5yhdjDvL27+AOJDVGtcdAwWbts7TxNFA4yEgA8fmzIEPG nclXhKSU4urh3EWFS6qKnAkCOtypDOsGyuwD8Y0shJlBv/XO+CY8rzaSHmO1BJCvMrpax1p/VLa YvBi1/hBRo9nkh81dj2TewoATyV5qNCdIVQNKRjptd6/9kaAUslQyaMMK7iG0Z4dCZ48UZftlAj 9o8SthHY/vY6v/dlm9o2JTm80kYnAA+ybghA38+AbhQUCS7BAJMNXSG8G+DnHB3Mu3SkRIimzi0 wxNjQ6lWJ/3+wTnmwSXrxdOlnBdCJuolJUS/m0Wx9+5hHdmD47S4BcDyeO8xOJPU0Lu15pa6QpA icTa8W/M6KURPPJ3vAATosYGDv++n+tFkRqIHUtvcrSEWORaljgvxYA/9WA47zQK+r6FK6PT/to So5T60HPmXn+V6w== X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Message-ID: <20240308-constructors-v1-1-4c811342391c@google.com> Subject: [PATCH] rust: don't select CONSTRUCTORS From: Alice Ryhl To: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , "=?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?=" , Benno Lossin , Andreas Hindborg Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alice Ryhl Content-Type: text/plain; charset="UTF-8" This was originally part of commit 4b9a68f2e59a0 ("rust: add support for static synchronisation primitives") from the old Rust branch, which used module constructors to initialize globals containing various synchronisation primitives with pin-init. That commit has never been upstreamed, but the `select CONSTRUCTORS` statement ended up being included in the patch that initially added Rust support to the Linux Kernel. We are not using module constructors, so let's remove the select. Signed-off-by: Alice Ryhl --- init/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index 8426d59cc634..41f7fb195382 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1903,21 +1903,20 @@ config RUST config RUST bool "Rust support" depends on HAVE_RUST depends on RUST_IS_AVAILABLE depends on !MODVERSIONS depends on !GCC_PLUGINS depends on !RANDSTRUCT depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE - select CONSTRUCTORS help Enables Rust support in the kernel. This allows other Rust-related options, like drivers written in Rust, to be selected. It is also required to be able to load external kernel modules written in Rust. See Documentation/rust/ for more information. If unsure, say N. --- base-commit: 90d35da658da8cff0d4ecbb5113f5fac9d00eb72 change-id: 20240307-constructors-07270b039e2c Best regards, -- Alice Ryhl