tree:
https://github.com/0day-ci/linux/commits/UPDATE-20210115-235216/Daniel-Ve...
head: 5457ba7e82f3b6571b48979c717f5640f3c81942
commit: 5457ba7e82f3b6571b48979c717f5640f3c81942 dma-buf: Add debug option
date: 3 hours ago
config: x86_64-randconfig-a015-20210115 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
5b42fd8dd4e7e29125a09a41a33af7c9cb57d144)
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://github.com/0day-ci/linux/commit/5457ba7e82f3b6571b48979c717f5640f...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
UPDATE-20210115-235216/Daniel-Vetter/drm-buf-Add-debug-option/20210115-210650
git checkout 5457ba7e82f3b6571b48979c717f5640f3c81942
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/dma-buf/dma-buf.c:671:5: warning:
'CONFIG_DMABUF_DEBUG' is not defined, evaluates to 0 [-Wundef]
#if
CONFIG_DMABUF_DEBUG
^
1 warning generated.
vim +/CONFIG_DMABUF_DEBUG +671 drivers/dma-buf/dma-buf.c
668
669 static void mangle_sg_table(struct sg_table *sg_table)
670 {
671 #if CONFIG_DMABUF_DEBUG
672 int i;
673 struct scatterlist *sg;
674
675 if (!sg_table)
676 return;
677
678 /* To catch abuse of the underlying struct page by importers mix
679 * up the bits, but take care to preserve the low SG_ bits to
680 * not corrupt the sgt. The mixing is undone in __unmap_dma_buf
681 * before passing the sgt back to the exporter. */
682 for_each_sgtable_sg(sg_table, sg, i)
683 sg->page_link ^= ~0xffUL;
684 #endif
685
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org