[tiwai-sound:topic/midi20-gadget 56/56] drivers/usb/gadget/function/f_midi2.c:483:6: warning: no previous prototype for function 'reply_ump_stream_fb_info'

[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/midi20-gadget
head:   ed28b6939ebadd073e731ccf0f2c6ce4ab102ffd
commit: ed28b6939ebadd073e731ccf0f2c6ce4ab102ffd [56/56] usb: gadget: add support for USB MIDI 2.0 function driver (WIP)
config: i386-randconfig-r023-20230629 (https://download.01.org/0day-ci/archive/20230630/202306300419.dOOgnkIH-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230630/202306300419.dOOgnkIH-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/202306300419.dOOgnkIH-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/usb/gadget/function/f_midi2.c:483:6: warning: no previous prototype for function 'reply_ump_stream_fb_info' [-Wmissing-prototypes]
   void reply_ump_stream_fb_info(struct f_midi2 *midi2, int blk)
        ^
   drivers/usb/gadget/function/f_midi2.c:483:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void reply_ump_stream_fb_info(struct f_midi2 *midi2, int blk)
   ^
   static 
   1 warning generated.


vim +/reply_ump_stream_fb_info +483 drivers/usb/gadget/function/f_midi2.c

   481	
   482	/* exported for shell */
 > 483	void reply_ump_stream_fb_info(struct f_midi2 *midi2, int blk)
   484	{
   485		u32 buf[4];
   486	
   487		memset(buf, 0, sizeof(buf));
   488		buf[0] = ump_stream_compose(UMP_STREAM_MSG_STATUS_FB_INFO, 0);
   489		buf[0] |= (midi2->blks[blk].active << 15) | (blk << 8);
   490		buf[0] |= midi2->blks[blk].dir << 4; // UI-hint
   491		buf[1] |= 0 << 2; // MIDI 1.0 port? No
   492		buf[0] |= midi2->blks[blk].dir; // direction
   493		buf[1] |= (midi2->blks[blk].start_group << 24) | // start group
   494			(midi2->blks[blk].num_groups << 16); // # groups spanned
   495		buf[1] |= 0x01 << 8; // MIDI-CI support version
   496		buf[1] |= 0; // Sysex8 streams; not supported
   497	
   498		reply_ep_in(midi2, buf, sizeof(buf));
   499	}
   500	

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