linux-next: manual merge of the rust tree with the drm-rust tree

Mark Brown posted 1 patch 2 weeks, 1 day ago
There is a newer version of this series
linux-next: manual merge of the rust tree with the drm-rust tree
Posted by Mark Brown 2 weeks, 1 day ago
Hi all,

Today's linux-next merge of the rust tree got a conflict in:

  drivers/gpu/nova-core/gpu.rs

between commits:

  b345c917d7c1e ("gpu: nova-core: add Chipset::name() method")
  e7c96980ea4d9 ("gpu: nova-core: move GSP boot code to its own module")

from the drm-rust tree and commit:

  4b4d06a7630e1 ("gpu: nova-core: use `kernel::{fmt,prelude::fmt!}`")

from the rust tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc drivers/gpu/nova-core/gpu.rs
index 5da9ad7264834,600cc90b5fabe..0000000000000
--- a/drivers/gpu/nova-core/gpu.rs
+++ b/drivers/gpu/nova-core/gpu.rs
@@@ -1,14 -1,17 +1,15 @@@
  // SPDX-License-Identifier: GPL-2.0
  
- use kernel::{device, devres::Devres, error::code::*, pci, prelude::*, sync::Arc};
+ use kernel::{device, devres::Devres, error::code::*, fmt, pci, prelude::*, sync::Arc};
  
  use crate::driver::Bar0;
 -use crate::falcon::{gsp::Gsp, sec2::Sec2, Falcon};
 -use crate::fb::FbLayout;
 +use crate::falcon::{gsp::Gsp as GspFalcon, sec2::Sec2 as Sec2Falcon, Falcon};
  use crate::fb::SysmemFlush;
 -use crate::firmware::fwsec::{FwsecCommand, FwsecFirmware};
 -use crate::firmware::{Firmware, FIRMWARE_VERSION};
  use crate::gfw;
 +use crate::gsp::Gsp;
  use crate::regs;
- use core::fmt;
+ use crate::util;
+ use crate::vbios::Vbios;
  
  macro_rules! define_chipset {
      ({ $($variant:ident = $value:expr),* $(,)* }) =>
Re: linux-next: manual merge of the rust tree with the drm-rust tree
Posted by Miguel Ojeda 1 week ago
On Tue, Sep 16, 2025 at 3:01 PM Mark Brown <broonie@kernel.org> wrote:
>
> + use crate::util;
> + use crate::vbios::Vbios;

I think these two lines should not be added back; otherwise, we get a warning:

    error: unused import: `crate::util`
      --> drivers/gpu/nova-core/gpu.rs:11:5
       |
    11 | use crate::util;
       |     ^^^^^^^^^^^
       |
       = note: `-D unused-imports` implied by `-D warnings`
       = help: to override `-D warnings` add `#[allow(unused_imports)]`

    error: unused import: `crate::vbios::Vbios`
      --> drivers/gpu/nova-core/gpu.rs:12:5
       |
    12 | use crate::vbios::Vbios;
       |     ^^^^^^^^^^^^^^^^^^^

Thanks!

Cheers,
Miguel