CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Kuninori Morimoto <[email protected]>
CC: Mark Brown <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   372b2891c15acbf7b90d948b08ac174bde77102c
commit: cc64c390b215b404524725a94857d6fb58d9a62a [8539/10077] ASoC: rsnd: adg: 
clearly handle clock error / NULL case
:::::: branch date: 5 hours ago
:::::: commit date: 4 days ago
config: h8300-randconfig-m031-20210824 (attached as .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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

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, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to