Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [sound:topic/hda-bus-ops-cleanup 2/3] sound/hda/hdac_bus.c:228:6: error: implicit declaration of function 'readl'; did you mean 'd_real'?
@ 2019-08-08 23:13 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-08-08 23:13 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, kbuild-all, Pierre-Louis Bossart

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

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/tiwai/sound.git topic/hda-bus-ops-cleanup
head:   d4ff1b3917a529bdc75592af6b1504ad6c4029f7
commit: 19abfefd4c7604993d1c31e098a3f48bdafe334d [2/3] ALSA: hda: Direct MMIO accesses
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.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 19abfefd4c7604993d1c31e098a3f48bdafe334d
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   sound/hda/hdac_bus.c: In function 'snd_hdac_aligned_read':
>> sound/hda/hdac_bus.c:228:6: error: implicit declaration of function 'readl'; did you mean 'd_real'? [-Werror=implicit-function-declaration]
     v = readl(aligned_addr);
         ^~~~~
         d_real
   sound/hda/hdac_bus.c: In function 'snd_hdac_aligned_write':
>> sound/hda/hdac_bus.c:244:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
     writel(v, aligned_addr);
     ^~~~~~
   cc1: some warnings being treated as errors

vim +228 sound/hda/hdac_bus.c

   218	
   219	#ifdef CONFIG_SND_HDA_ALIGNED_MMIO
   220	/* Helpers for aligned read/write of mmio space, for Tegra */
   221	unsigned int snd_hdac_aligned_read(void __iomem *addr, unsigned int mask)
   222	{
   223		void __iomem *aligned_addr =
   224			(void __iomem *)((unsigned long)(addr) & ~0x3);
   225		unsigned int shift = ((unsigned long)(addr) & 0x3) << 3;
   226		unsigned int v;
   227	
 > 228		v = readl(aligned_addr);
   229		return (v >> shift) & mask;
   230	}
   231	EXPORT_SYMBOL_GPL(snd_hdac_aligned_read);
   232	
   233	void snd_hdac_aligned_write(unsigned int val, void __iomem *addr,
   234				    unsigned int mask)
   235	{
   236		void __iomem *aligned_addr =
   237			(void __iomem *)((unsigned long)(addr) & ~0x3);
   238		unsigned int shift = ((unsigned long)(addr) & 0x3) << 3;
   239		unsigned int v;
   240	
   241		v = readl(aligned_addr);
   242		v &= ~(mask << shift);
   243		v |= val << shift;
 > 244		writel(v, aligned_addr);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-08 23:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-08 23:13 [sound:topic/hda-bus-ops-cleanup 2/3] sound/hda/hdac_bus.c:228:6: error: implicit declaration of function 'readl'; did you mean 'd_real'? kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox