All of lore.kernel.org
 help / color / mirror / Atom feed
* sound/soc/sh/rcar/adg.c:396 rsnd_adg_create_null_clk() warn: passing zero to 'ERR_CAST'
@ 2022-05-08 13:22 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-05-08 13:22 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2329 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:   30c8e80f79329617012f07b09b70114592092ea4
commit: cc64c390b215b404524725a94857d6fb58d9a62a ASoC: rsnd: adg: clearly handle clock error / NULL case
date:   9 months ago
:::::: branch date: 19 hours ago
:::::: commit date: 9 months ago
config: openrisc-randconfig-m031-20220506 (https://download.01.org/0day-ci/archive/20220508/202205082129.QlxhGCvM-lkp(a)intel.com/config)
compiler: or1k-linux-gcc (GCC) 11.3.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

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* sound/soc/sh/rcar/adg.c:396 rsnd_adg_create_null_clk() warn: passing zero to 'ERR_CAST'
@ 2022-04-21 13:12 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-04-21 13:12 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2310 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:   b253435746d9a4a701b5f09211b9c14d3370d0da
commit: cc64c390b215b404524725a94857d6fb58d9a62a ASoC: rsnd: adg: clearly handle clock error / NULL case
date:   8 months ago
:::::: branch date: 17 hours ago
:::::: commit date: 8 months ago
config: h8300-randconfig-m031-20220418 (https://download.01.org/0day-ci/archive/20220421/202204212118.Gg6rhRDQ-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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* sound/soc/sh/rcar/adg.c:396 rsnd_adg_create_null_clk() warn: passing zero to 'ERR_CAST'
@ 2022-04-19 23:30 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-04-19 23:30 UTC (permalink / raw)
  To: kbuild

[-- 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* sound/soc/sh/rcar/adg.c:396 rsnd_adg_create_null_clk() warn: passing zero to 'ERR_CAST'
@ 2022-04-18 20:35 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-04-18 20:35 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2310 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:   b2d229d4ddb17db541098b83524d901257e93845
commit: cc64c390b215b404524725a94857d6fb58d9a62a ASoC: rsnd: adg: clearly handle clock error / NULL case
date:   8 months ago
:::::: branch date: 24 hours ago
:::::: commit date: 8 months ago
config: h8300-randconfig-m031-20220418 (https://download.01.org/0day-ci/archive/20220419/202204190441.6TR76Jeo-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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-08 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2022-04-21 13:12 kernel test robot
2022-04-19 23:30 kernel test robot
2022-04-18 20:35 kernel test robot

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.