All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/dma-buf/dma-buf.c:671:5: warning: 'CONFIG_DMABUF_DEBUG' is not defined, evaluates to 0
@ 2021-01-15 18:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-15 18:50 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2346 bytes --]

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210115-235216/Daniel-Vetter/drm-buf-Add-debug-option/20210115-210650
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/5457ba7e82f3b6571b48979c717f5640f3c81942
        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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37477 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-15 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-15 18:50 drivers/dma-buf/dma-buf.c:671:5: warning: 'CONFIG_DMABUF_DEBUG' is not defined, evaluates to 0 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.