[linux-next:master 3989/11541] drivers/gpu/drm/i915/i915_gem.c:1182:2: error: implicit declaration of function 'wbinvd_on_all_cpus'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   52a0bcb60e40f30211cb5cbbb0f582ec4e91d896
commit: 30d2bfd093839cf6eef93f9c2cbdc347c7bf8b20 [3989/11541] drm/i915/gem: Almagamate clflushes on freeze
config: x86_64-randconfig-a002-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=30d2bfd093839cf6eef93f9c2cbdc347c7bf8b20
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 30d2bfd093839cf6eef93f9c2cbdc347c7bf8b20
        # 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 <lkp@xxxxxxxxx>

Note: the linux-next/master HEAD 52a0bcb60e40f30211cb5cbbb0f582ec4e91d896 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_gem.c:1182:2: error: implicit declaration of function 'wbinvd_on_all_cpus' [-Werror,-Wimplicit-function-declaration]
           wbinvd_on_all_cpus();
           ^
   1 error generated.


vim +/wbinvd_on_all_cpus +1182 drivers/gpu/drm/i915/i915_gem.c

  1157	
  1158	int i915_gem_freeze_late(struct drm_i915_private *i915)
  1159	{
  1160		struct drm_i915_gem_object *obj;
  1161		intel_wakeref_t wakeref;
  1162	
  1163		/*
  1164		 * Called just before we write the hibernation image.
  1165		 *
  1166		 * We need to update the domain tracking to reflect that the CPU
  1167		 * will be accessing all the pages to create and restore from the
  1168		 * hibernation, and so upon restoration those pages will be in the
  1169		 * CPU domain.
  1170		 *
  1171		 * To make sure the hibernation image contains the latest state,
  1172		 * we update that state just before writing out the image.
  1173		 *
  1174		 * To try and reduce the hibernation image, we manually shrink
  1175		 * the objects as well, see i915_gem_freeze()
  1176		 */
  1177	
  1178		with_intel_runtime_pm(&i915->runtime_pm, wakeref)
  1179			i915_gem_shrink(i915, -1UL, NULL, ~0);
  1180		i915_gem_drain_freed_objects(i915);
  1181	
> 1182		wbinvd_on_all_cpus();
  1183		list_for_each_entry(obj, &i915->mm.shrink_list, mm.link)
  1184			__start_cpu_write(obj);
  1185	
  1186		return 0;
  1187	}
  1188	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux