lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 18 Aug 2022 00:40:22 +0800
From:   kernel test robot <lkp@...el.com>
To:     Laurentiu Mihalcea <laurentiu.mihalcea@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Mark Brown <broonie@...nel.org>,
        Paul Olaru <paul.olaru@....nxp.com>,
        Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
        Daniel Baluta <daniel.baluta@....com>
Subject: [broonie-ci:20220817_daniel_baluta_enable_timestamp_support_for_sof_compress_driver
 26/26] sound/soc/sof/compress.c:330:13: warning: variable 'dai_posn' set but
 not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git 20220817_daniel_baluta_enable_timestamp_support_for_sof_compress_driver
head:   c1a731c71359407eae4fd0a5fd675ef25a582764
commit: c1a731c71359407eae4fd0a5fd675ef25a582764 [26/26] ASoC: SOF: compress: Add support for computing timestamps
config: m68k-allyesconfig
compiler: m68k-linux-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git/commit/?id=c1a731c71359407eae4fd0a5fd675ef25a582764
        git remote add broonie-ci https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git
        git fetch --no-tags broonie-ci 20220817_daniel_baluta_enable_timestamp_support_for_sof_compress_driver
        git checkout c1a731c71359407eae4fd0a5fd675ef25a582764
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash sound/soc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   sound/soc/sof/compress.c: In function 'sof_compr_pointer':
>> sound/soc/sof/compress.c:330:13: warning: variable 'dai_posn' set but not used [-Wunused-but-set-variable]
     330 |         u64 dai_posn;
         |             ^~~~~~~~


vim +/dai_posn +330 sound/soc/sof/compress.c

   325	
   326	static int sof_compr_pointer(struct snd_soc_component *component,
   327				     struct snd_compr_stream *cstream,
   328				     struct snd_compr_tstamp *tstamp)
   329	{
 > 330		u64 dai_posn;
   331		struct snd_sof_pcm *spcm;
   332		struct snd_soc_pcm_runtime *rtd = cstream->private_data;
   333		struct sof_compr_stream *sstream = cstream->runtime->private_data;
   334	
   335		spcm = snd_sof_find_spcm_dai(component, rtd);
   336		if (!spcm)
   337			return -EINVAL;
   338	
   339		dai_posn = spcm->stream[cstream->direction].posn.dai_posn;
   340	
   341		tstamp->sampling_rate = sstream->sampling_rate;
   342		tstamp->copied_total = sstream->copied_total;
   343		tstamp->pcm_io_frames = div_u64(spcm->stream[cstream->direction].posn.dai_posn,
   344						sstream->channels * sstream->sample_container_bytes);
   345	
   346		return 0;
   347	}
   348	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (279664 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ