From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] dma_heap: enable map_attrs when (un)map_attachment
Date: Tue, 10 Aug 2021 17:56:42 +0800 [thread overview]
Message-ID: <202108101713.RtpCiUUv-lkp@intel.com> (raw)
In-Reply-To: <20210810020254.103134-1-guangming.cao@mediatek.com>
[-- Attachment #1: Type: text/plain, Size: 2744 bytes --]
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc5 next-20210809]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/guangming-cao-mediatek-com/dma_heap-enable-map_attrs-when-un-map_attachment/20210810-100452
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9a73fa375d58fee5262dd16473c8e7522bdf44de
config: hexagon-buildonly-randconfig-r002-20210809 (attached as .config)
compiler: clang version 12.0.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
# https://github.com/0day-ci/linux/commit/b1a5626566cf9a73b35a742151246017ac87556b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review guangming-cao-mediatek-com/dma_heap-enable-map_attrs-when-un-map_attachment/20210810-100452
git checkout b1a5626566cf9a73b35a742151246017ac87556b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash
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 >>):
>> drivers/dma-buf/heaps/system_heap.c:133:26: error: no member named 'dma_map_attrs' in 'struct dma_buf_attachment'
int attrs = attachment->dma_map_attrs;
~~~~~~~~~~ ^
drivers/dma-buf/heaps/system_heap.c:149:26: error: no member named 'dma_map_attrs' in 'struct dma_buf_attachment'
int attrs = attachment->dma_map_attrs;
~~~~~~~~~~ ^
2 errors generated.
vim +133 drivers/dma-buf/heaps/system_heap.c
127
128 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment,
129 enum dma_data_direction direction)
130 {
131 struct dma_heap_attachment *a = attachment->priv;
132 struct sg_table *table = a->table;
> 133 int attrs = attachment->dma_map_attrs;
134 int ret;
135
136 ret = dma_map_sgtable(attachment->dev, table, direction, attrs);
137 if (ret)
138 return ERR_PTR(ret);
139
140 a->mapped = true;
141 return table;
142 }
143
---
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: 31141 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: guangming.cao@mediatek.com,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Benjamin Gaignard" <benjamin.gaignard@linaro.org>,
"Liam Mark" <lmark@codeaurora.org>,
"Laura Abbott" <labbott@redhat.com>,
"Brian Starkey" <Brian.Starkey@arm.com>,
"John Stultz" <john.stultz@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"open list:DMA-BUF HEAPS FRAMEWORK" <linux-media@vger.kernel.org>,
"moderated list:DMA-BUF HEAPS FRAMEWORK"
<linaro-mm-sig@lists.linaro.org>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org
Subject: Re: [PATCH] dma_heap: enable map_attrs when (un)map_attachment
Date: Tue, 10 Aug 2021 17:56:42 +0800 [thread overview]
Message-ID: <202108101713.RtpCiUUv-lkp@intel.com> (raw)
In-Reply-To: <20210810020254.103134-1-guangming.cao@mediatek.com>
[-- Attachment #1: Type: text/plain, Size: 2680 bytes --]
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc5 next-20210809]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/guangming-cao-mediatek-com/dma_heap-enable-map_attrs-when-un-map_attachment/20210810-100452
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9a73fa375d58fee5262dd16473c8e7522bdf44de
config: hexagon-buildonly-randconfig-r002-20210809 (attached as .config)
compiler: clang version 12.0.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
# https://github.com/0day-ci/linux/commit/b1a5626566cf9a73b35a742151246017ac87556b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review guangming-cao-mediatek-com/dma_heap-enable-map_attrs-when-un-map_attachment/20210810-100452
git checkout b1a5626566cf9a73b35a742151246017ac87556b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash
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 >>):
>> drivers/dma-buf/heaps/system_heap.c:133:26: error: no member named 'dma_map_attrs' in 'struct dma_buf_attachment'
int attrs = attachment->dma_map_attrs;
~~~~~~~~~~ ^
drivers/dma-buf/heaps/system_heap.c:149:26: error: no member named 'dma_map_attrs' in 'struct dma_buf_attachment'
int attrs = attachment->dma_map_attrs;
~~~~~~~~~~ ^
2 errors generated.
vim +133 drivers/dma-buf/heaps/system_heap.c
127
128 static struct sg_table *system_heap_map_dma_buf(struct dma_buf_attachment *attachment,
129 enum dma_data_direction direction)
130 {
131 struct dma_heap_attachment *a = attachment->priv;
132 struct sg_table *table = a->table;
> 133 int attrs = attachment->dma_map_attrs;
134 int ret;
135
136 ret = dma_map_sgtable(attachment->dev, table, direction, attrs);
137 if (ret)
138 return ERR_PTR(ret);
139
140 a->mapped = true;
141 return table;
142 }
143
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31141 bytes --]
next prev parent reply other threads:[~2021-08-10 9:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-08 10:14 [PATCH] dma-heap: Let dma heap use dma_map_attrs to map & unmap iova guangming.cao
2021-07-08 10:14 ` guangming.cao
2021-07-08 10:14 ` guangming.cao
2021-07-08 10:14 ` guangming.cao
2021-07-15 6:24 ` guangming.cao
2021-07-15 6:24 ` guangming.cao
2021-07-15 6:24 ` guangming.cao
2021-07-15 6:24 ` guangming.cao
2021-07-21 9:43 ` guangming.cao
2021-07-21 9:43 ` guangming.cao
2021-07-21 9:43 ` guangming.cao
2021-07-21 9:43 ` guangming.cao
2021-08-10 2:02 ` [PATCH] dma_heap: enable map_attrs when (un)map_attachment guangming.cao
2021-08-10 2:02 ` guangming.cao
2021-08-10 2:02 ` guangming.cao
2021-08-10 9:26 ` kernel test robot
2021-08-10 9:26 ` kernel test robot
2021-08-10 9:56 ` kernel test robot
2021-08-10 9:56 ` kernel test robot
2021-08-10 9:56 ` kernel test robot [this message]
2021-08-10 9:56 ` kernel test robot
2021-08-26 6:42 ` [PATCH] dma-buf: Add support for mapping buffers with DMA attributes guangming.cao
2021-08-26 6:42 ` guangming.cao
2021-08-26 6:42 ` guangming.cao
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=202108101713.RtpCiUUv-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.