[tiwai-sound:for-next 73/83] sound/sparc/cs4231.c:2018:25: error: 'chpi' undeclared; did you mean 'chip'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   c46fc83e3f3c89f18962e43890de90b1c304747a
commit: d41abde894830bfb77252653f606473728e930eb [73/83] ALSA: sparc: Use standard print API
config: sparc64-defconfig (https://download.01.org/0day-ci/archive/20240809/202408090648.J2EAijjH-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240809/202408090648.J2EAijjH-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408090648.J2EAijjH-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/platform_device.h:13,
                    from sound/sparc/cs4231.c:21:
   sound/sparc/cs4231.c: In function 'snd_cs4231_ebus_create':
>> sound/sparc/cs4231.c:2018:25: error: 'chpi' undeclared (first use in this function); did you mean 'chip'?
    2018 |                 dev_dbg(chpi->card->dev,
         |                         ^~~~
   include/linux/dev_printk.h:139:44: note: in definition of macro 'dev_no_printk'
     139 |                         _dev_printk(level, dev, fmt, ##__VA_ARGS__);    \
         |                                            ^~~
   sound/sparc/cs4231.c:2018:17: note: in expansion of macro 'dev_dbg'
    2018 |                 dev_dbg(chpi->card->dev,
         |                 ^~~~~~~
   sound/sparc/cs4231.c:2018:25: note: each undeclared identifier is reported only once for each function it appears in
    2018 |                 dev_dbg(chpi->card->dev,
         |                         ^~~~
   include/linux/dev_printk.h:139:44: note: in definition of macro 'dev_no_printk'
     139 |                         _dev_printk(level, dev, fmt, ##__VA_ARGS__);    \
         |                                            ^~~
   sound/sparc/cs4231.c:2018:17: note: in expansion of macro 'dev_dbg'
    2018 |                 dev_dbg(chpi->card->dev,
         |                 ^~~~~~~


vim +2018 sound/sparc/cs4231.c

  1950	
  1951	static int snd_cs4231_ebus_create(struct snd_card *card,
  1952					  struct platform_device *op,
  1953					  int dev)
  1954	{
  1955		struct snd_cs4231 *chip = card->private_data;
  1956		int err;
  1957	
  1958		spin_lock_init(&chip->lock);
  1959		spin_lock_init(&chip->c_dma.ebus_info.lock);
  1960		spin_lock_init(&chip->p_dma.ebus_info.lock);
  1961		mutex_init(&chip->mce_mutex);
  1962		mutex_init(&chip->open_mutex);
  1963		chip->flags |= CS4231_FLAG_EBUS;
  1964		chip->op = op;
  1965		memcpy(&chip->image, &snd_cs4231_original_image,
  1966		       sizeof(snd_cs4231_original_image));
  1967		strcpy(chip->c_dma.ebus_info.name, "cs4231(capture)");
  1968		chip->c_dma.ebus_info.flags = EBUS_DMA_FLAG_USE_EBDMA_HANDLER;
  1969		chip->c_dma.ebus_info.callback = snd_cs4231_ebus_capture_callback;
  1970		chip->c_dma.ebus_info.client_cookie = chip;
  1971		chip->c_dma.ebus_info.irq = op->archdata.irqs[0];
  1972		strcpy(chip->p_dma.ebus_info.name, "cs4231(play)");
  1973		chip->p_dma.ebus_info.flags = EBUS_DMA_FLAG_USE_EBDMA_HANDLER;
  1974		chip->p_dma.ebus_info.callback = snd_cs4231_ebus_play_callback;
  1975		chip->p_dma.ebus_info.client_cookie = chip;
  1976		chip->p_dma.ebus_info.irq = op->archdata.irqs[1];
  1977	
  1978		chip->p_dma.prepare = _ebus_dma_prepare;
  1979		chip->p_dma.enable = _ebus_dma_enable;
  1980		chip->p_dma.request = _ebus_dma_request;
  1981		chip->p_dma.address = _ebus_dma_addr;
  1982	
  1983		chip->c_dma.prepare = _ebus_dma_prepare;
  1984		chip->c_dma.enable = _ebus_dma_enable;
  1985		chip->c_dma.request = _ebus_dma_request;
  1986		chip->c_dma.address = _ebus_dma_addr;
  1987	
  1988		chip->port = of_ioremap(&op->resource[0], 0, 0x10, "cs4231");
  1989		chip->p_dma.ebus_info.regs =
  1990			of_ioremap(&op->resource[1], 0, 0x10, "cs4231_pdma");
  1991		chip->c_dma.ebus_info.regs =
  1992			of_ioremap(&op->resource[2], 0, 0x10, "cs4231_cdma");
  1993		if (!chip->port || !chip->p_dma.ebus_info.regs ||
  1994		    !chip->c_dma.ebus_info.regs) {
  1995			snd_cs4231_ebus_free(chip);
  1996			dev_dbg(chip->card->dev,
  1997				"cs4231-%d: Unable to map chip registers.\n", dev);
  1998			return -EIO;
  1999		}
  2000	
  2001		if (ebus_dma_register(&chip->c_dma.ebus_info)) {
  2002			snd_cs4231_ebus_free(chip);
  2003			dev_dbg(chip->card->dev,
  2004				"cs4231-%d: Unable to register EBUS capture DMA\n",
  2005				dev);
  2006			return -EBUSY;
  2007		}
  2008		if (ebus_dma_irq_enable(&chip->c_dma.ebus_info, 1)) {
  2009			snd_cs4231_ebus_free(chip);
  2010			dev_dbg(chip->card->dev,
  2011				"cs4231-%d: Unable to enable EBUS capture IRQ\n",
  2012				dev);
  2013			return -EBUSY;
  2014		}
  2015	
  2016		if (ebus_dma_register(&chip->p_dma.ebus_info)) {
  2017			snd_cs4231_ebus_free(chip);
> 2018			dev_dbg(chpi->card->dev,
  2019				"cs4231-%d: Unable to register EBUS play DMA\n",
  2020				dev);
  2021			return -EBUSY;
  2022		}
  2023		if (ebus_dma_irq_enable(&chip->p_dma.ebus_info, 1)) {
  2024			snd_cs4231_ebus_free(chip);
  2025			dev_dbg(chip->card->dev,
  2026				"cs4231-%d: Unable to enable EBUS play IRQ\n", dev);
  2027			return -EBUSY;
  2028		}
  2029	
  2030		if (snd_cs4231_probe(chip) < 0) {
  2031			snd_cs4231_ebus_free(chip);
  2032			return -ENODEV;
  2033		}
  2034		snd_cs4231_init(chip);
  2035	
  2036		err = snd_device_new(card, SNDRV_DEV_LOWLEVEL,
  2037				     chip, &snd_cs4231_ebus_dev_ops);
  2038		if (err < 0) {
  2039			snd_cs4231_ebus_free(chip);
  2040			return err;
  2041		}
  2042	
  2043		return 0;
  2044	}
  2045	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux