From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/dma-buf/dma-buf.c:671:5: warning: 'CONFIG_DMABUF_DEBUG' is not defined, evaluates to 0
Date: Sat, 16 Jan 2021 02:50:13 +0800 [thread overview]
Message-ID: <202101160203.PDZR4o2y-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-01-15 18:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202101160203.PDZR4o2y-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.