All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 6868/7588] sound/soc/fsl/fsl_rpmsg.c:45:45: sparse: sparse: Using plain integer as NULL pointer
Date: Fri, 26 Mar 2021 20:48:13 +0800	[thread overview]
Message-ID: <202103262007.FLSCFJPc-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3106 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   931294922e65a23e1aad6398b9ae02df74044679
commit: b73d9e6225e86492f6a901223a34ecfa7b55c178 [6868/7588] ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg
config: openrisc-randconfig-s031-20210326 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b73d9e6225e86492f6a901223a34ecfa7b55c178
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout b73d9e6225e86492f6a901223a34ecfa7b55c178
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc 

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


sparse warnings: (new ones prefixed by >>)
>> sound/soc/fsl/fsl_rpmsg.c:45:45: sparse: sparse: Using plain integer as NULL pointer
   sound/soc/fsl/fsl_rpmsg.c:45:56: sparse: sparse: Using plain integer as NULL pointer

vim +45 sound/soc/fsl/fsl_rpmsg.c

    39	
    40	static int fsl_rpmsg_hw_params(struct snd_pcm_substream *substream,
    41				       struct snd_pcm_hw_params *params,
    42				       struct snd_soc_dai *dai)
    43	{
    44		struct fsl_rpmsg *rpmsg = snd_soc_dai_get_drvdata(dai);
  > 45		struct clk *p = rpmsg->mclk, *pll = 0, *npll = 0;
    46		u64 rate = params_rate(params);
    47		int ret = 0;
    48	
    49		/* Get current pll parent */
    50		while (p && rpmsg->pll8k && rpmsg->pll11k) {
    51			struct clk *pp = clk_get_parent(p);
    52	
    53			if (clk_is_match(pp, rpmsg->pll8k) ||
    54			    clk_is_match(pp, rpmsg->pll11k)) {
    55				pll = pp;
    56				break;
    57			}
    58			p = pp;
    59		}
    60	
    61		/* Switch to another pll parent if needed. */
    62		if (pll) {
    63			npll = (do_div(rate, 8000) ? rpmsg->pll11k : rpmsg->pll8k);
    64			if (!clk_is_match(pll, npll)) {
    65				ret = clk_set_parent(p, npll);
    66				if (ret < 0)
    67					dev_warn(dai->dev, "failed to set parent %s: %d\n",
    68						 __clk_get_name(npll), ret);
    69			}
    70		}
    71	
    72		if (!(rpmsg->mclk_streams & BIT(substream->stream))) {
    73			ret = clk_prepare_enable(rpmsg->mclk);
    74			if (ret) {
    75				dev_err(dai->dev, "failed to enable mclk: %d\n", ret);
    76				return ret;
    77			}
    78	
    79			rpmsg->mclk_streams |= BIT(substream->stream);
    80		}
    81	
    82		return ret;
    83	}
    84	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21606 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Shengjiu Wang <shengjiu.wang@nxp.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Mark Brown <broonie@kernel.org>
Subject: [linux-next:master 6868/7588] sound/soc/fsl/fsl_rpmsg.c:45:45: sparse: sparse: Using plain integer as NULL pointer
Date: Fri, 26 Mar 2021 20:48:13 +0800	[thread overview]
Message-ID: <202103262007.FLSCFJPc-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3027 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   931294922e65a23e1aad6398b9ae02df74044679
commit: b73d9e6225e86492f6a901223a34ecfa7b55c178 [6868/7588] ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg
config: openrisc-randconfig-s031-20210326 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b73d9e6225e86492f6a901223a34ecfa7b55c178
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout b73d9e6225e86492f6a901223a34ecfa7b55c178
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc 

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


sparse warnings: (new ones prefixed by >>)
>> sound/soc/fsl/fsl_rpmsg.c:45:45: sparse: sparse: Using plain integer as NULL pointer
   sound/soc/fsl/fsl_rpmsg.c:45:56: sparse: sparse: Using plain integer as NULL pointer

vim +45 sound/soc/fsl/fsl_rpmsg.c

    39	
    40	static int fsl_rpmsg_hw_params(struct snd_pcm_substream *substream,
    41				       struct snd_pcm_hw_params *params,
    42				       struct snd_soc_dai *dai)
    43	{
    44		struct fsl_rpmsg *rpmsg = snd_soc_dai_get_drvdata(dai);
  > 45		struct clk *p = rpmsg->mclk, *pll = 0, *npll = 0;
    46		u64 rate = params_rate(params);
    47		int ret = 0;
    48	
    49		/* Get current pll parent */
    50		while (p && rpmsg->pll8k && rpmsg->pll11k) {
    51			struct clk *pp = clk_get_parent(p);
    52	
    53			if (clk_is_match(pp, rpmsg->pll8k) ||
    54			    clk_is_match(pp, rpmsg->pll11k)) {
    55				pll = pp;
    56				break;
    57			}
    58			p = pp;
    59		}
    60	
    61		/* Switch to another pll parent if needed. */
    62		if (pll) {
    63			npll = (do_div(rate, 8000) ? rpmsg->pll11k : rpmsg->pll8k);
    64			if (!clk_is_match(pll, npll)) {
    65				ret = clk_set_parent(p, npll);
    66				if (ret < 0)
    67					dev_warn(dai->dev, "failed to set parent %s: %d\n",
    68						 __clk_get_name(npll), ret);
    69			}
    70		}
    71	
    72		if (!(rpmsg->mclk_streams & BIT(substream->stream))) {
    73			ret = clk_prepare_enable(rpmsg->mclk);
    74			if (ret) {
    75				dev_err(dai->dev, "failed to enable mclk: %d\n", ret);
    76				return ret;
    77			}
    78	
    79			rpmsg->mclk_streams |= BIT(substream->stream);
    80		}
    81	
    82		return ret;
    83	}
    84	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21606 bytes --]

             reply	other threads:[~2021-03-26 12:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 12:48 kernel test robot [this message]
2021-03-26 12:48 ` [linux-next:master 6868/7588] sound/soc/fsl/fsl_rpmsg.c:45:45: sparse: sparse: Using plain integer as NULL pointer kernel test robot

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=202103262007.FLSCFJPc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.