All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [martineau:kbuild-mptcp 42/43] include/net/mptcp.h:83:28: warning: 'struct seq_file' declared inside parameter list
Date: Fri, 04 Oct 2019 01:48:35 +0800	[thread overview]
Message-ID: <201910040134.eO9vBfx5%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/martineau/linux.git kbuild-mptcp
head:   8b1cc9d592fecb677b735f3b31970cf245cce4da
commit: b1b9aefa15ee39750dd3d573bc23dc73efec0c3c [42/43] mptcp: add MIB counter infrastructure
config: x86_64-randconfig-s1-201939 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
        git checkout b1b9aefa15ee39750dd3d573bc23dc73efec0c3c
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

     u8 join_id;
     ^
   include/net/mptcp.h:38:2: error: unknown type name 'u8'
     u8 backup;
     ^
   include/net/mptcp.h:39:2: error: unknown type name 'u32'
     u32 nonce;
     ^
   include/net/mptcp.h:40:2: error: unknown type name 'u64'
     u64 thmac;
     ^
   include/net/mptcp.h:41:2: error: unknown type name 'u32'
     u32 token;
     ^
   include/net/mptcp.h:42:2: error: unknown type name 'u8'
     u8 hmac[20];
     ^
   include/net/mptcp.h:51:15: error: unknown type name 'bool'
    static inline bool sk_is_mptcp(const struct sock *sk)
                  ^
   include/net/mptcp.h:51:45: warning: 'struct sock' declared inside parameter list
    static inline bool sk_is_mptcp(const struct sock *sk)
                                                ^
   include/net/mptcp.h:51:45: warning: its scope is only this definition or declaration, which is probably not what you want
   include/net/mptcp.h: In function 'sk_is_mptcp':
   include/net/mptcp.h:53:9: error: implicit declaration of function 'tcp_sk' [-Werror=implicit-function-declaration]
     return tcp_sk(sk)->is_mptcp;
            ^
   include/net/mptcp.h:53:19: error: invalid type argument of '->' (have 'int')
     return tcp_sk(sk)->is_mptcp;
                      ^
   include/net/mptcp.h: At top level:
   include/net/mptcp.h:56:15: error: unknown type name 'bool'
    static inline bool rsk_is_mptcp(const struct request_sock *req)
                  ^
   include/net/mptcp.h:56:46: warning: 'struct request_sock' declared inside parameter list
    static inline bool rsk_is_mptcp(const struct request_sock *req)
                                                 ^
   include/net/mptcp.h: In function 'rsk_is_mptcp':
   include/net/mptcp.h:58:9: error: implicit declaration of function 'tcp_rsk' [-Werror=implicit-function-declaration]
     return tcp_rsk(req)->is_mptcp;
            ^
   include/net/mptcp.h:58:21: error: invalid type argument of '->' (have 'int')
     return tcp_rsk(req)->is_mptcp;
                        ^
   include/net/mptcp.h: At top level:
   include/net/mptcp.h:62:11: warning: 'struct tcp_options_received' declared inside parameter list
       struct tcp_options_received *opt_rx);
              ^
   include/net/mptcp.h:63:1: error: unknown type name 'bool'
    bool mptcp_syn_options(struct sock *sk, unsigned int *size,
    ^
   include/net/mptcp.h:64:17: warning: 'struct sock' declared inside parameter list
             struct mptcp_out_options *opts);
                    ^
   include/net/mptcp.h:65:31: warning: 'struct sock' declared inside parameter list
    void mptcp_rcv_synsent(struct sock *sk);
                                  ^
   include/net/mptcp.h:66:1: error: unknown type name 'bool'
    bool mptcp_synack_options(const struct request_sock *req, unsigned int *size,
    ^
   include/net/mptcp.h:67:13: warning: 'struct request_sock' declared inside parameter list
         struct mptcp_out_options *opts);
                ^
   include/net/mptcp.h:68:1: error: unknown type name 'bool'
    bool mptcp_established_options(struct sock *sk, struct sk_buff *skb,
    ^
   include/net/mptcp.h:70:18: warning: 'struct sk_buff' declared inside parameter list
              struct mptcp_out_options *opts);
                     ^
   include/net/mptcp.h:70:18: warning: 'struct sock' declared inside parameter list
   include/net/mptcp.h:72:15: warning: 'struct tcp_options_received' declared inside parameter list
           struct tcp_options_received *opt_rx);
                  ^
   include/net/mptcp.h:72:15: warning: 'struct sk_buff' declared inside parameter list
   include/net/mptcp.h:72:15: warning: 'struct sock' declared inside parameter list
   include/net/mptcp.h:74:15: error: unknown type name 'bool'
    static inline bool mptcp_skb_ext_exist(const struct sk_buff *skb)
                  ^
   include/net/mptcp.h:74:53: warning: 'struct sk_buff' declared inside parameter list
    static inline bool mptcp_skb_ext_exist(const struct sk_buff *skb)
                                                        ^
   include/net/mptcp.h: In function 'mptcp_skb_ext_exist':
   include/net/mptcp.h:76:9: error: implicit declaration of function 'skb_ext_exist' [-Werror=implicit-function-declaration]
     return skb_ext_exist(skb, SKB_EXT_MPTCP);
            ^
   include/net/mptcp.h:76:28: error: 'SKB_EXT_MPTCP' undeclared (first use in this function)
     return skb_ext_exist(skb, SKB_EXT_MPTCP);
                               ^
   include/net/mptcp.h:76:28: note: each undeclared identifier is reported only once for each function it appears in
   include/net/mptcp.h: At top level:
   include/net/mptcp.h:79:26: error: unknown type name '__be32'
    void mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts);
                             ^
   include/net/mptcp.h:81:1: error: unknown type name 'bool'
    bool mptcp_sk_is_subflow(const struct sock *sk);
    ^
   include/net/mptcp.h:81:39: warning: 'struct sock' declared inside parameter list
    bool mptcp_sk_is_subflow(const struct sock *sk);
                                          ^
>> include/net/mptcp.h:83:28: warning: 'struct seq_file' declared inside parameter list
    void mptcp_seq_show(struct seq_file *seq);
                               ^
   cc1: some warnings being treated as errors

vim +83 include/net/mptcp.h

    78	
  > 79	void mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts);
    80	
    81	bool mptcp_sk_is_subflow(const struct sock *sk);
    82	
  > 83	void mptcp_seq_show(struct seq_file *seq);
    84	#else
    85	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

                 reply	other threads:[~2019-10-03 17:48 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=201910040134.eO9vBfx5%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.