Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp89590rdb; Sun, 14 Jan 2024 07:44:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmbMQFrOXOWY8VgjLYyuKHaNz+wShOeCftKwe3kvI79TnYDLntBU2e6Dn2rp3nRJ7qJ/eT X-Received: by 2002:a05:6214:1d26:b0:67f:6be2:5bd9 with SMTP id f6-20020a0562141d2600b0067f6be25bd9mr5751020qvd.69.1705247050194; Sun, 14 Jan 2024 07:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705247050; cv=none; d=google.com; s=arc-20160816; b=RkWdJF+nwUSF1vZjLKJUK8Tic1AoLDOGlnahFeTXTW6BD3QLqCM8Ns5OZ9O9O6Kapf q5mERtUrMrM/irEw0yICCjsPR5Tyj+WgyYZtDvlF4I5aqlX9UaaWA6NRkWwJzHLImTEO MWPHb6l41JYtIwf0lh3AqIDOs7nPOYfoRGLM4mOekHyC40PjA/x6mKZFPVITEm6QowHD ewKl/6M4BhdyOxifN2Y7KJm+GbwwVlGreVDNcbMlE1lnYspLNNsWGr/o1N08jXGXs/kU XQHURW6XVZ6vxWEZMNU9/4W8TUITJeExdsrl/A8UPHd10OFDrdkYsXTsAPeWiRITpa/r Pm5w== ARC-Message-Signature: i=1; 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=lvQzaMBx7LMmfkRwFZvXUXf1DTZv5ShXxLG3SnQgD/Y=; fh=4jg7i/g/yVyvgMj1FSUZBsXrbkFOeWq2A05JZIxAQaM=; b=oQ851ca0GWV2z4tblXBSo7t6csR6XoNI5H2IcBbzP6H1cw8NmjIjw8pgsUXvJHILtC RWIg0vRjWDgGSkb4CkpjBlBi7XmaffpkoRL1xZLkx+czSX8I7rHerXCzqM0jECXDkZCJ yrghirenf9hey9txAB5nj4ChJC7YTdD/1OyQzi4gDPNnRYejV3E3oJZz6AMeIhAGyTgR CZzdfAJ/u5mM4Ce7uFtO1FuD19libw1Dax4aRaqjd75DwhiQ9+LornHbV/OfYZ8CfSZy H3D41bgjz599k0TML3/PbKHn9pnDNYJXUETp2Moh0Z2F4Tt2Gv2Pdr8aTeVb5gjpIQNm M62g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=a0hdRpNE; spf=pass (google.com: domain of linux-kernel+bounces-25506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t7-20020a0cde07000000b0067f19454ea4si6461879qvk.159.2024.01.14.07.44.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 07:44:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=a0hdRpNE; spf=pass (google.com: domain of linux-kernel+bounces-25506-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C0B2C1C20D58 for ; Sun, 14 Jan 2024 15:44:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DA2D3C3C; Sun, 14 Jan 2024 15:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a0hdRpNE" Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (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 7879A23D6; Sun, 14 Jan 2024 15:43:58 +0000 (UTC) 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-ot1-f43.google.com with SMTP id 46e09a7af769-6e0a89b98e4so1161548a34.1; Sun, 14 Jan 2024 07:43:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705247037; x=1705851837; 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=Z6fsnynes0vO+z8SDnt6jjjUyKp+VvnkB7fpxe78CwY=; b=a0hdRpNEOgp6tfMDBhnZbvIHUpAapuJbdJcEkcxvJWaIJUmF9yAsMxO2HcPi+gB0D2 /GciiVt/hPb8IackUUHKoRFAVSym90SKt/Lf0Fx9TVv4ZULWgHGmVtWc4LO5YXq88tI0 bEdO/GCkpzAdmhcjq/lqUiXpg3lZ4FgTUUET6p+5b1XzNvU9IBUG70t6q9Gy1OJyMmS+ wL582Hl3fLwjv7H60PCxZJKLocZOP6FAR/AtoHdkUeUuNX2TPDNjJnhHnn8QzKCpf+ZB 3YyRC2eOB6y12VyF+0xTrc+laXSrJt+XW7Vvh3jMY1gt/DC0b/pGAofWnq9gPWLHhbFm 2qoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705247037; x=1705851837; 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=Z6fsnynes0vO+z8SDnt6jjjUyKp+VvnkB7fpxe78CwY=; b=TpsI0zUSaWMjw/JhO6E52QrEB6q3DXUoLHJ9G0+oEMfvfa34/gYVZliDvA+QRoo/Ob Q8eu5QMTDK66KdhgskGwbo28dEZ8PvLpvoLccdXLpdnsVS7TlIC/PPVCRuZzap8r0p64 E+zPaUafzHf9d2KiczaFHjSL9M8fdYLzvtPcg/nYENSS4VSfeq6pNLODpXeDXCTV2gcW ZQhm70SIjLOCpI7uDV1UCkO1d+6eWPbuS7VKO1WA+9wNNu34pzkXhS0+14LGwyBQqkwd 07iKP9DI5LfrjGcfBz4d6O+Ye4F2k2lS1Lck9qU+2/1sNwaZn2/UYX5IBhi1b4B2EdFG trHw== X-Gm-Message-State: AOJu0YylZxXOGhbL4ZbmSCesCiRKCuZY/eePSysBYAzuKnfOJ6w8C/J6 CBfSXWsjTL9YNsGf1hNdkVV8hOZEuDI5PnyxxXU= X-Received: by 2002:a05:6359:2ea2:b0:175:ca98:881b with SMTP id rp34-20020a0563592ea200b00175ca98881bmr2063172rwb.34.1705247037364; Sun, 14 Jan 2024 07:43:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240108032117.215171-1-wangrui@loongson.cn> In-Reply-To: From: Miguel Ojeda Date: Sun, 14 Jan 2024 16:43:46 +0100 Message-ID: Subject: Re: [PATCH v1 0/2] Rust enablement for LoongArch To: WANG Rui Cc: Boqun Feng , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Huacai Chen , Jonathan Corbet , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , WANG Xuerui , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-doc@vger.kernel.org, loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 4:16=E2=80=AFAM WANG Rui wrot= e: > > 6.8 Thanks, that is quite expedited... Please `rustfmt` the code to avoid failing the `rustfmtcheck` target. I see you already created the 6.8 tag but I have not seen it in linux-next yet and you did not send the PR, so it would be ideal if you could fix this before it goes to Linus. diff --git a/scripts/generate_rust_target.rs b/scripts/generate_rust_target= rs index 3edda6a10..0da52b548 100644 --- a/scripts/generate_rust_target.rs +++ b/scripts/generate_rust_target.rs @@ -163,10 +163,7 @@ fn main() { ts.push("target-pointer-width", "64"); } else if cfg.has("LOONGARCH") { ts.push("arch", "loongarch64"); - ts.push( - "data-layout", - "e-m:e-p:64:64-i64:64-i128:128-n64-S128", - ); + ts.push("data-layout", "e-m:e-p:64:64-i64:64-i128:128-n64-S128"); ts.push("features", "-f,-d"); ts.push("llvm-target", "loongarch64-linux-gnusf"); ts.push("llvm-abiname", "lp64s"); Thanks! Cheers, Miguel