Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2339836lqo; Mon, 20 May 2024 02:44:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgQABAlQ7ofLVph5AHrRwo0WE9YOtJ0XERcDz0FPmPcxEt/RG0a+Kgu3yT1Jxzg/YckHtV4Vo4WF2nAU5gZekZFkoVcZjgaKw+OxHv/A== X-Google-Smtp-Source: AGHT+IGe7bkvAKLDLrIZlmqi53tGYGWYIXXQBQL0qGtiadK8teXlNW4CSpm23ksAG0F89rmf8iPM X-Received: by 2002:a05:6a20:2d24:b0:1af:f64c:b795 with SMTP id adf61e73a8af0-1aff64cb959mr24606126637.30.1716198275650; Mon, 20 May 2024 02:44:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716198275; cv=pass; d=google.com; s=arc-20160816; b=DLjMsN4PJBmQrW6/ixWWqwsabZPSRBRijZeFu8ZO4BDgrhgzAOVQQxkNMPADQ9Jrem AKa+bY7SZGIMdpm28ajdPLaPHA6Phrf9A1R59kCm4AzgtCp36zNFUHPggYrOzPbjnrW2 L+mSJTim2MSH4v0caxyrDaSf+aIlXqo3RpTJD1SxpjQs4DILUJ5wtzuAb0fysKCWsHqk +5qAySezx4qNg+JCmJMZPyH07GhDyWZcmNHGElys8j2NHUj6NWtwYzOfuUYlOJ4PGKWd wdfiI5VWgN1d2p8zLFMNYIJ5hH3DcS9bnSLGMOrwhQi8eeaORMSfIm1jSRwupahkBinN WtBA== 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=9SQyahqkNTCE11p+YPTRBzNEGuv1mZ4mTj9rW50lNSY=; fh=lVEV20KpHkvGhPCXKPikxgjx1Sjb9V55b06fitJzWAE=; b=oF2H5sduexIUGeW1pTaj5c6WXdoAjRsqljkG5zy6SKfC6zcKyHto4GGsToHPiFyZUC KyeIRJZEozxAb6nUY8Sionh2NOMXOmKwI1zbuTJHOXVTqyiTfndJ0kTDWQu/YWOafUBe gz1OxwXDgRgy9sH8zvNjTwslN5Fyqjs2w+/RC1/qnT6ZC+oa/ffl4ywLMT3q1cMP6J/b 3O8NDclomnnPGwlNKAUkz34/1RQbEU/fPTHRoNE3zZgpCkchkBb5EPv/NwbbAkYHj3SF OQYMeNKzr1FUp7v2BtOsGXvKNEpoVQnyH+Zz4UiSUnQi8dWgwMx9EdltQyKD8qn/IrEK Oa2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pEgDGZEZ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-183559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 d9443c01a7336-1ef0c26f788si1147605ad.614.2024.05.20.02.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 02:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183559-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=@google.com header.s=20230601 header.b=pEgDGZEZ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-183559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183559-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ED52928165E for ; Mon, 20 May 2024 09:44:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4C092E859; Mon, 20 May 2024 09:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pEgDGZEZ" Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (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 9B4113F9FB for ; Mon, 20 May 2024 09:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198271; cv=none; b=Tu7hv+PxH0NA50r9ZM4FToyTM7Qz1BDjtPvV4L7wc1HCFYYudMTvDulZmr/Q/gotbZkfLw+0JFMJO9xLdwQPiegoP2uXAfvDO62oHpIZO/YokXwF/GKKCpCaJMnacfvYvBy1qbFJrQ9Ha/djE2u3tzlVKBSk9pxzwneaiCAQw0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198271; c=relaxed/simple; bh=9SQyahqkNTCE11p+YPTRBzNEGuv1mZ4mTj9rW50lNSY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=p2JgJbvhRlytvIjqxI7tuD9yP+B5ZfycpOts88qOJ/EAwtqmFX6lQHfAmC540+pms1QgxqIGmA+9M9W00hTZiajJuHWUdUN/lbq3/L+qd1FbXvsFh/hnnalO0ZGJbVhI70f6+w0eaDpyFTW1PTbsqdcO8nnUknX5V0sLzWES8jM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=pEgDGZEZ; arc=none smtp.client-ip=209.85.222.54 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=google.com Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-7fbbb2cf3c1so1259014241.3 for ; Mon, 20 May 2024 02:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716198268; x=1716803068; 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=9SQyahqkNTCE11p+YPTRBzNEGuv1mZ4mTj9rW50lNSY=; b=pEgDGZEZpLpBHz7CSyPYgcd+CG725OdRFCWH4zXcJVDKWNgSZ3dQlrn41HkG0A5toU LtmjH99x28Q0twiRNs2GV1ZgmrkMd5NqHjc/Uej531pC8AmEOdCERiC7ILnua5IT35G4 45lnudKLbGlIdF5ih6IsndaklMdoBDatBEAxt8HW8vZzANXc6uOm5vng+GX5ebnDPNZ8 jCuS4Il9uNLjhqJtJTINCaJ9K2v0Ti3IYTehfLOazQiciAhfACmC8Y5VBKr9Ul6nkdFl bWnOs23JvJ4QaVrU6m8UESXzgs/fPEjrIo//lWCk0TpJJ1vMbP5SyI5ox0JyUItG4TdD KfrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716198268; x=1716803068; 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=9SQyahqkNTCE11p+YPTRBzNEGuv1mZ4mTj9rW50lNSY=; b=P2pjcq/YzXvxrDqgzeZsaVVc7fYo1potKwcu9abGRHFV8QGMszf5c+1xXqFjHm1QkE 0rO0MbBQLFHOKGKqm3qqSZ2dJjL2sl/kQHggGxUWi4PuU6ArWJgLPP3m6oHvhKZ6Aik5 K5ZGAdHfiRGQlyA6sKbp4+g1+XQ0ZnwWloCaYTOm783vRKCXTa+LuxkTskDrbqIapO6A cY6jXEy3QzfAX47pEDiYKTQifRr2RzYVa4q/737s00F4SAs41EOGCt8NzLerIM72THbb b+8397QGvLd1/aB1+sO9fnDmoYXM+dpEuVY1jCfCMNBVrs3bQgmbZDwukd2IXWxPugDi 7h6A== X-Forwarded-Encrypted: i=1; AJvYcCUFVjDoHi7PBakcYPXDsvStbS5dUJBXF8l/JKMrB1aIK+GReMPn14oq66u8AcZnyIFhp8WDrlXXGwsJLOpOx68HfMGpmm5ZqYn21mgh X-Gm-Message-State: AOJu0Yy0kPh75ZlHmLylif+BhkYJis8IBzEV6xIh9qJ/F1DmiuMGN8bb 0ZBaB/lJJgZYLtq3Hm2Agup7Dcg7bfAYvfYyR3DlAP16l+hUL1di1MMiROIqFbDUgATBlgfjdaQ clDujIzVI5VKiq1P3iAyvjMNtrU1aFpOi594A X-Received: by 2002:a05:6102:d89:b0:47e:a214:8d02 with SMTP id ada2fe7eead31-48077cc45d3mr28209812137.0.1716198268543; Mon, 20 May 2024 02:44:28 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240519211235.589325-1-ojeda@kernel.org> <20240519211235.589325-3-ojeda@kernel.org> In-Reply-To: <20240519211235.589325-3-ojeda@kernel.org> From: Alice Ryhl Date: Mon, 20 May 2024 11:44:16 +0200 Message-ID: Subject: Re: [PATCH 3/3] kbuild: rust: support `W=e` for Rust To: Miguel Ojeda Cc: Masahiro Yamada , Wedson Almeida Filho , Alex Gaynor , Nathan Chancellor , Nicolas Schier , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , linux-kbuild@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, May 19, 2024 at 11:13=E2=80=AFPM Miguel Ojeda wr= ote: > > With `W=3De`, kernel C targets error out on warnings. > > Add support for the same feature for Rust code, but take the opportunity > to apply it for every Rust target (i.e. not just kernel code), so that > it behaves like having set `CONFIG_WERROR`. > > Signed-off-by: Miguel Ojeda Reviewed-by: Alice Ryhl