Hi Daniel,

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

url:    
https://github.com/0day-ci/linux/commits/Daniel-Borkmann/bpf-mlx4-fix-prog-refcount-in-mlx4_en_try_alloc_resources-error-path/20161109-182712
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/net/ethernet/mellanox/mlx4/en_netdev.c: In function 'mlx4_xdp_set':
>> drivers/net/ethernet/mellanox/mlx4/en_netdev.c:2752:4: error: implicit 
>> declaration of function 'bpf_prog_add_undo' 
>> [-Werror=implicit-function-declaration]
       bpf_prog_add_undo(prog, priv->rx_ring_num - 1);
       ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/bpf_prog_add_undo +2752 drivers/net/ethernet/mellanox/mlx4/en_netdev.c

  2746                  en_warn(priv, "Reducing the number of TX rings, to not 
exceed the max total rings number.\n");
  2747          }
  2748  
  2749          err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof);
  2750          if (err) {
  2751                  if (prog)
> 2752                          bpf_prog_add_undo(prog, priv->rx_ring_num - 1);
  2753                  goto unlock_out;
  2754          }
  2755  

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

Attachment: .config.gz
Description: application/gzip

Reply via email to