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>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 18 Sep 2020 09:50:45 +0800
From:   kernel test robot <lkp@...el.com>
To:     Daniel Baluta <daniel.baluta@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Mark Brown <broonie@...nel.org>,
        Ranjani Sridharan <ranjani.sridharan@...ux.intel.com>,
        Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Subject: sound/soc/sof/sof-audio.c:375 sof_machine_check() warn: inconsistent
 indenting

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4cbffc461ec91287c4cb1d0e27b01b988d0b8fba
commit: 285880a23d105e5d34b311b0c44061dffb07e405 ASoC: SOF: Make creation of machine device from SOF core optional
date:   9 months ago
config: s390-randconfig-m031-20200917 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0

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

smatch warnings:
sound/soc/sof/sof-audio.c:375 sof_machine_check() warn: inconsistent indenting
sound/soc/sof/sof-audio.c:380 sof_machine_check() warn: ignoring unreachable code.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=285880a23d105e5d34b311b0c44061dffb07e405
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 285880a23d105e5d34b311b0c44061dffb07e405
vim +375 sound/soc/sof/sof-audio.c

   362	
   363	/*
   364	 * SOF Driver enumeration.
   365	 */
   366	int sof_machine_check(struct snd_sof_dev *sdev)
   367	{
   368		struct snd_sof_pdata *sof_pdata = sdev->pdata;
   369		const struct sof_dev_desc *desc = sof_pdata->desc;
   370		struct snd_soc_acpi_mach *mach;
   371		int ret;
   372	
   373		/* force nocodec mode */
   374	#if IS_ENABLED(CONFIG_SND_SOC_SOF_FORCE_NOCODEC_MODE)
 > 375			dev_warn(sdev->dev, "Force to use nocodec mode\n");
   376			goto nocodec;
   377	#endif
   378	
   379		/* find machine */
 > 380		snd_sof_machine_select(sdev);
   381		if (sof_pdata->machine) {
   382			snd_sof_set_mach_params(sof_pdata->machine, sdev->dev);
   383			return 0;
   384		}
   385	

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

Download attachment ".config.gz" of type "application/gzip" (26922 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ