Re: [Regression] depmod fails on kernel 6.17.1 rc1

Stephen Rothwell
2025-11-09T06:34:19Z

[-- Attachment #1: Type: text/plain, Size: 2141 bytes --]

Hi Greg,

On Sun, 9 Nov 2025 09:49:29 +0900 Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
>
> On Sun, Nov 09, 2025 at 10:52:03AM +1100, Stephen Rothwell wrote:
> >
> > On Fri, 7 Nov 2025 07:20:26 +0100 Jiri Slaby <jirislaby@kernel.org> wrote:
> > >
> > > On 06. 11. 25, 19:00, Ilpo Järvinen wrote:
> > > > This seems to resolve the build issue for me:
> > > >
> > > > --
> > > > From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>
> > > > Subject: [PATCH 1/1] serial: 8250: Fix 8250_rsa symbol loop
> > > >
> > > > make allmodconfig build fails due to dependency loop:
> > > >
> > > > depmod: ERROR: Cycle detected: 8250 -> 8250_base -> 8250
> > > > depmod: ERROR: Found 2 modules in dependency cycles!
> > > >
> > > > Break dependency loop by moving 8250_rsa.o into 8250_base and by
> > > > passing univ8250_port_base_ops to univ8250_rsa_support() that can make
> > > > a local copy of it.
> > > >
> > > > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > > > Reported-by: Alex Davis <alex47794@gmail.com>
> > > > Fixes: b20d6576cdb3 ("serial: 8250: export RSA functions")
> > > > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> > >
> > > LGTM, thanks for the fix.
> > >
> > > Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
> > >
> > > If the reporters could give it a shot and mark this by Tested-by, it would be great...
> >
> > I have not seen this for quite some time ... I assumed it had been
> > fixed.
>
> I too thought this was fixed a while ago, what changed to cause this to
> happen now? Anyone have a .config to reproduce this, 'allmodconfig' on
> x86 works for me.

Actually, I think the current report is for v6.17.1-rc1, so maybe
something got missed in a stable backport? My original report was for
next-20250728 (July 28). The only response I got was on October 1,
but I am pretty sure it was fixed well before then.

Also, you probably only get the error when you do a "make
modules_install" after the allmodconfig build (at least that is where I
got it).
--
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]