Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp68849lqp; Tue, 11 Jun 2024 15:08:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm2kejcImc4Zu7rg34XUha4mtghkKrX01/AJFFsxRt/13YMygEgkvuA7vNWIcwEy/qlYq0XA15ZWkrvZZztiDyfPv0iP1Z1+Rkp/r6/A== X-Google-Smtp-Source: AGHT+IHZLBIwkf0Px0rBvvS2+kDiKArjRpOn4y5ghOIJdgQ4ND2Jv2JkRQD0o/UxdqMnLTxKXpEE X-Received: by 2002:a05:6a00:2353:b0:704:2a93:a6c2 with SMTP id d2e1a72fcca58-705bce20045mr223548b3a.17.1718143734215; Tue, 11 Jun 2024 15:08:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718143734; cv=pass; d=google.com; s=arc-20160816; b=gA3SPOClroQt8tiTrCZ61WvFcCiFJQr2MgKKbix7Fr+wgEjNcc3QorCy+mXkCTtgcW kGq6BzOp9wQZtGaH3H7nQrdCWr3IFMVYMh9RVKij4SbiORE08eOoaM7670bPnY92NzCt vBKhr3A2qeDWzhjLJVQ0VOYJmwOCGwqmkl8e+aT14cJtHRT/orQ1fQcIYgihvCj3vDvY RPO8eGipHeEb2VxRKsJNFUWYJWjchwfcQjyJKoGvTA+TNE9P2vD1M0upISzTL/YuQzdO m3JX9FI+lC9MvmSVNaj1fYvTlhidD2N/aThnzmrtV3Wni5wN5Q81M8uK5JtHbRZ2PWUR Dvww== 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=xDAi/LehtiGuKcebgCW9P5JNBdnm/nWvTWG7gETgqwU=; fh=t9009Km+VW/qr1WjZVgpE7dn+IjcXotBtyTyABmUAZ0=; b=0lmRozAabXxi/ZAcL6iCgRgAERvL47Pv0cby95NvWpxSCnRsLq4l0Ij4bHW5DKVvjg NqkxH0+VbtYtM7VnJqOWXKTbSl32R1LmikCgV3O+p4rL2HSlJQSfDjf0W/98kzM2DRaS stO0yxykuAzckgeMM7pCS2fH7yyeyYLAL3eyJ54sk8aykJn8KRkg68LID/OIopByVrhE jwKZvkRiSVbJ00Oe6jPpimL3IvFJnBR0Ogkxe+Bwrzcz5/uJ3bLye6cYbXw+XchKKcD/ wDThHjhqLb+3Vm5sNyyz09SNvoUF8My3oHziIoMQImYxyflX/9d7xZGLWKMAGpqqWitH qi6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d97d9fIL; 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-210650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210650-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 d2e1a72fcca58-70597487ff3si4296072b3a.170.2024.06.11.15.08.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 15:08:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210650-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=d97d9fIL; 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-210650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210650-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 CD1AC2815A8 for ; Tue, 11 Jun 2024 22:08:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25A4F1552F8; Tue, 11 Jun 2024 22:08:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="d97d9fIL" Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 E670720314; Tue, 11 Jun 2024 22:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718143725; cv=none; b=RY1Bob4Zpe2962tBH/AMumpQvDN0LhXaktIvwdX9RVBaeq8SUkhSZGMowAkhsxv859+E1zFeBaZekVkS3t6ydu3jWWPa/rjpCljPpiGmEWb1QqUNV6yWycGQy7oUb75XCjCL/FiJGh8lLx5rLDkoDBtrbgFBbR6Svtij0DzyxmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718143725; c=relaxed/simple; bh=xDAi/LehtiGuKcebgCW9P5JNBdnm/nWvTWG7gETgqwU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JboyArTcYeYbD7RyWpxieveFi9ORlVOfUX4VB9lzRovbk6vEPibb87eOf2Ugb5pj4vMPvqYiQxsCvpwO13XtuGNfbBg+dt301UtEvGh9kmTIKDWwZCfU3vDY/3Cg6uKz3mk2OPnZYxDH54FRcYqDd6cUQmRi5P1bbOMSnaBnsEU= 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=d97d9fIL; arc=none smtp.client-ip=209.85.216.52 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-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2c2eb98a64fso2909834a91.2; Tue, 11 Jun 2024 15:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718143723; x=1718748523; 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=xDAi/LehtiGuKcebgCW9P5JNBdnm/nWvTWG7gETgqwU=; b=d97d9fILkRIyxIF0DgpOnwUEgsr/e8B3bvA0GJhmf9FJQm5CZNyvjQa62hZMOqTvNj QtiypAhnzdMELMRM8/0sMF2sgn5aAQxmDKXWheXyfl2MStDrKPGE2Vpi+hf3duBofoB4 GgGy73BE+U/NianoMS6wkJ5EUH11CSJF3kFT71DQDxSXVcE1VwSx2m8QZhCvdRvlnGMi 1SoCtJip8OpKvORvdkC1Fy1xV+k2883jMnpu4cI1ztEVfn4JL/DFMw80bP35/DM5KyG3 OpBamcmpzc5ak9gP/VG+yHSVE8gkOo/rfER8P4YGY8IuoMb+peuR4zn9EdX8BzzA4tJS 3wOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718143723; x=1718748523; 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=xDAi/LehtiGuKcebgCW9P5JNBdnm/nWvTWG7gETgqwU=; b=co5yYr4vzJ8uViJh4eL8tyVhhfG+5BrOfjw6lSwnBWuMFpcFCpGVOLOO6Uxxd3qIez 7zeZUARu0hCpCsu1cHrchO87IE10zn5ZK4my10+HeYKQXS6VvmrQraFwklEabGbLMhwa GTE4NOEuEzt+EzgBNo6yBmLl/NruG/Rlradaw4puDJ+LG5I6UmJPyyMf54LUdY3zcdRg QG5EqTqk1Sz4SERvNPnEuJiYfOQdpG6Tiuf1lsHR4vfr2fs81IT+PYhZzYtjgPDj9m4e ERKIFw2k06y2hQgAc4McX8NbnHQ3Wh+7JbNWvrEcEFBBhZHes4Eg8/+to+5PikVyx3ou 7yPQ== X-Forwarded-Encrypted: i=1; AJvYcCVVpP4YwB3lcgcl0XrLAoeeWEsNBd8BnV/cA1wTqfQfTh7S0buD9d3jJ/bmszKnAk722VrxXbXEyEYBwhAItYK2MCu8PEyFP23MOmspbQHHgcM6cIyoUvKfWgI/ekhlksHWfs7GMvM2YTrIgaw= X-Gm-Message-State: AOJu0YyNZjcn7U4AZzmS0n5AXHKJ80NDtHSUBv5CTzzdQy1Flis4e5Ia SG96VnJOCPdZXy4AEhzuNiu+vM3/SXObNiEGVtwKUGBh8tXeQh1mPEwEYJtGs6Gf3ep7ERiR7t/ C0akD6e4wke1bI0/tOAyvMQd5HGg= X-Received: by 2002:a17:90b:b06:b0:2bd:8378:af81 with SMTP id 98e67ed59e1d1-2c4a7602018mr213853a91.4.1718143723147; Tue, 11 Jun 2024 15:08:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240529093336.4075206-1-davidgow@google.com> In-Reply-To: <20240529093336.4075206-1-davidgow@google.com> From: Miguel Ojeda Date: Wed, 12 Jun 2024 00:08:30 +0200 Message-ID: Subject: Re: [PATCH] arch: um: rust: Use the generated target.json again To: David Gow Cc: Rae Moar , Thomas Gleixner , Ingo Molnar , Miguel Ojeda , "H . Peter Anvin" , Masahiro Yamada , Jamie Cunliffe , Catalin Marinas , Richard Weinberger , Anton Ivanov , Johannes Berg , kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-um@lists.infradead.org, rust-for-linux@vger.kernel.org, x86@kernel.org, Wedson Almeida Filho , Borislav Petkov , Dave Hansen , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 29, 2024 at 11:33=E2=80=AFAM David Gow wr= ote: > > The Rust compiler can take a target config from 'target.json', which is > generated by scripts/generate_rust_target.rs. It used to be that all > Linux architectures used this to generate a target.json, but now > architectures must opt-in to this, or they will default to the Rust > compiler's built-in target definition. > > This is mostly okay for (64-bit) x86 and UML, except that it can > generate SSE instructions, which we can't use in the kernel. So > re-instate the custom target.json, which disables SSE (and generally > enables the 'soft-float' feature). This fixes the following compile > error: > > error: :0:0: in function _RNvMNtCs5QSdWC790r4_4core3f32f7next_up= float (float): SSE register return with SSE disabled > > Fixes: f82811e22b48 ("rust: Refactor the build target to allow the use of= builtin targets") > Signed-off-by: David Gow I guess this should go through UML, but please let me know otherwise (I don't see it in next). Tested-by: Miguel Ojeda Reviewed-by: Miguel Ojeda Should this have a Cc: stable@vger.kernel.org too? Thanks! Cheers, Miguel