All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: clang-built-linux@googlegroups.com, alsa-devel@alsa-project.org,
	kbuild-all@lists.01.org
Subject: [sound:test/usb-hacks-wip 44/53] sound/usb/endpoint.c:1255:5: warning: no previous prototype for function 'snd_usb_sync_endpoint_start'
Date: Mon, 16 Nov 2020 16:23:51 +0800	[thread overview]
Message-ID: <202011161649.fsiTchSp-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3833 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git test/usb-hacks-wip
head:   8d9dd7caccc6daebab8b2a1a7bbd09e605b83fba
commit: ca31918f6843b5369d0c900c43bfe5f71441b5b2 [44/53] ALSA: usb-audio: Refactor endpoint management
config: x86_64-randconfig-a001-20201115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9a85643cd357e412cff69067bb5c4840e228c2ab)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=ca31918f6843b5369d0c900c43bfe5f71441b5b2
        git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
        git fetch --no-tags sound test/usb-hacks-wip
        git checkout ca31918f6843b5369d0c900c43bfe5f71441b5b2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/usb/endpoint.c:1255:5: warning: no previous prototype for function 'snd_usb_sync_endpoint_start' [-Wmissing-prototypes]
   int snd_usb_sync_endpoint_start(struct snd_usb_endpoint *ep,
       ^
   sound/usb/endpoint.c:1255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int snd_usb_sync_endpoint_start(struct snd_usb_endpoint *ep,
   ^
   static 
>> sound/usb/endpoint.c:1298:6: warning: no previous prototype for function 'snd_usb_sync_endpoint_stop' [-Wmissing-prototypes]
   void snd_usb_sync_endpoint_stop(struct snd_usb_endpoint *ep)
        ^
   sound/usb/endpoint.c:1298:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void snd_usb_sync_endpoint_stop(struct snd_usb_endpoint *ep)
   ^
   static 
   2 warnings generated.

vim +/snd_usb_sync_endpoint_start +1255 sound/usb/endpoint.c

  1254	
> 1255	int snd_usb_sync_endpoint_start(struct snd_usb_endpoint *ep,
  1256					struct snd_usb_endpoint *data_ep)
  1257	{
  1258		int err;
  1259	
  1260		err = snd_usb_endpoint_start(ep);
  1261		return err;
  1262	}
  1263	
  1264	/**
  1265	 * snd_usb_endpoint_stop: stop an snd_usb_endpoint
  1266	 *
  1267	 * @ep: the endpoint to stop (may be NULL)
  1268	 *
  1269	 * A call to this function will decrement the use count of the endpoint.
  1270	 * In case the last user has requested the endpoint stop, the URBs will
  1271	 * actually be deactivated.
  1272	 *
  1273	 * Must be balanced to calls of snd_usb_endpoint_start().
  1274	 *
  1275	 * The caller needs to synchronize the pending stop operation via
  1276	 * snd_usb_endpoint_sync_pending_stop().
  1277	 */
  1278	void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep)
  1279	{
  1280		if (!ep)
  1281			return;
  1282	
  1283		usb_audio_dbg(ep->chip, "Stopping %s EP 0x%x (count %d)\n",
  1284			      ep_type_name(ep->type), ep->ep_num, ep->use_count);
  1285	
  1286		if (snd_BUG_ON(ep->use_count == 0))
  1287			return;
  1288	
  1289		if (ep->sync_master)
  1290			WRITE_ONCE(ep->sync_master->sync_slave, NULL);
  1291	
  1292		if (--ep->use_count == 0) {
  1293			deactivate_urbs(ep, false);
  1294			set_bit(EP_FLAG_STOPPING, &ep->flags);
  1295		}
  1296	}
  1297	
> 1298	void snd_usb_sync_endpoint_stop(struct snd_usb_endpoint *ep)
  1299	{
  1300		snd_usb_endpoint_stop(ep);
  1301	}
  1302	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34618 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [sound:test/usb-hacks-wip 44/53] sound/usb/endpoint.c:1255:5: warning: no previous prototype for function 'snd_usb_sync_endpoint_start'
Date: Mon, 16 Nov 2020 16:23:51 +0800	[thread overview]
Message-ID: <202011161649.fsiTchSp-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3928 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git test/usb-hacks-wip
head:   8d9dd7caccc6daebab8b2a1a7bbd09e605b83fba
commit: ca31918f6843b5369d0c900c43bfe5f71441b5b2 [44/53] ALSA: usb-audio: Refactor endpoint management
config: x86_64-randconfig-a001-20201115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9a85643cd357e412cff69067bb5c4840e228c2ab)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=ca31918f6843b5369d0c900c43bfe5f71441b5b2
        git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
        git fetch --no-tags sound test/usb-hacks-wip
        git checkout ca31918f6843b5369d0c900c43bfe5f71441b5b2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/usb/endpoint.c:1255:5: warning: no previous prototype for function 'snd_usb_sync_endpoint_start' [-Wmissing-prototypes]
   int snd_usb_sync_endpoint_start(struct snd_usb_endpoint *ep,
       ^
   sound/usb/endpoint.c:1255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int snd_usb_sync_endpoint_start(struct snd_usb_endpoint *ep,
   ^
   static 
>> sound/usb/endpoint.c:1298:6: warning: no previous prototype for function 'snd_usb_sync_endpoint_stop' [-Wmissing-prototypes]
   void snd_usb_sync_endpoint_stop(struct snd_usb_endpoint *ep)
        ^
   sound/usb/endpoint.c:1298:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void snd_usb_sync_endpoint_stop(struct snd_usb_endpoint *ep)
   ^
   static 
   2 warnings generated.

vim +/snd_usb_sync_endpoint_start +1255 sound/usb/endpoint.c

  1254	
> 1255	int snd_usb_sync_endpoint_start(struct snd_usb_endpoint *ep,
  1256					struct snd_usb_endpoint *data_ep)
  1257	{
  1258		int err;
  1259	
  1260		err = snd_usb_endpoint_start(ep);
  1261		return err;
  1262	}
  1263	
  1264	/**
  1265	 * snd_usb_endpoint_stop: stop an snd_usb_endpoint
  1266	 *
  1267	 * @ep: the endpoint to stop (may be NULL)
  1268	 *
  1269	 * A call to this function will decrement the use count of the endpoint.
  1270	 * In case the last user has requested the endpoint stop, the URBs will
  1271	 * actually be deactivated.
  1272	 *
  1273	 * Must be balanced to calls of snd_usb_endpoint_start().
  1274	 *
  1275	 * The caller needs to synchronize the pending stop operation via
  1276	 * snd_usb_endpoint_sync_pending_stop().
  1277	 */
  1278	void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep)
  1279	{
  1280		if (!ep)
  1281			return;
  1282	
  1283		usb_audio_dbg(ep->chip, "Stopping %s EP 0x%x (count %d)\n",
  1284			      ep_type_name(ep->type), ep->ep_num, ep->use_count);
  1285	
  1286		if (snd_BUG_ON(ep->use_count == 0))
  1287			return;
  1288	
  1289		if (ep->sync_master)
  1290			WRITE_ONCE(ep->sync_master->sync_slave, NULL);
  1291	
  1292		if (--ep->use_count == 0) {
  1293			deactivate_urbs(ep, false);
  1294			set_bit(EP_FLAG_STOPPING, &ep->flags);
  1295		}
  1296	}
  1297	
> 1298	void snd_usb_sync_endpoint_stop(struct snd_usb_endpoint *ep)
  1299	{
  1300		snd_usb_endpoint_stop(ep);
  1301	}
  1302	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34618 bytes --]

             reply	other threads:[~2020-11-16  8:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-16  8:23 kernel test robot [this message]
2020-11-16  8:23 ` [sound:test/usb-hacks-wip 44/53] sound/usb/endpoint.c:1255:5: warning: no previous prototype for function 'snd_usb_sync_endpoint_start' kernel test robot

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=202011161649.fsiTchSp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.