From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (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 28019333737 for ; Mon, 17 Nov 2025 14:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763391069; cv=none; b=eIhHuAIPLKsKn5sFGXJGSQSd5gAdjkksz1dO4EDp+ESbhIjlLYBH2e0aSKFbUWFF2GW2v/OM25YiRrhuYREWuiOCQaX7WoEHyVK62/9CLJwVL6H2IOYiGYVhHu3uTLBhg9ZPMa5AoTrPNwXORyjbUn4r70wbCAWzihUDHcxxOvw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763391069; c=relaxed/simple; bh=psdMh6EYWnMir8ERiVlQihJgGNCGkvJH4pda4wNzRBM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=PT5NAhiIEITiTPgH04Q0s5CVC7XCnEb0J5omKC/FrPnNi8MsNHlaalTaoQ+PQlFARfVCh56SuWNQtxx0ueta2U/gC9iIsa7woqMb76eHCQPCn624q0/ughTcFMNbhokfV91h2PO+OSBgJ3Zs8XXPCSivY23Gsxz2BrXzbzrnwKw= 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=BbRaZq+W; arc=none smtp.client-ip=209.85.128.73 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="BbRaZq+W" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-477964c22e0so17383855e9.0 for ; Mon, 17 Nov 2025 06:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1763391066; x=1763995866; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=K3QXPYRW4wMrKGZ7lxw0MmBjzCUwcjGt2+lPgkibxbc=; b=BbRaZq+WVGqyYcVvr0mhMOYzlZX71E4ugzgsWNpyIYJ1iPCmwvLVFVlWByR3NR2cbD 0Y5kg2s/fwJRve1wGTq/YfzRHOFEk0eA6kRpq+d4HSlih/kTZEwG/hrBeKMZZgeRmcU+ Bwn+SYANuX3MmFKZ0SRbwM8Io2L3mJ+fFqL0fXIA8cAJOdk1Ruvt4SGEj0SxwqInmNTm WJPcqiCJLOZv/8gvBOVwm4FJOWC/wwsBaqN5N19nlDLbe7mTxPG/0SFIAa/k9stHqagp 7O+CMil9ut3l/EG22h4WybsSDAea4uH9ZhrS8h91LtMgPXiezlypBi4JesQurdJvkuq6 1SGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763391066; x=1763995866; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K3QXPYRW4wMrKGZ7lxw0MmBjzCUwcjGt2+lPgkibxbc=; b=usWEn5YcjP9GIf+SjJyGb0yaInY/bCTsmVje/Hpnae9ZbMqzlre07yD8CGCX6UVaoZ pDT3RACrJOmNaWYxD0n8l/A4RZCnsaMo+8jaqePQmz9S4fu0/Rc6+Q/TgpmqU0o9JX96 FGe+6KaU0h95fZFOl134QTT34uc5xR5TmX/rC2MO83+wJlpo1FQL/Cr3WiIg2/HEz2qW dNhR/kKfeZvHrllSsZH0BfE+DsRy1Y3vZofPDCk/fQugh5ksyAxa/lLYIR2x+VVos9Ta qNHEt5cuto2gqsVuw8Q4gxDAlF79IYPqkxU5P+fksF/vAoyv+/XtbDoUtYe+2d1/gQKR xP4Q== X-Forwarded-Encrypted: i=1; AJvYcCVhMUE/05p3PK9KmxqR0K40OVTZR+MRH7MNH04qw34LRpb8Lg31+eR7ZGWx7Ddeko5oCR/EnDn59/rEGY4=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8RFfOBb/MRs85ro0egatYULX3MyKM3Z1TOfwMIqK3UR+V8f2r l0ZvBHCkFOmeRGDDajKia3KiTxAJyp3RgpY0s2/h4t4+NeUgFhjS6PaEUtgF4/wpIsMREjx83Uz l0KWe2+774yWViIIg9g== X-Google-Smtp-Source: AGHT+IEdLuB0X0tV1vpWmOFi6bpOFPiyXUcO3qmcqnsFh0MFWQw+xczzGEq/Zq8g03OHYcsaVV0GSH+sJFwNbyU= X-Received: from wmcn18-n2.prod.google.com ([2002:a05:600c:c0d2:20b0:475:dca0:4de3]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4e8d:b0:46e:59bd:f7e2 with SMTP id 5b1f17b1804b1-4778fdb38c9mr39270645e9.11.1763391066064; Mon, 17 Nov 2025 06:51:06 -0800 (PST) Date: Mon, 17 Nov 2025 14:51:04 +0000 In-Reply-To: <20251117190417.44f20ddd@canb.auug.org.au> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251117190417.44f20ddd@canb.auug.org.au> Message-ID: Subject: Re: linux-next: build failure after merge of the rust tree From: Alice Ryhl To: Stephen Rothwell Cc: Miguel Ojeda , Danilo Krummrich , Alistair Popple , John Hubbard , Alexandre Courbot , Tamir Duberstein , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="utf-8" On Mon, Nov 17, 2025 at 07:04:17PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the rust tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > error[E0277]: `Chipset` doesn't implement `core::fmt::Display` > --> drivers/gpu/nova-core/gpu.rs:233:13 > | > 233 | self.chipset, > | ^^^^^^^^^^^^ `Chipset` cannot be formatted with the default formatter > | > = help: the trait `core::fmt::Display` is not implemented for `Chipset` > = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead > = note: this error originates in the macro `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) > > error[E0277]: `Revision` doesn't implement `core::fmt::Display` > --> drivers/gpu/nova-core/gpu.rs:235:13 > | > 235 | self.revision > | ^^^^^^^^^^^^^ `Revision` cannot be formatted with the default formatter > | > = help: the trait `core::fmt::Display` is not implemented for `Revision` > = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead > = note: this error originates in the macro `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) > > error[E0277]: the trait bound `MsgFunction: kernel::fmt::Display` is not satisfied > --> drivers/gpu/nova-core/gsp/cmdq.rs:532:9 > | > 532 | / dev_dbg!( > 533 | | &self.dev, > 534 | | "GSP RPC: send: seq# {}, function={}, length=0x{:x}\n", > | | -- required by a bound introduced by this call > 535 | | self.seq, > 536 | | M::FUNCTION, > 537 | | dst.header.length(), > 538 | | ); > | |_________^ the trait `kernel::fmt::Display` is not implemented for `MsgFunction` > | > = help: the following other types implement trait `kernel::fmt::Display`: > &T > Arc > Arguments<'_> > BStr > Box > CStr > Chipset > Class > and 22 others > = note: required for `kernel::fmt::Adapter<&MsgFunction>` to implement `core::fmt::Display` > note: required by a bound in `core::fmt::rt::Argument::<'_>::new_display` > --> /usr/lib/rustlib/src/rust/library/core/src/fmt/rt.rs:113:27 > | > 113 | pub fn new_display(x: &T) -> Argument<'_> { > | ^^^^^^^ required by this bound in `Argument::<'_>::new_display` > = note: this error originates in the macro `::core::format_args` which comes from the expansion of the macro `dev_dbg` (in Nightly builds, run with -Z macro-backtrace for more info) > > error: aborting due to 3 previous errors > > For more information about this error, try `rustc --explain E0277`. > > Caused by commit > > c5cf01ba8dfe ("rust: support formatting of foreign types") > > (I think) interacting with commits > > 38b7cc448a5b ("gpu: nova-core: implement Display for Spec") > 75f6b1de8133 ("gpu: nova-core: gsp: Add GSP command queue bindings and handling") > > from the drm-rust tree. I applied a patch to drm-rust-next that makes this error go away. Alice