CC: [email protected]
CC: [email protected]
TO: Tudor Ambarus <[email protected]>

tree:   https://github.com/ambarus/linux-0day spi-nor/next-clean-v4bis-sent
head:   088cf85cc4ef6d55a30cfab8ec33db3f1b15b777
commit: 40e3789d75cb97ab687d84fe7190dab363a758a0 [19/24] mtd: spi-nor: core: 
Init all flash parameters based on SFDP where possible
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: nios2-randconfig-m031-20211123 
(https://download.01.org/0day-ci/archive/20211125/[email protected]/config)
compiler: nios2-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]>

New smatch warnings:
drivers/mtd/spi-nor/core.c:2720 spi_nor_init_params_deprecated() warn: should 
this be a bitwise op?

Old smatch warnings:
arch/nios2/include/asm/thread_info.h:71 current_thread_info() error: 
uninitialized symbol 'sp'.
drivers/mtd/spi-nor/core.c:1544 spi_nor_init_erase_cmd_list() warn: passing a 
valid pointer to 'PTR_ERR'
drivers/mtd/spi-nor/core.c:1558 spi_nor_init_erase_cmd_list() warn: passing a 
valid pointer to 'PTR_ERR'

vim +2720 drivers/mtd/spi-nor/core.c

40e3789d75cb97 Tudor Ambarus 2021-10-29  2704  
40e3789d75cb97 Tudor Ambarus 2021-10-29  2705  /**
40e3789d75cb97 Tudor Ambarus 2021-10-29  2706   * 
spi_nor_init_params_deprecated() - Deprecated way of initializing flash
40e3789d75cb97 Tudor Ambarus 2021-10-29  2707   * parameters and settings.
40e3789d75cb97 Tudor Ambarus 2021-10-29  2708   * @nor: pointer to a 'struct 
spi_nor'.
40e3789d75cb97 Tudor Ambarus 2021-10-29  2709   *
40e3789d75cb97 Tudor Ambarus 2021-10-29  2710   * The method assumes that flash 
doesn't support SFDP so it initializes flash
40e3789d75cb97 Tudor Ambarus 2021-10-29  2711   * parameters in 
spi_nor_no_sfdp_init_params() which later on can be overwritten
40e3789d75cb97 Tudor Ambarus 2021-10-29  2712   * when parsing SFDP, if 
supported.
40e3789d75cb97 Tudor Ambarus 2021-10-29  2713   */
40e3789d75cb97 Tudor Ambarus 2021-10-29  2714  static void 
spi_nor_init_params_deprecated(struct spi_nor *nor)
40e3789d75cb97 Tudor Ambarus 2021-10-29  2715  {
40e3789d75cb97 Tudor Ambarus 2021-10-29  2716   
spi_nor_no_sfdp_init_params(nor);
40e3789d75cb97 Tudor Ambarus 2021-10-29  2717  
40e3789d75cb97 Tudor Ambarus 2021-10-29  2718   
spi_nor_manufacturer_init_params(nor);
40e3789d75cb97 Tudor Ambarus 2021-10-29  2719  
40e3789d75cb97 Tudor Ambarus 2021-10-29 @2720   if ((SPI_NOR_DUAL_READ | 
SPI_NOR_QUAD_READ | SPI_NOR_OCTAL_READ |
40e3789d75cb97 Tudor Ambarus 2021-10-29  2721        SPI_NOR_OCTAL_DTR_READ) &&
40e3789d75cb97 Tudor Ambarus 2021-10-29  2722       !(nor->info->no_sfdp_flags 
& SPI_NOR_SKIP_SFDP))
40e3789d75cb97 Tudor Ambarus 2021-10-29  2723           
spi_nor_sfdp_init_params_deprecated(nor);
40e3789d75cb97 Tudor Ambarus 2021-10-29  2724  }
40e3789d75cb97 Tudor Ambarus 2021-10-29  2725  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to