tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   e6506eb241871d68647c53cb6d0a16299550ae97
commit: 6082d9c9c94a408d7409b5f2e4e42ac9e8b16d0d net/mlx5: Fix 
mlx5_get_vector_affinity function
date:   3 weeks ago
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.2.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 6082d9c9c94a408d7409b5f2e4e42ac9e8b16d0d
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

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

   In file included from drivers/net//ethernet/mellanox/mlx5/core/main.c:43:0:
   include/linux/mlx5/driver.h: In function 'mlx5_get_vector_affinity_hint':
>> include/linux/mlx5/driver.h:1299:13: error: 'struct irq_desc' has no member 
>> named 'affinity_hint'
     return desc->affinity_hint;
                ^~
--
   In file included from include/linux/mlx5/port.h:36:0,
                    from drivers/infiniband/hw/mlx5/main.c:52:
   include/linux/mlx5/driver.h: In function 'mlx5_get_vector_affinity_hint':
>> include/linux/mlx5/driver.h:1299:13: error: 'struct irq_desc' has no member 
>> named 'affinity_hint'
     return desc->affinity_hint;
                ^~
>> include/linux/mlx5/driver.h:1300:1: warning: control reaches end of non-void 
>> function [-Wreturn-type]
    }
    ^

vim +1299 include/linux/mlx5/driver.h

  1285  
  1286  static inline const struct cpumask *
  1287  mlx5_get_vector_affinity_hint(struct mlx5_core_dev *dev, int vector)
  1288  {
  1289          struct irq_desc *desc;
  1290          unsigned int irq;
  1291          int eqn;
  1292          int err;
  1293  
  1294          err = mlx5_vector2eqn(dev, vector, &eqn, &irq);
  1295          if (err)
  1296                  return NULL;
  1297  
  1298          desc = irq_to_desc(irq);
> 1299          return desc->affinity_hint;
> 1300  }
  1301  

---
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