Skip to contentSkip to conversation

sound/isa/gus/interwave.c:489:13: warning: 'snd_interwave_restore_memory' defined but not used

PATCH kernel test robot 1 participant 1 message Apr 10

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3fa7d958829eb9bc3b469ed07f11de3d2804ef71
commit: 6f800c3397b7f64da4c9eb636a1206f8d8636c95 [12399/13151] ALSA: interwave: add ISA and PnP suspend and resume callbacks
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260410/[email protected]/config)
compiler: alpha-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260410/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> sound/isa/gus/interwave.c:489:13: warning: 'snd_interwave_restore_memory' defined but not used [-Wunused-function]
     489 | static void snd_interwave_restore_memory(struct snd_gus_card *gus)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/isa/gus/interwave.c:483:13: warning: 'snd_interwave_restore_regs' defined but not used [-Wunused-function]

483 | static void snd_interwave_restore_regs(struct snd_gus_card *gus)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/snd_interwave_restore_memory +489 sound/isa/gus/interwave.c

482

 > 483	static void snd_interwave_restore_regs(struct snd_gus_card *gus)
   484	{
   485		scoped_guard(spinlock_irqsave, &gus->reg_lock)
   486			__snd_interwave_restore_regs(gus);
   487	}
   488	
 > 489	static void snd_interwave_restore_memory(struct snd_gus_card *gus)

490 {
491 unsigned short mem_cfg;
492 unsigned int lmct = 0;
493 int i, lmc_cfg;
494
495 if (!gus->gf1.memory)
496 return;
497
498 for (i = 0; i < 4; i++)
499 lmct |= (gus->gf1.mem_alloc.banks_16[i].size >> 18) << (i * 8);
500
501 lmc_cfg = snd_interwave_find_memory_config(lmct);
502 if (lmc_cfg < 0) {
503 if (!gus->gf1.enh_mode) {
504 lmc_cfg = 2;
505 } else {
506 dev_warn(gus->card->dev,
507 "cannot restore InterWave memory layout 0x%08x\n",
508 lmct);
509 return;
510 }
511 }
512
513 scoped_guard(spinlock_irqsave, &gus->reg_lock) {
514 mem_cfg = snd_gf1_look16(gus, SNDRV_GF1_GW_MEMORY_CONFIG);
515 mem_cfg = (mem_cfg & 0xfff0) | lmc_cfg;
516 mem_cfg = (mem_cfg & 0xff1f) | (4 << 5);
517 snd_gf1_write16(gus, SNDRV_GF1_GW_MEMORY_CONFIG, mem_cfg);
518 }
519 }
520

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