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]
Message-ID: <202208292243.9xMDeXpd-lkp@intel.com>
Date:   Mon, 29 Aug 2022 22:04:49 +0800
From:   kernel test robot <lkp@...el.com>
To:     Vitaly Rodionov <vitaly.rodionov@...rus.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Takashi Iwai <tiwai@...e.de>
Subject: sound/pci/hda/cs35l41_hda.c:323:15: sparse: sparse: cast to
 restricted __be32

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b90cb1053190353cc30f0fef0ef1f378ccc063c5
commit: 2e81e1fffd53ba108481f2f14388b628884efe61 ALSA: hda: cs35l41: Add initial DSP support and firmware loading
date:   7 weeks ago
config: x86_64-randconfig-s022-20220829 (https://download.01.org/0day-ci/archive/20220829/202208292243.9xMDeXpd-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2e81e1fffd53ba108481f2f14388b628884efe61
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 2e81e1fffd53ba108481f2f14388b628884efe61
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/pci/hda/

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

sparse warnings: (new ones prefixed by >>)
>> sound/pci/hda/cs35l41_hda.c:323:15: sparse: sparse: cast to restricted __be32
>> sound/pci/hda/cs35l41_hda.c:323:15: sparse: sparse: cast to restricted __be32

vim +323 sound/pci/hda/cs35l41_hda.c

   299	
   300	static int cs35l41_smart_amp(struct cs35l41_hda *cs35l41)
   301	{
   302		int halo_sts;
   303		int ret;
   304	
   305		ret = cs35l41_init_dsp(cs35l41);
   306		if (ret) {
   307			dev_warn(cs35l41->dev, "Cannot Initialize Firmware. Error: %d\n", ret);
   308			goto clean_dsp;
   309		}
   310	
   311		ret = cs35l41_write_fs_errata(cs35l41->dev, cs35l41->regmap);
   312		if (ret) {
   313			dev_err(cs35l41->dev, "Cannot Write FS Errata: %d\n", ret);
   314			goto clean_dsp;
   315		}
   316	
   317		ret = cs_dsp_run(&cs35l41->cs_dsp);
   318		if (ret) {
   319			dev_err(cs35l41->dev, "Fail to start dsp: %d\n", ret);
   320			goto clean_dsp;
   321		}
   322	
 > 323		ret = read_poll_timeout(hda_cs_dsp_read_ctl, ret,
   324					be32_to_cpu(halo_sts) == HALO_STATE_CODE_RUN,
   325					1000, 15000, false, &cs35l41->cs_dsp, HALO_STATE_DSP_CTL_NAME,
   326					HALO_STATE_DSP_CTL_TYPE, HALO_STATE_DSP_CTL_ALG,
   327					&halo_sts, sizeof(halo_sts));
   328	
   329		if (ret) {
   330			dev_err(cs35l41->dev, "Timeout waiting for HALO Core to start. State: %d\n",
   331				 halo_sts);
   332			goto clean_dsp;
   333		}
   334	
   335		cs35l41_set_cspl_mbox_cmd(cs35l41->dev, cs35l41->regmap, CSPL_MBOX_CMD_PAUSE);
   336		cs35l41->firmware_running = true;
   337	
   338		return 0;
   339	
   340	clean_dsp:
   341		cs35l41_shutdown_dsp(cs35l41);
   342		return ret;
   343	}
   344	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ