CC: [email protected]
CC: [email protected]
TO: Miquel Raynal <[email protected]>
CC: Boris Brezillon <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   e48661230cc35b3d0f4367eddfc19f86463ab917
commit: 4c46667b3d67253604ee42840917844548c86657 mtd: rawnand: 
s/data_interface/interface_config/
date:   11 months ago
:::::: branch date: 8 hours ago
:::::: commit date: 11 months ago
config: xtensa-randconfig-m031-20210507 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 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]>

New smatch warnings:
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c:748 gpmi_setup_interface() warn: 
passing a valid pointer to 'PTR_ERR'

Old smatch warnings:
arch/xtensa/include/asm/thread_info.h:87 current_thread_info() warn: 
inconsistent indenting
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c:1954 mx23_boot_init() warn: should 
'block << chip->phys_erase_shift' be a 64 bit type?

vim +/PTR_ERR +748 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c

3045f8e3696341 Sascha Hauer  2019-04-09  738  
4c46667b3d6725 Miquel Raynal 2020-05-29  739  static int 
gpmi_setup_interface(struct nand_chip *chip, int chipnr,
4c46667b3d6725 Miquel Raynal 2020-05-29  740                            const 
struct nand_interface_config *conf)
3045f8e3696341 Sascha Hauer  2019-04-09  741  {
3045f8e3696341 Sascha Hauer  2019-04-09  742    struct gpmi_nand_data *this = 
nand_get_controller_data(chip);
3045f8e3696341 Sascha Hauer  2019-04-09  743    const struct nand_sdr_timings 
*sdr;
3045f8e3696341 Sascha Hauer  2019-04-09  744  
3045f8e3696341 Sascha Hauer  2019-04-09  745    /* Retrieve required NAND 
timings */
3045f8e3696341 Sascha Hauer  2019-04-09  746    sdr = 
nand_get_sdr_timings(conf);
3045f8e3696341 Sascha Hauer  2019-04-09  747    if (IS_ERR(sdr))
3045f8e3696341 Sascha Hauer  2019-04-09 @748            return PTR_ERR(sdr);
3045f8e3696341 Sascha Hauer  2019-04-09  749  
3045f8e3696341 Sascha Hauer  2019-04-09  750    /* Only MX6 GPMI controller can 
reach EDO timings */
3045f8e3696341 Sascha Hauer  2019-04-09  751    if (sdr->tRC_min <= 25000 && 
!GPMI_IS_MX6(this))
3045f8e3696341 Sascha Hauer  2019-04-09  752            return -ENOTSUPP;
3045f8e3696341 Sascha Hauer  2019-04-09  753  
3045f8e3696341 Sascha Hauer  2019-04-09  754    /* Stop here if this call was 
just a check */
3045f8e3696341 Sascha Hauer  2019-04-09  755    if (chipnr < 0)
3045f8e3696341 Sascha Hauer  2019-04-09  756            return 0;
3045f8e3696341 Sascha Hauer  2019-04-09  757  
3045f8e3696341 Sascha Hauer  2019-04-09  758    /* Do the actual derivation of 
the controller timings */
3045f8e3696341 Sascha Hauer  2019-04-09  759    gpmi_nfc_compute_timings(this, 
sdr);
3045f8e3696341 Sascha Hauer  2019-04-09  760  
3045f8e3696341 Sascha Hauer  2019-04-09  761    this->hw.must_apply_timings = 
true;
3045f8e3696341 Sascha Hauer  2019-04-09  762  
3045f8e3696341 Sascha Hauer  2019-04-09  763    return 0;
3045f8e3696341 Sascha Hauer  2019-04-09  764  }
3045f8e3696341 Sascha Hauer  2019-04-09  765  

:::::: The code at line 748 was first introduced by commit
:::::: 3045f8e369634152b5a9389fa11e766ae7696bdf mtd: rawnand: gpmi: move all 
driver code into single file

:::::: TO: Sascha Hauer <[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