All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.10/bbr2 14/27] net/ipv4/bpf_tcp_ca.c:19:38: error: 'struct tcp_congestion_ops' has no member named 'min_tso_segs'; did you mean
@ 2021-01-15  2:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-15  2:38 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/zen-kernel/zen-kernel 5.10/bbr2
head:   b9dd14514a5879eee40822e28074dcc6a12e12b8
commit: ba575c2fd7855b0586a87bbc6a67e1fa7fd397a1 [14/27] net-tcp: re-generalize TSO sizing in TCP CC module API
config: x86_64-randconfig-s022-20210115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-208-g46a52ca4-dirty
        # https://github.com/zen-kernel/zen-kernel/commit/ba575c2fd7855b0586a87bbc6a67e1fa7fd397a1
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.10/bbr2
        git checkout ba575c2fd7855b0586a87bbc6a67e1fa7fd397a1
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

Note: the zen-kernel-zen-kernel/5.10/bbr2 HEAD b9dd14514a5879eee40822e28074dcc6a12e12b8 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from <command-line>:
>> net/ipv4/bpf_tcp_ca.c:19:38: error: 'struct tcp_congestion_ops' has no member named 'min_tso_segs'; did you mean 'tso_segs'?
      19 |  offsetof(struct tcp_congestion_ops, min_tso_segs),
         |                                      ^~~~~~~~~~~~
   include/linux/compiler_types.h:135:57: note: in definition of macro '__compiler_offsetof'
     135 | #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
         |                                                         ^
   net/ipv4/bpf_tcp_ca.c:19:2: note: in expansion of macro 'offsetof'
      19 |  offsetof(struct tcp_congestion_ops, min_tso_segs),
         |  ^~~~~~~~


vim +19 net/ipv4/bpf_tcp_ca.c

0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  11  
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  12  static u32 optional_ops[] = {
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  13  	offsetof(struct tcp_congestion_ops, init),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  14  	offsetof(struct tcp_congestion_ops, release),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  15  	offsetof(struct tcp_congestion_ops, set_state),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  16  	offsetof(struct tcp_congestion_ops, cwnd_event),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  17  	offsetof(struct tcp_congestion_ops, in_ack_event),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  18  	offsetof(struct tcp_congestion_ops, pkts_acked),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08 @19  	offsetof(struct tcp_congestion_ops, min_tso_segs),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  20  	offsetof(struct tcp_congestion_ops, sndbuf_expand),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  21  	offsetof(struct tcp_congestion_ops, cong_control),
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  22  };
0baf26b0fcd74bbf Martin KaFai Lau 2020-01-08  23  

:::::: The code at line 19 was first introduced by commit
:::::: 0baf26b0fcd74bbfcef53c5d5e8bad2b99c8d0d2 bpf: tcp: Support tcp_congestion_ops in bpf

:::::: TO: Martin KaFai Lau <kafai@fb.com>
:::::: CC: Alexei Starovoitov <ast@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 46675 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-15  2:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15  2:38 [zen-kernel-zen-kernel:5.10/bbr2 14/27] net/ipv4/bpf_tcp_ca.c:19:38: error: 'struct tcp_congestion_ops' has no member named 'min_tso_segs'; did you mean kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.