Re: [PATCH v3 14/15] mtd: spi-nor: Drop deprecated mechanism for optional SFDP parsing

From: kernel test robot
Date: Fri Jul 12 2024 - 12:05:52 EST


Hi Esben,

kernel test robot noticed the following build errors:

[auto build test ERROR on a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6]

url: https://github.com/intel-lab-lkp/linux/commits/Esben-Haabendal/mtd-spi-nor-core-add-flag-for-doing-optional-SFDP-parsing/20240711-224454
base: a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6
patch link: https://lore.kernel.org/r/20240711-macronix-mx25l3205d-fixups-v3-14-99353461dd2d%40geanix.com
patch subject: [PATCH v3 14/15] mtd: spi-nor: Drop deprecated mechanism for optional SFDP parsing
config: arm-randconfig-003-20240712 (https://download.01.org/0day-ci/archive/20240712/202407122344.BP3r1VyN-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240712/202407122344.BP3r1VyN-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407122344.BP3r1VyN-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/mtd/spi-nor/atmel.c:9:
drivers/mtd/spi-nor/core.h: In function 'spi_nor_try_sfdp':
>> drivers/mtd/spi-nor/core.h:722:61: error: expected ';' before '}' token
722 | return (nor->info->no_sfdp_flags & SPI_NOR_TRY_SFDP)
| ^
| ;
723 | }
| ~


vim +722 drivers/mtd/spi-nor/core.h

712
713 /**
714 * spi_nor_try_sfdp() - returns true if optional SFDP parsing should be tried
715 * for this flash, with fallback to static parameters and settings based on
716 * flash ID if SFDP parsing fails.
717 *
718 * Return: true if optional SFDP parsing should be tried
719 */
720 static inline bool spi_nor_try_sfdp(const struct spi_nor *nor)
721 {
> 722 return (nor->info->no_sfdp_flags & SPI_NOR_TRY_SFDP)
723 }
724

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki