Hi Hoang,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]
[also build test WARNING on linus/master next-20200605]
[cannot apply to v5.7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    
https://github.com/0day-ci/linux/commits/Hoang-Huu-Le/tipc-update-a-binding-service-via-broadcast/20200607-122712
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 
cb8e59cc87201af93dfbb6c3dccc8fcad72a09c2
config: x86_64-randconfig-r022-20200607 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 
e429cffd4f228f70c1d9df0e5d77c08590dd9766)
reproduce (this is a W=1 build):
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> net/tipc/name_distr.c:323:17: warning: no previous prototype for function 
>> 'tipc_named_dequeue' [-Wmissing-prototypes]
struct sk_buff *tipc_named_dequeue(struct sk_buff_head *namedq,
^
net/tipc/name_distr.c:323:1: note: declare 'static' if the function is not 
intended to be used outside of this translation unit
struct sk_buff *tipc_named_dequeue(struct sk_buff_head *namedq,
^
static
1 warning generated.

vim +/tipc_named_dequeue +323 net/tipc/name_distr.c

   322  
 > 323  struct sk_buff *tipc_named_dequeue(struct sk_buff_head *namedq,
   324                                     u16 *rcv_nxt, bool *open)
   325  {
   326          struct sk_buff *skb, *tmp;
   327          struct tipc_msg *hdr;
   328          u16 seqno;
   329  
   330          skb_queue_walk_safe(namedq, skb, tmp) {
   331                  skb_linearize(skb);
   332                  hdr = buf_msg(skb);
   333                  seqno = msg_named_seqno(hdr);
   334                  if (msg_is_last_bulk(hdr)) {
   335                          *rcv_nxt = seqno;
   336                          *open = true;
   337                  }
   338                  if (msg_is_bulk(hdr) || msg_is_legacy(hdr)) {
   339                          __skb_unlink(skb, namedq);
   340                          return skb;
   341                  }
   342  
   343                  if (*open && (*rcv_nxt == seqno)) {
   344                          (*rcv_nxt)++;
   345                          __skb_unlink(skb, namedq);
   346                          return skb;
   347                  }
   348          }
   349          return NULL;
   350  }
   351  

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

Attachment: .config.gz
Description: application/gzip

Reply via email to