CC: [email protected] BCC: [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: ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e commit: f84ba106a0185b4336f58580bb016ce993962b0f ALSA: memalloc: Store snd_dma_buffer.addr for continuous pages, too date: 8 months ago :::::: branch date: 16 hours ago :::::: commit date: 8 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: sound/core/memalloc.c:248 snd_dma_continuous_alloc() warn: should '((((mem_map + ((((p) >> 14)) - arch_pfn_offset))) - mem_map) + arch_pfn_offset) << 14' 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 https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
