lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201808120616.ZPPdXrUP%fengguang.wu@intel.com>
Date:   Sun, 12 Aug 2018 06:29:19 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Caleb Raitto <caraitto@...gle.com>
Cc:     kbuild-all@...org, netdev@...r.kernel.org,
        Willem de Bruijn <willemb@...gle.com>
Subject: [net-next:master 1999/2033] drivers/net/virtio_net.c:1916:10: error:
 implicit declaration of function 'cpumask_next_wrap'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   9a95d9c6429bb58905fdfc95da2e1b7cc3fb55b7
commit: 2ca653d607ce59f2729173a7ea56dbfa6330ec88 [1999/2033] virtio_net: Stripe queue affinities across cores.
config: x86_64-randconfig-s1-08120449 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout 2ca653d607ce59f2729173a7ea56dbfa6330ec88
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/net/virtio_net.c: In function 'virtnet_set_affinity':
>> drivers/net/virtio_net.c:1916:10: error: implicit declaration of function 'cpumask_next_wrap' [-Werror=implicit-function-declaration]
       cpu = cpumask_next_wrap(cpu, cpu_online_mask,
             ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/cpumask_next_wrap +1916 drivers/net/virtio_net.c

  1889	
  1890	static void virtnet_set_affinity(struct virtnet_info *vi)
  1891	{
  1892		cpumask_var_t mask;
  1893		int stragglers;
  1894		int group_size;
  1895		int i, j, cpu;
  1896		int num_cpu;
  1897		int stride;
  1898	
  1899		if (!zalloc_cpumask_var(&mask, GFP_KERNEL)) {
  1900			virtnet_clean_affinity(vi, -1);
  1901			return;
  1902		}
  1903	
  1904		num_cpu = num_online_cpus();
  1905		stride = max_t(int, num_cpu / vi->curr_queue_pairs, 1);
  1906		stragglers = num_cpu >= vi->curr_queue_pairs ?
  1907				num_cpu % vi->curr_queue_pairs :
  1908				0;
  1909		cpu = cpumask_next(-1, cpu_online_mask);
  1910	
  1911		for (i = 0; i < vi->curr_queue_pairs; i++) {
  1912			group_size = stride + (i < stragglers ? 1 : 0);
  1913	
  1914			for (j = 0; j < group_size; j++) {
  1915				cpumask_set_cpu(cpu, mask);
> 1916				cpu = cpumask_next_wrap(cpu, cpu_online_mask,
  1917							nr_cpu_ids, false);
  1918			}
  1919			virtqueue_set_affinity(vi->rq[i].vq, mask);
  1920			virtqueue_set_affinity(vi->sq[i].vq, mask);
  1921			__netif_set_xps_queue(vi->dev, cpumask_bits(mask), i, false);
  1922			cpumask_clear(mask);
  1923		}
  1924	
  1925		vi->affinity_hint_set = true;
  1926		free_cpumask_var(mask);
  1927	}
  1928	

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

Download attachment ".config.gz" of type "application/gzip" (26618 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ