X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=blobdiff_plain;f=include%2Flinux%2Fmtd%2Fnand.h;h=14761eb01e560100ad19d6e1648632da8e56a782;hp=5216d2eb22891010187b86a5911a10b17aedf273;hb=47d2f3cc737ba183a27901faf4048f422aa7c010;hpb=f8813c6431971322ef813b39bf41d21c7f40b9c7;ds=sidebyside diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 5216d2eb2289..14761eb01e56 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -1246,6 +1246,8 @@ int onfi_init_data_interface(struct nand_chip *chip, */ static inline bool nand_is_slc(struct nand_chip *chip) { + WARN(chip->bits_per_cell == 0, + "chip->bits_per_cell is used uninitialized\n"); return chip->bits_per_cell == 1; }