CC: [email protected]
CC: [email protected]
TO: Takashi Iwai <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   cb690f5238d71f543f4ce874aa59237cf53a877c
commit: f84ba106a0185b4336f58580bb016ce993962b0f ALSA: memalloc: Store 
snd_dma_buffer.addr for continuous pages, too
date:   3 months ago
:::::: branch date: 24 hours ago
:::::: commit date: 3 months ago
config: arc-randconfig-m031-20210928 (attached as .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:
sound/core/memalloc.c:248 snd_dma_continuous_alloc() warn: should '((((mem_map 
+ ((((p) >> 13)) - arch_pfn_offset))) - mem_map) + arch_pfn_offset) << 13' be a 
64 bit type?

vim +248 sound/core/memalloc.c

37af81c5998f4b Takashi Iwai 2021-06-09  238  
37af81c5998f4b Takashi Iwai 2021-06-09  239  /*
37af81c5998f4b Takashi Iwai 2021-06-09  240   * Continuous pages allocator
37af81c5998f4b Takashi Iwai 2021-06-09  241   */
723c1252e058dc Takashi Iwai 2021-08-02  242  static void 
*snd_dma_continuous_alloc(struct snd_dma_buffer *dmab, size_t size)
37af81c5998f4b Takashi Iwai 2021-06-09  243  {
37af81c5998f4b Takashi Iwai 2021-06-09  244     gfp_t gfp = 
snd_mem_get_gfp_flags(dmab, GFP_KERNEL);
f84ba106a0185b Takashi Iwai 2021-08-04  245     void *p = 
alloc_pages_exact(size, gfp);
37af81c5998f4b Takashi Iwai 2021-06-09  246  
f84ba106a0185b Takashi Iwai 2021-08-04  247     if (p)
f84ba106a0185b Takashi Iwai 2021-08-04 @248             dmab->addr = 
page_to_phys(virt_to_page(p));
f84ba106a0185b Takashi Iwai 2021-08-04  249     return p;
37af81c5998f4b Takashi Iwai 2021-06-09  250  }
37af81c5998f4b Takashi Iwai 2021-06-09  251  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to