All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Fri, 15 Jan 2021 10:38:30 +0800	[thread overview]
Message-ID: <202101151026.uI21faBo-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-01-15  2:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202101151026.uI21faBo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.