[tiwai-sound:topic/compress-accel 1/1] sound/core/compress_offload.c:409:35: warning: variable 'runtime' set but not used

[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 topic/compress-accel
head:   04177158cf98a79744937893b100020d77e6f9ac
commit: 04177158cf98a79744937893b100020d77e6f9ac [1/1] ALSA: compress_offload: introduce accel operation mode
config: arm-randconfig-001-20241026 (https://download.01.org/0day-ci/archive/20241026/202410260257.PNGCF9yq-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241026/202410260257.PNGCF9yq-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/202410260257.PNGCF9yq-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   sound/core/compress_offload.c: In function 'snd_compr_poll':
>> sound/core/compress_offload.c:409:35: warning: variable 'runtime' set but not used [-Wunused-but-set-variable]
     409 |         struct snd_compr_runtime *runtime;
         |                                   ^~~~~~~


vim +/runtime +409 sound/core/compress_offload.c

   404	
   405	static __poll_t snd_compr_poll(struct file *f, poll_table *wait)
   406	{
   407		struct snd_compr_file *data = f->private_data;
   408		struct snd_compr_stream *stream;
 > 409		struct snd_compr_runtime *runtime;
   410		size_t avail;
   411		__poll_t retval = 0;
   412	
   413		if (snd_BUG_ON(!data))
   414			return EPOLLERR;
   415	
   416		stream = &data->stream;
   417		runtime = stream->runtime;
   418	
   419		guard(mutex)(&stream->device->lock);
   420	
   421		switch (stream->runtime->state) {
   422		case SNDRV_PCM_STATE_OPEN:
   423		case SNDRV_PCM_STATE_XRUN:
   424			return snd_compr_get_poll(stream) | EPOLLERR;
   425		default:
   426			break;
   427		}
   428	
   429		poll_wait(f, &stream->runtime->sleep, wait);
   430	

-- 
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