2021-11-17 12:48:03

by Naresh Kamboju

[permalink] [raw]
Subject: include/net/gro.h:413:22: error: implicit declaration of function 'csum_ipv6_magic

Regression found on riscv and arc gcc-11 build.
Following build warnings / errors reported on linux next 20211117.

metadata:
git_describe: next-20211117
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_short_log: fd96a4057bd0 (\"Add linux-next specific files for 20211117\")
target_arch: riscv
toolchain: gcc-11

build error :
--------------
In file included from net/core/dev.c:105:
include/net/gro.h: In function 'ip6_gro_compute_pseudo':
include/net/gro.h:413:22: error: implicit declaration of function
'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'?
[-Werror=implicit-function-declaration]
return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
^~~~~~~~~~~~~~~
csum_tcpudp_magic
cc1: some warnings being treated as errors

Reported-by: Linux Kernel Functional Testing <[email protected]>

link:
https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/1790398957#L73

build link:
-----------
https://builds.tuxbuild.com/211schgBXkq5zjdda7io29wMONF/build.log

build config:
-------------
https://builds.tuxbuild.com/211schgBXkq5zjdda7io29wMONF/config

# To install tuxmake on your system globally
# sudo pip3 install -U tuxmake
tuxmake --runtime podman --target-arch riscv --toolchain gcc-11
--kconfig defconfig

--
Linaro LKFT
https://lkft.linaro.org


2021-11-17 13:54:51

by Denis Kirjanov

[permalink] [raw]
Subject: Re: include/net/gro.h:413:22: error: implicit declaration of function 'csum_ipv6_magic



11/17/21 3:47 PM, Naresh Kamboju пишет:
> Regression found on riscv and arc gcc-11 build.
> Following build warnings / errors reported on linux next 20211117.
>
> metadata:
> git_describe: next-20211117
> git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
> git_short_log: fd96a4057bd0 (\"Add linux-next specific files for 20211117\")
> target_arch: riscv
> toolchain: gcc-11
>
> build error :
> --------------
> In file included from net/core/dev.c:105:
> include/net/gro.h: In function 'ip6_gro_compute_pseudo':
> include/net/gro.h:413:22: error: implicit declaration of function
> 'csum_ipv6_magic'; did you mean 'csum_tcpudp_magic'?
> [-Werror=implicit-function-declaration]
> return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr,
> ^~~~~~~~~~~~~~~
> csum_tcpudp_magic
> cc1: some warnings being treated as errors

See
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

>
> Reported-by: Linux Kernel Functional Testing <[email protected]>
>
> link:
> https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/1790398957#L73
>
> build link:
> -----------
> https://builds.tuxbuild.com/211schgBXkq5zjdda7io29wMONF/build.log
>
> build config:
> -------------
> https://builds.tuxbuild.com/211schgBXkq5zjdda7io29wMONF/config
>
> # To install tuxmake on your system globally
> # sudo pip3 install -U tuxmake
> tuxmake --runtime podman --target-arch riscv --toolchain gcc-11
> --kconfig defconfig
>