[usb:usb-testing 38/52] sound/soc/soc-usb.c:110: warning: Function parameter or struct member 'dev' not described in 'snd_soc_usb_update_offload_route'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head:   c26f6731b8da887f1fb92d4654da57a19a266466
commit: 52b88f62ef509d8d995e7e9e0a6aeab8fa8c430c [38/52] ASoC: usb: Fetch ASoC card and pcm device information
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250215/202502150243.pkbkSHL2-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250215/202502150243.pkbkSHL2-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/202502150243.pkbkSHL2-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> sound/soc/soc-usb.c:110: warning: Function parameter or struct member 'dev' not described in 'snd_soc_usb_update_offload_route'
>> sound/soc/soc-usb.c:110: warning: Function parameter or struct member 'card' not described in 'snd_soc_usb_update_offload_route'
>> sound/soc/soc-usb.c:110: warning: Function parameter or struct member 'pcm' not described in 'snd_soc_usb_update_offload_route'
>> sound/soc/soc-usb.c:110: warning: Function parameter or struct member 'direction' not described in 'snd_soc_usb_update_offload_route'
>> sound/soc/soc-usb.c:110: warning: Function parameter or struct member 'path' not described in 'snd_soc_usb_update_offload_route'
>> sound/soc/soc-usb.c:110: warning: Function parameter or struct member 'route' not described in 'snd_soc_usb_update_offload_route'
   sound/soc/soc-usb.c:205: warning: bad line: 


vim +110 sound/soc/soc-usb.c

    92	
    93	/**
    94	 * snd_soc_usb_update_offload_route - Find active USB offload path
    95	 * @dev - USB device to get offload status
    96	 * @card - USB card index
    97	 * @pcm - USB PCM device index
    98	 * @direction - playback or capture direction
    99	 * @route - pointer to route output array
   100	 *
   101	 * Fetch the current status for the USB SND card and PCM device indexes
   102	 * specified.  The "route" argument should be an array of integers being
   103	 * used for a kcontrol output.  The first element should have the selected
   104	 * card index, and the second element should have the selected pcm device
   105	 * index.
   106	 */
   107	int snd_soc_usb_update_offload_route(struct device *dev, int card, int pcm,
   108					     int direction, enum snd_soc_usb_kctl path,
   109					     long *route)
 > 110	{
   111		struct snd_soc_usb *ctx;
   112		int ret = -ENODEV;
   113	
   114		mutex_lock(&ctx_mutex);
   115		ctx = snd_soc_find_usb_ctx(dev);
   116		if (!ctx)
   117			goto exit;
   118	
   119		if (ctx->update_offload_route_info)
   120			ret = ctx->update_offload_route_info(ctx->component, card, pcm,
   121							     direction, path, route);
   122	exit:
   123		mutex_unlock(&ctx_mutex);
   124	
   125		return ret;
   126	}
   127	EXPORT_SYMBOL_GPL(snd_soc_usb_update_offload_route);
   128	

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux