mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Yafang Shao <laoar.shao@gmail.com>
Cc: kbuild-all@01.org, davem@davemloft.net, kuznet@ms2.inr.ac.ru,
	yoshfuji@linux-ipv6.org, rostedt@goodmis.org, mingo@redhat.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Yafang Shao <laoar.shao@gmail.com>
Subject: Re: [PATCH net-next 1/2] net/tcp: track all TCP/IP state transition in tcp_set_state
Date: Sun, 12 Nov 2017 21:46:14 +0800	[thread overview]
Message-ID: <201711122123.3r3wa7b1%fengguang.wu@intel.com> (raw)
In-Reply-To: <1510237564-6013-1-git-send-email-laoar.shao@gmail.com>

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

Hi Yafang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Yafang-Shao/net-tcp-track-all-TCP-IP-state-transition-in-tcp_set_state/20171112-203643
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

All error/warnings (new ones prefixed by >>):

   In file included from include/net/tcp.h:49:0,
                    from net/netfilter/ipvs/ip_vs_proto_tcp.c:27:
>> include/trace/events/tcp.h:12:31: error: expected identifier or '(' before '{' token
    #define tcp_state_name(state) { state, #state }
                                  ^
>> net/netfilter/ipvs/ip_vs_proto_tcp.c:424:21: note: in expansion of macro 'tcp_state_name'
    static const char * tcp_state_name(int state)
                        ^~~~~~~~~~~~~~
>> net/netfilter/ipvs/ip_vs_proto_tcp.c:425:1: error: expected identifier or '(' before '{' token
    {
    ^
   In file included from include/net/tcp.h:49:0,
                    from net/netfilter/ipvs/ip_vs_proto_tcp.c:27:
   net/netfilter/ipvs/ip_vs_proto_tcp.c: In function 'set_tcp_state':
>> include/trace/events/tcp.h:12:31: error: expected expression before '{' token
    #define tcp_state_name(state) { state, #state }
                                  ^
>> include/net/ip_vs.h:228:37: note: in expansion of macro 'tcp_state_name'
       printk(KERN_DEBUG pr_fmt(msg), ##__VA_ARGS__); \
                                        ^~~~~~~~~~~
>> net/netfilter/ipvs/ip_vs_proto_tcp.c:541:3: note: in expansion of macro 'IP_VS_DBG_BUF'
      IP_VS_DBG_BUF(8, "%s %s [%c%c%c%c] %s:%d->"
      ^~~~~~~~~~~~~
   net/netfilter/ipvs/ip_vs_proto_tcp.c: At top level:
>> net/netfilter/ipvs/ip_vs_proto_tcp.c:737:17: error: 'tcp_state_name' undeclared here (not in a function)
     .state_name =  tcp_state_name,
                    ^~~~~~~~~~~~~~
--
   In file included from include/net/tcp.h:49:0,
                    from net/netfilter//ipvs/ip_vs_proto_tcp.c:27:
>> include/trace/events/tcp.h:12:31: error: expected identifier or '(' before '{' token
    #define tcp_state_name(state) { state, #state }
                                  ^
   net/netfilter//ipvs/ip_vs_proto_tcp.c:424:21: note: in expansion of macro 'tcp_state_name'
    static const char * tcp_state_name(int state)
                        ^~~~~~~~~~~~~~
   net/netfilter//ipvs/ip_vs_proto_tcp.c:425:1: error: expected identifier or '(' before '{' token
    {
    ^
   In file included from include/net/tcp.h:49:0,
                    from net/netfilter//ipvs/ip_vs_proto_tcp.c:27:
   net/netfilter//ipvs/ip_vs_proto_tcp.c: In function 'set_tcp_state':
>> include/trace/events/tcp.h:12:31: error: expected expression before '{' token
    #define tcp_state_name(state) { state, #state }
                                  ^
>> include/net/ip_vs.h:228:37: note: in expansion of macro 'tcp_state_name'
       printk(KERN_DEBUG pr_fmt(msg), ##__VA_ARGS__); \
                                        ^~~~~~~~~~~
   net/netfilter//ipvs/ip_vs_proto_tcp.c:541:3: note: in expansion of macro 'IP_VS_DBG_BUF'
      IP_VS_DBG_BUF(8, "%s %s [%c%c%c%c] %s:%d->"
      ^~~~~~~~~~~~~
   net/netfilter//ipvs/ip_vs_proto_tcp.c: At top level:
   net/netfilter//ipvs/ip_vs_proto_tcp.c:737:17: error: 'tcp_state_name' undeclared here (not in a function)
     .state_name =  tcp_state_name,
                    ^~~~~~~~~~~~~~

vim +12 include/trace/events/tcp.h

e086101b Cong Wang 2017-10-13  11  
e8fce239 Song Liu  2017-10-23 @12  #define tcp_state_name(state)	{ state, #state }
e8fce239 Song Liu  2017-10-23  13  #define show_tcp_state_name(val)			\
e8fce239 Song Liu  2017-10-23  14  	__print_symbolic(val,				\
e8fce239 Song Liu  2017-10-23  15  		tcp_state_name(TCP_ESTABLISHED),	\
e8fce239 Song Liu  2017-10-23  16  		tcp_state_name(TCP_SYN_SENT),		\
e8fce239 Song Liu  2017-10-23  17  		tcp_state_name(TCP_SYN_RECV),		\
e8fce239 Song Liu  2017-10-23  18  		tcp_state_name(TCP_FIN_WAIT1),		\
e8fce239 Song Liu  2017-10-23  19  		tcp_state_name(TCP_FIN_WAIT2),		\
e8fce239 Song Liu  2017-10-23  20  		tcp_state_name(TCP_TIME_WAIT),		\
e8fce239 Song Liu  2017-10-23  21  		tcp_state_name(TCP_CLOSE),		\
e8fce239 Song Liu  2017-10-23  22  		tcp_state_name(TCP_CLOSE_WAIT),		\
e8fce239 Song Liu  2017-10-23  23  		tcp_state_name(TCP_LAST_ACK),		\
e8fce239 Song Liu  2017-10-23  24  		tcp_state_name(TCP_LISTEN),		\
e8fce239 Song Liu  2017-10-23  25  		tcp_state_name(TCP_CLOSING),		\
e8fce239 Song Liu  2017-10-23  26  		tcp_state_name(TCP_NEW_SYN_RECV))
e8fce239 Song Liu  2017-10-23  27  

:::::: The code at line 12 was first introduced by commit
:::::: e8fce23946b7e7eadf25ad78d8207c22903dfe27 tcp: add tracepoint trace_tcp_set_state()

:::::: TO: Song Liu <songliubraving@fb.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

  parent reply	other threads:[~2017-11-12 13:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-09 14:26 Yafang Shao
2017-11-09 14:26 ` [PATCH net-next 2/2] tcp: handle TCP_TIME_WAIT/TCP_NEW_SYN_RECV in tcp_set_state tracepoint Yafang Shao
2017-11-09 14:52   ` Eric Dumazet
2017-11-09 14:58     ` Eric Dumazet
2017-11-09 15:11       ` Yafang Shao
2017-11-09 15:18         ` Eric Dumazet
2017-11-12 14:15   ` kbuild test robot
2017-11-12 15:40   ` kbuild test robot
2017-11-12 13:46 ` kbuild test robot [this message]
2017-11-12 15:10 ` [PATCH net-next 1/2] net/tcp: track all TCP/IP state transition in tcp_set_state kbuild test robot
2017-11-12 17:15 ` kbuild test robot

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=201711122123.3r3wa7b1%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=davem@davemloft.net \
    --cc=kbuild-all@01.org \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=laoar.shao@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=yoshfuji@linux-ipv6.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®