* [thomash:topic/ttm_branch_v5 7/15] drivers/gpu/drm/drm_cache.c:386:54: error: 'has_movntdqa' undeclared
@ 2021-05-31 16:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-31 16:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5237 bytes --]
tree: git://people.freedesktop.org/~thomash/linux topic/ttm_branch_v5
head: 9f73f48e82d8cc2d9a3f649b8d86d290bc76f1be
commit: 4f04be58645eac4d7d401dffff634ed246a6b6b9 [7/15] drm: Add a prefetching memcpy_from_wc
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
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
git remote add thomash git://people.freedesktop.org/~thomash/linux
git fetch --no-tags thomash topic/ttm_branch_v5
git checkout 4f04be58645eac4d7d401dffff634ed246a6b6b9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5,
from include/linux/io.h:10,
from include/linux/dma-buf-map.h:9,
from drivers/gpu/drm/drm_cache.c:31:
drivers/gpu/drm/drm_cache.c: In function 'drm_memcpy_from_wc':
>> drivers/gpu/drm/drm_cache.c:386:54: error: 'has_movntdqa' undeclared (first use in this function)
386 | if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) {
| ^~~~~~~~~~~~
include/linux/compiler.h:77:40: note: in definition of macro 'likely'
77 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
include/linux/jump_label.h:495:34: note: in expansion of macro 'likely_notrace'
495 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~
include/linux/jump_label.h:495:49: note: in expansion of macro 'static_key_enabled'
495 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_cache.c:386:32: note: in expansion of macro 'static_branch_likely'
386 | if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) {
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_cache.c:386:54: note: each undeclared identifier is reported only once for each function it appears in
386 | if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) {
| ^~~~~~~~~~~~
include/linux/compiler.h:77:40: note: in definition of macro 'likely'
77 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
include/linux/jump_label.h:495:34: note: in expansion of macro 'likely_notrace'
495 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~
include/linux/jump_label.h:495:49: note: in expansion of macro 'static_key_enabled'
495 | #define static_branch_likely(x) likely_notrace(static_key_enabled(&(x)->key))
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_cache.c:386:32: note: in expansion of macro 'static_branch_likely'
386 | if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) {
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/drm_cache.c:387:3: error: implicit declaration of function '__drm_memcpy_from_wc'; did you mean 'drm_memcpy_from_wc'? [-Werror=implicit-function-declaration]
387 | __drm_memcpy_from_wc(dst->is_iomem ?
| ^~~~~~~~~~~~~~~~~~~~
| drm_memcpy_from_wc
cc1: some warnings being treated as errors
vim +/has_movntdqa +386 drivers/gpu/drm/drm_cache.c
371
372 /**
373 * drm_memcpy_from_wc - Perform the fastest available memcpy from a source
374 * that may be WC.
375 * @dst: The destination pointer
376 * @src: The source pointer
377 * @len: The size of the area o transfer in bytes
378 *
379 * Tries an arch optimized memcpy for prefetching reading out of a WC region,
380 * and if no such beast is available, falls back to a normal memcpy.
381 */
382 void drm_memcpy_from_wc(struct dma_buf_map *dst,
383 const struct dma_buf_map *src,
384 unsigned long len)
385 {
> 386 if (IS_ENABLED(CONFIG_X86) && static_branch_likely(&has_movntdqa)) {
> 387 __drm_memcpy_from_wc(dst->is_iomem ?
388 (void __force *)dst->vaddr_iomem :
389 dst->vaddr,
390 src->is_iomem ?
391 (void const __force *)src->vaddr_iomem :
392 src->vaddr,
393 len);
394 return;
395 }
396
397 memcpy_fallback(dst, src, len);
398 }
399 EXPORT_SYMBOL(drm_memcpy_from_wc);
400
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64448 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-31 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-31 16:06 [thomash:topic/ttm_branch_v5 7/15] drivers/gpu/drm/drm_cache.c:386:54: error: 'has_movntdqa' undeclared kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.