All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: sound/soc/sh/rcar/adg.c:396 rsnd_adg_create_null_clk() warn: passing zero to 'ERR_CAST'
Date: Wed, 20 Apr 2022 07:30:02 +0800	[thread overview]
Message-ID: <202204200758.Z2D3hrGP-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
CC: Mark Brown <broonie@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   559089e0a93d44280ec3ab478830af319c56dbe3
commit: cc64c390b215b404524725a94857d6fb58d9a62a ASoC: rsnd: adg: clearly handle clock error / NULL case
date:   8 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 8 months ago
config: h8300-randconfig-m031-20220418 (https://download.01.org/0day-ci/archive/20220420/202204200758.Z2D3hrGP-lkp(a)intel.com/config)
compiler: h8300-linux-gcc (GCC) 11.2.0

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

smatch warnings:
sound/soc/sh/rcar/adg.c:396 rsnd_adg_create_null_clk() warn: passing zero to 'ERR_CAST'

vim +/ERR_CAST +396 sound/soc/sh/rcar/adg.c

c2d3171847611e Kuninori Morimoto 2016-12-07  385  
cb2f97d89f383d Kuninori Morimoto 2021-06-02  386  static struct clk *rsnd_adg_create_null_clk(struct rsnd_priv *priv,
cb2f97d89f383d Kuninori Morimoto 2021-06-02  387  					    const char * const name,
cb2f97d89f383d Kuninori Morimoto 2021-06-02  388  					    const char *parent)
d6956a7dde6fbf Kuninori Morimoto 2021-05-24  389  {
d6956a7dde6fbf Kuninori Morimoto 2021-05-24  390  	struct device *dev = rsnd_priv_to_dev(priv);
cb2f97d89f383d Kuninori Morimoto 2021-06-02  391  	struct clk *clk;
d6956a7dde6fbf Kuninori Morimoto 2021-05-24  392  
cb2f97d89f383d Kuninori Morimoto 2021-06-02  393  	clk = clk_register_fixed_rate(dev, name, parent, 0, 0);
cc64c390b215b4 Kuninori Morimoto 2021-08-20  394  	if (IS_ERR_OR_NULL(clk)) {
cb2f97d89f383d Kuninori Morimoto 2021-06-02  395  		dev_err(dev, "create null clk error\n");
cc64c390b215b4 Kuninori Morimoto 2021-08-20 @396  		return ERR_CAST(clk);
cb2f97d89f383d Kuninori Morimoto 2021-06-02  397  	}
d6956a7dde6fbf Kuninori Morimoto 2021-05-24  398  
cb2f97d89f383d Kuninori Morimoto 2021-06-02  399  	return clk;
cb2f97d89f383d Kuninori Morimoto 2021-06-02  400  }
d6956a7dde6fbf Kuninori Morimoto 2021-05-24  401  

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

             reply	other threads:[~2022-04-19 23:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-19 23:30 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-08 13:22 sound/soc/sh/rcar/adg.c:396 rsnd_adg_create_null_clk() warn: passing zero to 'ERR_CAST' kernel test robot
2022-04-21 13:12 kernel test robot
2022-04-18 20:35 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=202204200758.Z2D3hrGP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@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.