All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jack Livingood <jacklivingood@comcast.net>
Cc: oe-kbuild-all@lists.linux.dev,
	Bard Liao <yung-chuan.liao@linux.intel.com>,
	Takashi Sakamoto <o-takashi@sakamocchi.jp>,
	Takashi Iwai <tiwai@suse.de>
Subject: [thesofproject:topic/sof-dev 7769/7771] sound/firewire/isight.c:647:9: error: implicit declaration of function 'strspy'; did you mean 'strspn'?
Date: Fri, 21 Feb 2025 23:35:32 +0800	[thread overview]
Message-ID: <202502212301.Ftkz0mbY-lkp@intel.com> (raw)

tree:   https://github.com/thesofproject/linux topic/sof-dev
head:   05477f184fc6188b402a7ccaf6702c479eb169f4
commit: d63fe2848faae2c75ebd805565799a69654b8c1c [7769/7771] ALSA: firewire: isight: changed strcpy to strscpy
config: s390-randconfig-002-20250221 (https://download.01.org/0day-ci/archive/20250221/202502212301.Ftkz0mbY-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250221/202502212301.Ftkz0mbY-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/202502212301.Ftkz0mbY-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/firewire/isight.c: In function 'isight_probe':
>> sound/firewire/isight.c:647:9: error: implicit declaration of function 'strspy'; did you mean 'strspn'? [-Wimplicit-function-declaration]
     647 |         strspy(card->mixername, "iSight");
         |         ^~~~~~
         |         strspn


vim +647 sound/firewire/isight.c

   612	
   613	static int isight_probe(struct fw_unit *unit,
   614				const struct ieee1394_device_id *id)
   615	{
   616		struct fw_device *fw_dev = fw_parent_device(unit);
   617		struct snd_card *card;
   618		struct isight *isight;
   619		int err;
   620	
   621		err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE,
   622				   sizeof(*isight), &card);
   623		if (err < 0)
   624			return err;
   625	
   626		isight = card->private_data;
   627		isight->card = card;
   628		mutex_init(&isight->mutex);
   629		isight->unit = fw_unit_get(unit);
   630		isight->device = fw_dev;
   631		isight->audio_base = get_unit_base(unit);
   632		if (!isight->audio_base) {
   633			dev_err(&unit->device, "audio unit base not found\n");
   634			err = -ENXIO;
   635			goto error;
   636		}
   637		fw_iso_resources_init(&isight->resources, unit);
   638	
   639		card->private_free = isight_card_free;
   640	
   641		strscpy(card->driver, "iSight");
   642		strscpy(card->shortname, "Apple iSight");
   643		snprintf(card->longname, sizeof(card->longname),
   644			 "Apple iSight (GUID %08x%08x) at %s, S%d",
   645			 fw_dev->config_rom[3], fw_dev->config_rom[4],
   646			 dev_name(&unit->device), 100 << fw_dev->max_speed);
 > 647		strspy(card->mixername, "iSight");
   648	
   649		err = isight_create_pcm(isight);
   650		if (err < 0)
   651			goto error;
   652	
   653		err = isight_create_mixer(isight);
   654		if (err < 0)
   655			goto error;
   656	
   657		err = snd_card_register(card);
   658		if (err < 0)
   659			goto error;
   660	
   661		dev_set_drvdata(&unit->device, isight);
   662	
   663		return 0;
   664	error:
   665		snd_card_free(card);
   666	
   667		mutex_destroy(&isight->mutex);
   668		fw_unit_put(isight->unit);
   669	
   670		return err;
   671	}
   672	

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

                 reply	other threads:[~2025-02-21 15:35 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=202502212301.Ftkz0mbY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jacklivingood@comcast.net \
    --cc=o-takashi@sakamocchi.jp \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tiwai@suse.de \
    --cc=yung-chuan.liao@linux.intel.com \
    /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.