Re: stable-rc/linux-5.10.y: new build regression: passing 'const struct net *' to parameter of type 'struc...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 03, 2025 at 04:34:53PM -0800, KernelCI bot wrote:
> Hello,
> 
> New build issue found on stable-rc/linux-5.10.y:
> 
>  passing 'const struct net *' to parameter of type 'struct net *'
> discards qualifiers
> [-Werror,-Wincompatible-pointer-types-discards-qualifiers] in
> net/ipv4/udp.o (net/ipv4/udp.c) [logspec:kbuild,kbuild.compiler.error]
> 
> - Dashboard: https://staging.dashboard.kernelci.org:9000/issue/maestro:841ec27ef8554e3fda7cfd5babc4831387ac9e8e
> - Grafana: https://grafana.kernelci.org/d/issue/issue?var-id=maestro:841ec27ef8554e3fda7cfd5babc4831387ac9e8e
> 
> 
> Log excerpt:
> net/ipv4/udp.c:447:29: error: passing 'const struct net *' to
> parameter of type 'struct net *' discards qualifiers
> [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
>   447 |                 score = compute_score(sk, net,
>       |                                           ^~~
> net/ipv4/udp.c:359:55: note: passing argument to parameter 'net' here
>   359 | static int compute_score(struct sock *sk, struct net *net,
>       |                                                       ^
> 1 error generated.
> 

Now fixed, thanks.

greg k-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux