CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Angelo Dureghello <[email protected]>
CC: "Marc Kleine-Budde" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   2f73937c9aa561e2082839bc1a8efaac75d6e244
commit: d9cead75b1c66b4660b4f87ff339234042d7c6a5 [2764/5318] can: flexcan: add 
mcf5441x support
:::::: branch date: 7 hours ago
:::::: commit date: 11 days ago
config: h8300-randconfig-m031-20210804 (attached as .config)
compiler: h8300-linux-gcc (GCC) 10.3.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:
drivers/net/can/flexcan.c:666 flexcan_clks_enable() error: uninitialized symbol 
'err'.

vim +/err +666 drivers/net/can/flexcan.c

da49a8075c00b4 ZHU Yi (ST-FIR/ENG1-Zhu  2017-09-15  649) 
ca10989632d882 Aisheng Dong             2018-11-30  650  static int 
flexcan_clks_enable(const struct flexcan_priv *priv)
ca10989632d882 Aisheng Dong             2018-11-30  651  {
ca10989632d882 Aisheng Dong             2018-11-30  652         int err;
ca10989632d882 Aisheng Dong             2018-11-30  653  
d9cead75b1c66b Angelo Dureghello        2021-07-02  654         if 
(priv->clk_ipg) {
ca10989632d882 Aisheng Dong             2018-11-30  655                 err = 
clk_prepare_enable(priv->clk_ipg);
ca10989632d882 Aisheng Dong             2018-11-30  656                 if (err)
ca10989632d882 Aisheng Dong             2018-11-30  657                         
return err;
d9cead75b1c66b Angelo Dureghello        2021-07-02  658         }
ca10989632d882 Aisheng Dong             2018-11-30  659  
d9cead75b1c66b Angelo Dureghello        2021-07-02  660         if 
(priv->clk_per) {
ca10989632d882 Aisheng Dong             2018-11-30  661                 err = 
clk_prepare_enable(priv->clk_per);
ca10989632d882 Aisheng Dong             2018-11-30  662                 if (err)
ca10989632d882 Aisheng Dong             2018-11-30  663                         
clk_disable_unprepare(priv->clk_ipg);
d9cead75b1c66b Angelo Dureghello        2021-07-02  664         }
ca10989632d882 Aisheng Dong             2018-11-30  665  
ca10989632d882 Aisheng Dong             2018-11-30 @666         return err;
ca10989632d882 Aisheng Dong             2018-11-30  667  }
ca10989632d882 Aisheng Dong             2018-11-30  668  

:::::: The code at line 666 was first introduced by commit
:::::: ca10989632d8820749fad37e13843750198e450a can: flexcan: implement can 
Runtime PM

:::::: TO: Aisheng Dong <[email protected]>
:::::: CC: Marc Kleine-Budde <[email protected]>

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