From: kernel test robot <lkp@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
alsa-devel@alsa-project.org
Subject: [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: Fri, 30 Jun 2023 04:11:32 +0800 [thread overview]
Message-ID: <202306300419.dOOgnkIH-lkp@intel.com> (raw)
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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306300419.dOOgnkIH-lkp@intel.com/
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
reply other threads:[~2023-06-29 20:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202306300419.dOOgnkIH-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox