* [sound:test/usb-hacks-wip 44/53] sound/usb/endpoint.c:1255:5: warning: no previous prototype for function 'snd_usb_sync_endpoint_start'
@ 2020-11-16 8:23 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-11-16 8:23 UTC (permalink / raw)
To: Takashi Iwai; +Cc: clang-built-linux, alsa-devel, kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [sound:test/usb-hacks-wip 44/53] sound/usb/endpoint.c:1255:5: warning: no previous prototype for function 'snd_usb_sync_endpoint_start'
@ 2020-11-16 8:23 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-11-16 8:23 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-16 8:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-11-16 8:23 ` kernel test robot
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.