[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202001311124.RwR6Egbv%lkp@intel.com>
Date: Fri, 31 Jan 2020 11:49:46 +0800
From: kbuild test robot <lkp@...el.com>
To: Christoph Hellwig <hch@....de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Paul Walmsley <paul.walmsley@...ive.com>,
Anup Patel <anup@...infault.org>
Subject: drivers//mmc/core/mmc_test.c:492:20: note: in expansion of macro
'virt_to_page'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 35c222fd323629cf2e834eb8aff77058856ffdda
commit: 6bd33e1ece528f67646db33bf97406b747dafda0 riscv: add nommu support
date: 2 months ago
config: riscv-randconfig-a001-20200131 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 6bd33e1ece528f67646db33bf97406b747dafda0
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/mm.h: In function 'virt_to_head_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/thread_info.h:11:0,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/mm.h: In function 'lowmem_page_address':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
arch/riscv/include/asm/page.h:104:45: note: in definition of macro '__va'
#define __va(x) ((void *)((unsigned long) (x) + va_pa_offset))
^
arch/riscv/include/asm/page.h:107:27: note: in expansion of macro 'PFN_PHYS'
#define pfn_to_phys(pfn) (PFN_PHYS(pfn))
^~~~~~~~
arch/riscv/include/asm/page.h:110:32: note: in expansion of macro 'pfn_to_phys'
#define pfn_to_virt(pfn) (__va(pfn_to_phys(pfn)))
^~~~~~~~~~~
arch/riscv/include/asm/page.h:113:29: note: in expansion of macro 'pfn_to_virt'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:113:41: note: in expansion of macro 'page_to_pfn'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/mm.h:1321:9: note: in expansion of macro 'page_to_virt'
return page_to_virt(page);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/scatterlist.h:145:18: note: in expansion of macro 'virt_to_page'
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:12:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/scatterlist.h: In function 'sg_phys':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
include/linux/pfn.h:21:36: note: in definition of macro 'PFN_PHYS'
#define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
^
arch/riscv/include/asm/page.h:115:29: note: in expansion of macro 'pfn_to_phys'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:115:41: note: in expansion of macro 'page_to_pfn'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/scatterlist.h:224:9: note: in expansion of macro 'page_to_phys'
return page_to_phys(sg_page(sg)) + sg->offset;
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/scatterlist.h: In function 'sg_page_iter_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
include/linux/mm.h:213:26: note: in expansion of macro 'pfn_to_page'
#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
^~~~~~~~~~~
include/linux/scatterlist.h:384:9: note: in expansion of macro 'nth_page'
return nth_page(sg_page(piter->sg), piter->sg_pgoffset);
^~~~~~~~
include/linux/dma-mapping.h: In function 'dma_map_single_attrs':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/dma-mapping.h:587:33: note: in expansion of macro 'virt_to_page'
return dma_map_page_attrs(dev, virt_to_page(ptr), offset_in_page(ptr),
^~~~~~~~~~~~
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/mm.h: In function 'virt_to_head_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/thread_info.h:11:0,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/mm.h: In function 'lowmem_page_address':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
arch/riscv/include/asm/page.h:104:45: note: in definition of macro '__va'
#define __va(x) ((void *)((unsigned long) (x) + va_pa_offset))
^
arch/riscv/include/asm/page.h:107:27: note: in expansion of macro 'PFN_PHYS'
#define pfn_to_phys(pfn) (PFN_PHYS(pfn))
^~~~~~~~
arch/riscv/include/asm/page.h:110:32: note: in expansion of macro 'pfn_to_phys'
#define pfn_to_virt(pfn) (__va(pfn_to_phys(pfn)))
^~~~~~~~~~~
arch/riscv/include/asm/page.h:113:29: note: in expansion of macro 'pfn_to_virt'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:113:41: note: in expansion of macro 'page_to_pfn'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/mm.h:1321:9: note: in expansion of macro 'page_to_virt'
return page_to_virt(page);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/highmem.h: In function 'kmap_to_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/highmem.h:75:9: note: in expansion of macro 'virt_to_page'
return virt_to_page(addr);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/scatterlist.h:145:18: note: in expansion of macro 'virt_to_page'
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:12:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/scatterlist.h: In function 'sg_phys':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
include/linux/pfn.h:21:36: note: in definition of macro 'PFN_PHYS'
#define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
^
arch/riscv/include/asm/page.h:115:29: note: in expansion of macro 'pfn_to_phys'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:115:41: note: in expansion of macro 'page_to_pfn'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/scatterlist.h:224:9: note: in expansion of macro 'page_to_phys'
return page_to_phys(sg_page(sg)) + sg->offset;
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/scatterlist.h: In function 'sg_page_iter_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
include/linux/mm.h:213:26: note: in expansion of macro 'pfn_to_page'
#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
^~~~~~~~~~~
include/linux/scatterlist.h:384:9: note: in expansion of macro 'nth_page'
return nth_page(sg_page(piter->sg), piter->sg_pgoffset);
^~~~~~~~
..
vim +/virt_to_page +492 drivers//mmc/core/mmc_test.c
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 453
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 454 /*
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 455 * Map memory into a scatterlist so that no pages are contiguous. Allow the
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 456 * same memory to be mapped more than once.
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 457 */
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 458 static int mmc_test_map_sg_max_scatter(struct mmc_test_mem *mem,
fec4dcce237c71 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 459 unsigned long sz,
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 460 struct scatterlist *sglist,
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 461 unsigned int max_segs,
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 462 unsigned int max_seg_sz,
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 463 unsigned int *sg_len)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 464 {
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 465 struct scatterlist *sg = NULL;
fec4dcce237c71 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 466 unsigned int i = mem->cnt, cnt;
fec4dcce237c71 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 467 unsigned long len;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 468 void *base, *addr, *last_addr = NULL;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 469
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 470 sg_init_table(sglist, max_segs);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 471
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 472 *sg_len = 0;
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 473 while (sz) {
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 474 base = page_address(mem->arr[--i].page);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 475 cnt = 1 << mem->arr[i].order;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 476 while (sz && cnt) {
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 477 addr = base + PAGE_SIZE * --cnt;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 478 if (last_addr && last_addr + PAGE_SIZE == addr)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 479 continue;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 480 last_addr = addr;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 481 len = PAGE_SIZE;
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 482 if (len > max_seg_sz)
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 483 len = max_seg_sz;
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 484 if (len > sz)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 485 len = sz;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 486 if (sg)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 487 sg = sg_next(sg);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 488 else
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 489 sg = sglist;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 490 if (!sg)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 491 return -EINVAL;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 @492 sg_set_page(sg, virt_to_page(addr), len, 0);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 493 sz -= len;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 494 *sg_len += 1;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 495 }
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 496 if (i == 0)
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 497 i = mem->cnt;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 498 }
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 499
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 500 if (sg)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 501 sg_mark_end(sg);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 502
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 503 return 0;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 504 }
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 505
:::::: The code at line 492 was first introduced by commit
:::::: 64f7120d890b892ed2c82c87bed958902e809075 mmc_test: add performance tests
:::::: TO: Adrian Hunter <adrian.hunter@...ia.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (24410 bytes)
Powered by blists - more mailing lists