From: kbuild test robot <lkp-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
Vivek Gautam
<vivek.gautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
airlied-cv59FeDIM0c@public.gmane.org,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
maarten.lankhorst-VuQAYsv1563Yd54FQh9/CA@public.gmane.org,
jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org,
robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
kbuild-all-JC7UmRfGjtg@public.gmane.org,
daniel-/w4YWyX8dFk@public.gmane.org,
sean-p7yTbzM4H96eqtR555YLDQ@public.gmane.org
Subject: Re: [PATCH 1/1] drm/prime: Use sg_dma_len() macro to get sg's length
Date: Mon, 7 Jan 2019 18:42:34 +0800 [thread overview]
Message-ID: <201901071849.E4VZI7L7%fengguang.wu@intel.com> (raw)
In-Reply-To: <20190107095433.11368-1-vivek.gautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2607 bytes --]
Hi Vivek,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.0-rc1 next-20190107]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Vivek-Gautam/drm-prime-Use-sg_dma_len-macro-to-get-sg-s-length/20190107-181350
config: x86_64-randconfig-x013-201901 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_prime.c: In function 'drm_prime_sg_to_page_addr_arrays':
>> drivers/gpu/drm/drm_prime.c:948:9: error: implicit declaration of function 'sg_dma_length'; did you mean 'sg_dma_len'? [-Werror=implicit-function-declaration]
len = sg_dma_length(sg);
^~~~~~~~~~~~~
sg_dma_len
cc1: some warnings being treated as errors
vim +948 drivers/gpu/drm/drm_prime.c
926
927 /**
928 * drm_prime_sg_to_page_addr_arrays - convert an sg table into a page array
929 * @sgt: scatter-gather table to convert
930 * @pages: optional array of page pointers to store the page array in
931 * @addrs: optional array to store the dma bus address of each page
932 * @max_entries: size of both the passed-in arrays
933 *
934 * Exports an sg table into an array of pages and addresses. This is currently
935 * required by the TTM driver in order to do correct fault handling.
936 */
937 int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
938 dma_addr_t *addrs, int max_entries)
939 {
940 unsigned count;
941 struct scatterlist *sg;
942 struct page *page;
943 u32 len, index;
944 dma_addr_t addr;
945
946 index = 0;
947 for_each_sg(sgt->sgl, sg, sgt->nents, count) {
> 948 len = sg_dma_length(sg);
949 page = sg_page(sg);
950 addr = sg_dma_address(sg);
951
952 while (len > 0) {
953 if (WARN_ON(index >= max_entries))
954 return -1;
955 if (pages)
956 pages[index] = page;
957 if (addrs)
958 addrs[index] = addr;
959
960 page++;
961 addr += PAGE_SIZE;
962 len -= PAGE_SIZE;
963 index++;
964 }
965 }
966 return 0;
967 }
968 EXPORT_SYMBOL(drm_prime_sg_to_page_addr_arrays);
969
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27069 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno
next prev parent reply other threads:[~2019-01-07 10:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-07 9:54 [PATCH 1/1] drm/prime: Use sg_dma_len() macro to get sg's length Vivek Gautam
[not found] ` <20190107095433.11368-1-vivek.gautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2019-01-07 10:42 ` kbuild test robot [this message]
[not found] ` <201901071849.E4VZI7L7%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2019-01-07 11:24 ` Vivek Gautam
[not found] ` <CAFp+6iGV6m_Bj=QBvt_wS2v-Bv=3vp15kUCuMZw3uyJGQD2ytg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-01-07 12:07 ` [PATCH v2 " Vivek Gautam
[not found] ` <20190107120708.18497-1-vivek.gautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2019-01-07 16:10 ` Daniel Vetter
2019-01-07 11:38 ` [PATCH " kbuild test robot
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=201901071849.E4VZI7L7%fengguang.wu@intel.com \
--to=lkp-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=airlied-cv59FeDIM0c@public.gmane.org \
--cc=daniel-/w4YWyX8dFk@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=kbuild-all-JC7UmRfGjtg@public.gmane.org \
--cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=maarten.lankhorst-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org \
--cc=robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=sean-p7yTbzM4H96eqtR555YLDQ@public.gmane.org \
--cc=vivek.gautam-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox