CC: [email protected] BCC: [email protected] CC: [email protected] TO: Christoph Hellwig <[email protected]> CC: Robin Murphy <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e commit: aea7e2a86a94b2583e1e812c596140034398a169 dma-direct: factor the swiotlb code out of __dma_direct_alloc_pages date: 4 months ago :::::: branch date: 21 hours ago :::::: commit date: 4 months ago config: arc-randconfig-m031-20220411 (https://download.01.org/0day-ci/archive/20220412/[email protected]/config) compiler: arc-elf-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: kernel/dma/direct.c:109 dma_direct_alloc_swiotlb() warn: should '((page - mem_map) + arch_pfn_offset) << 14' be a 64 bit type? vim +109 kernel/dma/direct.c f4111e39a52aa5 Claire Chang 2021-06-19 104 aea7e2a86a94b2 Christoph Hellwig 2021-10-21 105 static struct page *dma_direct_alloc_swiotlb(struct device *dev, size_t size) aea7e2a86a94b2 Christoph Hellwig 2021-10-21 106 { aea7e2a86a94b2 Christoph Hellwig 2021-10-21 107 struct page *page = swiotlb_alloc(dev, size); aea7e2a86a94b2 Christoph Hellwig 2021-10-21 108 aea7e2a86a94b2 Christoph Hellwig 2021-10-21 @109 if (page && !dma_coherent_ok(dev, page_to_phys(page), size)) { aea7e2a86a94b2 Christoph Hellwig 2021-10-21 110 swiotlb_free(dev, page, size); aea7e2a86a94b2 Christoph Hellwig 2021-10-21 111 return NULL; aea7e2a86a94b2 Christoph Hellwig 2021-10-21 112 } aea7e2a86a94b2 Christoph Hellwig 2021-10-21 113 aea7e2a86a94b2 Christoph Hellwig 2021-10-21 114 return page; aea7e2a86a94b2 Christoph Hellwig 2021-10-21 115 } aea7e2a86a94b2 Christoph Hellwig 2021-10-21 116 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
