CC: [email protected]
CC: [email protected]
TO: Christophe Kerello <[email protected]>
CC: Miquel Raynal <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f01c30de86f1047e9bae1b1b1417b0ce8dcd15b1
commit: 743f05572e7f81dcccfecf454bc7d9e10edbbaca mtd: rawnand: stm32_fmc2: 
cosmetic change to use nfc instead of fmc2 where relevant
date:   6 months ago
:::::: branch date: 23 hours ago
:::::: commit date: 6 months ago
config: i386-randconfig-m021-20201115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.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/mtd/nand/raw/stm32_fmc2_nand.c:1562 stm32_fmc2_nfc_setup_interface() 
warn: passing a valid pointer to 'PTR_ERR'

vim +/PTR_ERR +1562 drivers/mtd/nand/raw/stm32_fmc2_nand.c

2cd457f328c100b Christophe Kerello 2018-12-14  1554  
743f05572e7f81d Christophe Kerello 2020-05-12  1555  static int 
stm32_fmc2_nfc_setup_interface(struct nand_chip *chip, int chipnr,
2cd457f328c100b Christophe Kerello 2018-12-14  1556                             
          const struct nand_data_interface *conf)
2cd457f328c100b Christophe Kerello 2018-12-14  1557  {
2cd457f328c100b Christophe Kerello 2018-12-14  1558     const struct 
nand_sdr_timings *sdrt;
2cd457f328c100b Christophe Kerello 2018-12-14  1559  
2cd457f328c100b Christophe Kerello 2018-12-14  1560     sdrt = 
nand_get_sdr_timings(conf);
2cd457f328c100b Christophe Kerello 2018-12-14  1561     if (IS_ERR(sdrt))
2cd457f328c100b Christophe Kerello 2018-12-14 @1562             return 
PTR_ERR(sdrt);
2cd457f328c100b Christophe Kerello 2018-12-14  1563  
2cd457f328c100b Christophe Kerello 2018-12-14  1564     if (chipnr == 
NAND_DATA_IFACE_CHECK_ONLY)
2cd457f328c100b Christophe Kerello 2018-12-14  1565             return 0;
2cd457f328c100b Christophe Kerello 2018-12-14  1566  
743f05572e7f81d Christophe Kerello 2020-05-12  1567     
stm32_fmc2_nfc_calc_timings(chip, sdrt);
743f05572e7f81d Christophe Kerello 2020-05-12  1568     
stm32_fmc2_nfc_timings_init(chip);
2cd457f328c100b Christophe Kerello 2018-12-14  1569  
2cd457f328c100b Christophe Kerello 2018-12-14  1570     return 0;
2cd457f328c100b Christophe Kerello 2018-12-14  1571  }
2cd457f328c100b Christophe Kerello 2018-12-14  1572  

:::::: The code at line 1562 was first introduced by commit
:::::: 2cd457f328c100bc98e36d55fe210e9ab067c704 mtd: rawnand: stm32_fmc2: add 
STM32 FMC2 NAND flash controller driver

:::::: TO: Christophe Kerello <[email protected]>
:::::: CC: Miquel Raynal <[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