Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on debian 10 #4

Open
hybla0 opened this issue Jun 2, 2020 · 0 comments
Open

error on debian 10 #4

hybla0 opened this issue Jun 2, 2020 · 0 comments

Comments

@hybla0
Copy link

hybla0 commented Jun 2, 2020

hi @liberal-boy ,
i followed the "how to use" section and i got the following output :

make: Entering directory '/usr/src/linux-headers-4.19.0-9-686-pae'
CC [M] /home/debian/tcp_tsunami.o
In file included from /usr/src/linux-headers-4.19.0-9-common/include/linux/list.h:9,
from /usr/src/linux-headers-4.19.0-9-common/include/linux/module.h:9,
from /home/debian/tcp_tsunami.c:59:
/home/debian/tcp_tsunami.c: In function ‘bbr_set_tso_segs_goal’:
/home/debian/tcp_tsunami.c:279:27: error: implicit declaration of function ‘tcp_tso_autosize’; did you mean ‘tcp_gro_receive’? [-Werror=implicit-function-declaration]
bbr->tso_segs_goal = min(tcp_tso_autosize(sk, tp->mss_cache, min_segs),
^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:863:22: note: in definition of macro ‘__typecheck’
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:887:24: note: in expansion of macro ‘__safe_cmp’
__builtin_choose_expr(__safe_cmp(x, y),
^~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:896:19: note: in expansion of macro ‘__careful_cmp’
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:279:23: note: in expansion of macro ‘min’
bbr->tso_segs_goal = min(tcp_tso_autosize(sk, tp->mss_cache, min_segs),
^~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:863:29: warning: comparison of distinct pointer types lacks a cast
(!!(sizeof((typeof(x) *)1 == (typeof(y) )1)))
^~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:877:4: note: in expansion of macro ‘__typecheck’
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:887:24: note: in expansion of macro ‘__safe_cmp’
__builtin_choose_expr(__safe_cmp(x, y),
^~~~~~~~~~
/usr/src/linux-headers-4.19.0-9-common/include/linux/kernel.h:896:19: note: in expansion of macro ‘__careful_cmp’
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:279:23: note: in expansion of macro ‘min’
bbr->tso_segs_goal = min(tcp_tso_autosize(sk, tp->mss_cache, min_segs),
^~~
/home/debian/tcp_tsunami.c: At top level:
/home/debian/tcp_tsunami.c:938:3: error: ‘struct tcp_congestion_ops’ has no member named ‘tso_segs_goal’
.tso_segs_goal = bbr_tso_segs_goal,
^~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:938:19: error: initialization of ‘void (
)(struct sock , u32, u32)’ {aka ‘void ()(struct sock , unsigned int, unsigned int)’} from incompatible pointer type ‘u32 ()(struct sock )’ {aka ‘unsigned int ()(struct sock *)’} [-Werror=incompatible-pointer-types]
.tso_segs_goal = bbr_tso_segs_goal,
^~~~~~~~~~~~~~~~~
/home/debian/tcp_tsunami.c:938:19: note: (near initialization for ‘tcp_bbr_cong_ops.cong_avoid’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-4.19.0-9-common/scripts/Makefile.build:315: /home/debian/tcp_tsunami.o] Error 1
make[2]: *** [/usr/src/linux-headers-4.19.0-9-common/Makefile:1537: module/home/debian] Error 2
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:8: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant