All of lore.kernel.org
 help / color / mirror / Atom feed
* [martineau:kbuild-mptcp 42/43] include/net/mptcp.h:83:28: warning: 'struct seq_file' declared inside parameter list will not be visible outside of this definition or declaration
@ 2019-10-03  5:00 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-03  5:00 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7967 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: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b1b9aefa15ee39750dd3d573bc23dc73efec0c3c
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   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 will not be visible outside of this definition or declaration
    static inline bool sk_is_mptcp(const struct sock *sk)
                                                ^~~~
   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 will not be visible outside of this definition or declaration
    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 will not be visible outside of this definition or declaration
       struct tcp_options_received *opt_rx);
              ^~~~~~~~~~~~~~~~~~~~
   include/net/mptcp.h:63:1: error: unknown type name 'bool'; did you mean '_Bool'?
    bool mptcp_syn_options(struct sock *sk, unsigned int *size,
    ^~~~
    _Bool
   include/net/mptcp.h:63:31: warning: 'struct sock' declared inside parameter list will not be visible outside of this definition or declaration
    bool mptcp_syn_options(struct sock *sk, unsigned int *size,
                                  ^~~~
   include/net/mptcp.h:65:31: warning: 'struct sock' declared inside parameter list will not be visible outside of this definition or declaration
    void mptcp_rcv_synsent(struct sock *sk);
                                  ^~~~
   include/net/mptcp.h:66:1: error: unknown type name 'bool'; did you mean '_Bool'?
    bool mptcp_synack_options(const struct request_sock *req, unsigned int *size,
    ^~~~
    _Bool
   include/net/mptcp.h:66:40: warning: 'struct request_sock' declared inside parameter list will not be visible outside of this definition or declaration
    bool mptcp_synack_options(const struct request_sock *req, unsigned int *size,
                                           ^~~~~~~~~~~~
   include/net/mptcp.h:68:1: error: unknown type name 'bool'; did you mean '_Bool'?
    bool mptcp_established_options(struct sock *sk, struct sk_buff *skb,
    ^~~~
    _Bool
   include/net/mptcp.h:68:56: warning: 'struct sk_buff' declared inside parameter list will not be visible outside of this definition or declaration
    bool mptcp_established_options(struct sock *sk, struct sk_buff *skb,
                                                           ^~~~~~~
   include/net/mptcp.h:68:39: warning: 'struct sock' declared inside parameter list will not be visible outside of this definition or declaration
    bool mptcp_established_options(struct sock *sk, struct sk_buff *skb,
                                          ^~~~
   include/net/mptcp.h:72:15: warning: 'struct tcp_options_received' declared inside parameter list will not be visible outside of this definition or declaration
           struct tcp_options_received *opt_rx);
                  ^~~~~~~~~~~~~~~~~~~~
   include/net/mptcp.h:71:53: warning: 'struct sk_buff' declared inside parameter list will not be visible outside of this definition or declaration
    void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb,
                                                        ^~~~~~~
   include/net/mptcp.h:71:36: warning: 'struct sock' declared inside parameter list will not be visible outside of this definition or declaration
    void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb,
                                       ^~~~
   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 will not be visible outside of this definition or declaration
    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'; did you mean 'mptcp_skb_ext_exist'? [-Werror=implicit-function-declaration]
     return skb_ext_exist(skb, SKB_EXT_MPTCP);
            ^~~~~~~~~~~~~
            mptcp_skb_ext_exist
   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'; did you mean '__weak'?
    void mptcp_write_options(__be32 *ptr, struct mptcp_out_options *opts);
                             ^~~~~~
                             __weak
   include/net/mptcp.h:81:1: error: unknown type name 'bool'; did you mean '_Bool'?
    bool mptcp_sk_is_subflow(const struct sock *sk);
    ^~~~
    _Bool
   include/net/mptcp.h:81:39: warning: 'struct sock' declared inside parameter list will not be visible outside of this definition or declaration
    bool mptcp_sk_is_subflow(const struct sock *sk);
                                          ^~~~
>> include/net/mptcp.h:83:28: warning: 'struct seq_file' declared inside parameter list will not be visible outside of this definition or declaration
    void mptcp_seq_show(struct seq_file *seq);
                               ^~~~~~~~
   cc1: some warnings being treated as errors

vim +83 include/net/mptcp.h

    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: 54930 bytes --]

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

only message in thread, other threads:[~2019-10-03  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-03  5:00 [martineau:kbuild-mptcp 42/43] include/net/mptcp.h:83:28: warning: 'struct seq_file' declared inside parameter list will not be visible outside of this definition or declaration kbuild 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.