lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdWAs-Mm4YKgEJsr7XO4e2ezUD9PY7QE_F8gY6aQaWuyQQ@mail.gmail.com>
Date: Tue, 16 Jul 2024 12:15:48 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Greg KH <greg@...ah.com>
Cc: Mark Brown <broonie@...nel.org>, 
	Uwe Kleine-König <u.kleine-koenig@...gutronix.de>, 
	Niklas Söderlund <niklas.soderlund+renesas@...natech.se>, 
	Andrew Lunn <andrew@...n.ch>, "David S. Miller" <davem@...emloft.net>, 
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, 
	Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: Re: linux-next: build failure after merge of the driver-core tree

On Tue, Jun 25, 2024 at 7:11 AM Greg KH <greg@...ah.com> wrote:
> On Mon, Jun 24, 2024 at 07:23:36PM +0100, Mark Brown wrote:
> > After merging the driver-core tree, today's linux-next build
> > (x86_64 allmodconfig) failed like this:
> >
> > /tmp/next/build/drivers/net/ethernet/renesas/rtsn.c:1381:27: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [-Werror=incompatible-pointer-types]
> >  1381 |         .remove         = rtsn_remove,
> >       |                           ^~~~~~~~~~~
> > /tmp/next/build/drivers/net/ethernet/renesas/rtsn.c:1381:27: note: (near initialization for 'rtsn_driver.<anonymous>.remove')
> >
> > Caused by commit
> >
> >   0edb555a65d1e ("platform: Make platform_driver::remove() return void")
> >
> > interacting with
> >
> >   b0d3969d2b4db ("net: ethernet: rtsn: Add support for Renesas Ethernet-TSN")
> >
> > I have applied the below patch.
> >
> > From 8f276c3b5b1be09214cbd5643dd4fe4b2e6c692f Mon Sep 17 00:00:00 2001
> > From: Mark Brown <broonie@...nel.org>
> > Date: Mon, 24 Jun 2024 19:02:24 +0100
> > Subject: [PATCH] net: ethernet: rtsn: Fix up for remove() coversion to return
> >  void
> >
> > Fixes: 0edb555a65d1e ("platform: Make platform_driver::remove() return void")
> > Signed-off-by: Mark Brown <broonie@...nel.org>

Reviewed-by: Geert Uytterhoeven <geert+renesas@...der.be>

Any chance we can get this fix into net-next?
I've been cherry-picking it from next-20240624 for the last weeks...
Thanks!

> > ---
> >  drivers/net/ethernet/renesas/rtsn.c | 4 +---
> >  1 file changed, 1 insertion(+), 3 deletions(-)
> >
> > diff --git a/drivers/net/ethernet/renesas/rtsn.c b/drivers/net/ethernet/renesas/rtsn.c
> > index ad69d47463cbd..5a6cc99e6b35a 100644
> > --- a/drivers/net/ethernet/renesas/rtsn.c
> > +++ b/drivers/net/ethernet/renesas/rtsn.c
> > @@ -1358,7 +1358,7 @@ static int rtsn_probe(struct platform_device *pdev)
> >       return ret;
> >  }
> >
> > -static int rtsn_remove(struct platform_device *pdev)
> > +static void rtsn_remove(struct platform_device *pdev)
> >  {
> >       struct rtsn_private *priv = platform_get_drvdata(pdev);
> >
> > @@ -1372,8 +1372,6 @@ static int rtsn_remove(struct platform_device *pdev)
> >       pm_runtime_disable(&pdev->dev);
> >
> >       free_netdev(priv->ndev);
> > -
> > -     return 0;
> >  }
> >
> >  static struct platform_driver rtsn_driver = {
> > --
> > 2.39.2
> >
>
> Looks good, thanks!

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ