All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* sound/soc/samsung/idma.c:250:22: error: implicit declaration of function 'pgprot_noncached'
@ 2020-06-12 14:25 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-12 14:25 UTC (permalink / raw
  To: Stephen Boyd; +Cc: kbuild-all, linux-kernel, Mark Brown, Arnd Bergmann

[-- Attachment #1: Type: text/plain, Size: 3389 bytes --]

Hi Stephen,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b791d1bdf9212d944d749a5c7ff6febdba241771
commit: bbd7ffdbef6888459f301c5889f3b14ada38b913 clk: Allow the common clk framework to be selectable
date:   5 weeks ago
config: m68k-randconfig-r025-20200612 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout bbd7ffdbef6888459f301c5889f3b14ada38b913
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old ones prefixed by <<):

sound/soc/samsung/idma.c: In function 'idma_mmap':
>> sound/soc/samsung/idma.c:250:22: error: implicit declaration of function 'pgprot_noncached' [-Werror=implicit-function-declaration]
250 |  vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|                      ^~~~~~~~~~~~~~~~
>> sound/soc/samsung/idma.c:250:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
cc1: some warnings being treated as errors

vim +/pgprot_noncached +250 sound/soc/samsung/idma.c

f09aecd50f39d3 Sangbeom Kim      2011-07-20  240  
ba40ab6275173e Kuninori Morimoto 2019-10-02  241  static int idma_mmap(struct snd_soc_component *component,
ba40ab6275173e Kuninori Morimoto 2019-10-02  242  		     struct snd_pcm_substream *substream,
f09aecd50f39d3 Sangbeom Kim      2011-07-20  243  	struct vm_area_struct *vma)
f09aecd50f39d3 Sangbeom Kim      2011-07-20  244  {
f09aecd50f39d3 Sangbeom Kim      2011-07-20  245  	struct snd_pcm_runtime *runtime = substream->runtime;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  246  	unsigned long size, offset;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  247  	int ret;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  248  
f09aecd50f39d3 Sangbeom Kim      2011-07-20  249  	/* From snd_pcm_lib_mmap_iomem */
f09aecd50f39d3 Sangbeom Kim      2011-07-20 @250  	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
f09aecd50f39d3 Sangbeom Kim      2011-07-20  251  	size = vma->vm_end - vma->vm_start;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  252  	offset = vma->vm_pgoff << PAGE_SHIFT;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  253  	ret = io_remap_pfn_range(vma, vma->vm_start,
f09aecd50f39d3 Sangbeom Kim      2011-07-20  254  			(runtime->dma_addr + offset) >> PAGE_SHIFT,
f09aecd50f39d3 Sangbeom Kim      2011-07-20  255  			size, vma->vm_page_prot);
f09aecd50f39d3 Sangbeom Kim      2011-07-20  256  
f09aecd50f39d3 Sangbeom Kim      2011-07-20  257  	return ret;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  258  }
f09aecd50f39d3 Sangbeom Kim      2011-07-20  259  

:::::: The code at line 250 was first introduced by commit
:::::: f09aecd50f39d35372e551491d9f36ff0f51ee4d ASoC: SAMSUNG: Add I2S0 internal dma driver

:::::: TO: Sangbeom Kim <sbkim73@samsung.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31235 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* sound/soc/samsung/idma.c:250:22: error: implicit declaration of function 'pgprot_noncached'
@ 2020-06-12 14:25 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-06-12 14:25 UTC (permalink / raw
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3452 bytes --]

Hi Stephen,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b791d1bdf9212d944d749a5c7ff6febdba241771
commit: bbd7ffdbef6888459f301c5889f3b14ada38b913 clk: Allow the common clk framework to be selectable
date:   5 weeks ago
config: m68k-randconfig-r025-20200612 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout bbd7ffdbef6888459f301c5889f3b14ada38b913
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old ones prefixed by <<):

sound/soc/samsung/idma.c: In function 'idma_mmap':
>> sound/soc/samsung/idma.c:250:22: error: implicit declaration of function 'pgprot_noncached' [-Werror=implicit-function-declaration]
250 |  vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|                      ^~~~~~~~~~~~~~~~
>> sound/soc/samsung/idma.c:250:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
cc1: some warnings being treated as errors

vim +/pgprot_noncached +250 sound/soc/samsung/idma.c

f09aecd50f39d3 Sangbeom Kim      2011-07-20  240  
ba40ab6275173e Kuninori Morimoto 2019-10-02  241  static int idma_mmap(struct snd_soc_component *component,
ba40ab6275173e Kuninori Morimoto 2019-10-02  242  		     struct snd_pcm_substream *substream,
f09aecd50f39d3 Sangbeom Kim      2011-07-20  243  	struct vm_area_struct *vma)
f09aecd50f39d3 Sangbeom Kim      2011-07-20  244  {
f09aecd50f39d3 Sangbeom Kim      2011-07-20  245  	struct snd_pcm_runtime *runtime = substream->runtime;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  246  	unsigned long size, offset;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  247  	int ret;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  248  
f09aecd50f39d3 Sangbeom Kim      2011-07-20  249  	/* From snd_pcm_lib_mmap_iomem */
f09aecd50f39d3 Sangbeom Kim      2011-07-20 @250  	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
f09aecd50f39d3 Sangbeom Kim      2011-07-20  251  	size = vma->vm_end - vma->vm_start;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  252  	offset = vma->vm_pgoff << PAGE_SHIFT;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  253  	ret = io_remap_pfn_range(vma, vma->vm_start,
f09aecd50f39d3 Sangbeom Kim      2011-07-20  254  			(runtime->dma_addr + offset) >> PAGE_SHIFT,
f09aecd50f39d3 Sangbeom Kim      2011-07-20  255  			size, vma->vm_page_prot);
f09aecd50f39d3 Sangbeom Kim      2011-07-20  256  
f09aecd50f39d3 Sangbeom Kim      2011-07-20  257  	return ret;
f09aecd50f39d3 Sangbeom Kim      2011-07-20  258  }
f09aecd50f39d3 Sangbeom Kim      2011-07-20  259  

:::::: The code at line 250 was first introduced by commit
:::::: f09aecd50f39d35372e551491d9f36ff0f51ee4d ASoC: SAMSUNG: Add I2S0 internal dma driver

:::::: TO: Sangbeom Kim <sbkim73@samsung.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31235 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-12 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-12 14:25 sound/soc/samsung/idma.c:250:22: error: implicit declaration of function 'pgprot_noncached' kernel test robot
2020-06-12 14:25 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.