All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vitaly Rodionov <vitaly.rodionov@cirrus.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Takashi Iwai <tiwai@suse.de>
Subject: sound/pci/hda/cs35l41_hda.c:323:15: sparse: sparse: cast to restricted __be32
Date: Mon, 29 Aug 2022 22:04:49 +0800	[thread overview]
Message-ID: <202208292243.9xMDeXpd-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2022-08-29 14:08 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=202208292243.9xMDeXpd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.de \
    --cc=vitaly.rodionov@cirrus.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.