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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   48f99181fc118d82dc8bf6c7221ad1c654cb8bc2
commit: b4ed6328b93d23afc10c3ba222a74e9c9672c7ce [7169/15259] mtd: rawnand: 
cs553x: Implement exec_op()
:::::: branch date: 12 hours ago
:::::: commit date: 3 weeks ago
config: i386-randconfig-m021-20200603 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 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/cs553x_nand.c:284 cs553x_exec_op() error: uninitialized 
symbol 'ret'.

# 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b4ed6328b93d23afc10c3ba222a74e9c9672c7ce
git remote add linux-next 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout b4ed6328b93d23afc10c3ba222a74e9c9672c7ce
vim +/ret +284 drivers/mtd/nand/raw/cs553x_nand.c

b4ed6328b93d23 Boris Brezillon 2020-05-01  261  
b4ed6328b93d23 Boris Brezillon 2020-05-01  262  static int 
cs553x_exec_op(struct nand_chip *this,
b4ed6328b93d23 Boris Brezillon 2020-05-01  263                            const 
struct nand_operation *op,
b4ed6328b93d23 Boris Brezillon 2020-05-01  264                            bool 
check_only)
b4ed6328b93d23 Boris Brezillon 2020-05-01  265  {
b4ed6328b93d23 Boris Brezillon 2020-05-01  266          struct 
cs553x_nand_controller *cs553x = to_cs553x(this->controller);
b4ed6328b93d23 Boris Brezillon 2020-05-01  267          unsigned int i;
b4ed6328b93d23 Boris Brezillon 2020-05-01  268          int ret;
b4ed6328b93d23 Boris Brezillon 2020-05-01  269  
b4ed6328b93d23 Boris Brezillon 2020-05-01  270          if (check_only)
b4ed6328b93d23 Boris Brezillon 2020-05-01  271                  return true;
b4ed6328b93d23 Boris Brezillon 2020-05-01  272  
b4ed6328b93d23 Boris Brezillon 2020-05-01  273          /* De-assert the CE pin 
*/
b4ed6328b93d23 Boris Brezillon 2020-05-01  274          writeb(0, cs553x->mmio 
+ MM_NAND_CTL);
b4ed6328b93d23 Boris Brezillon 2020-05-01  275          for (i = 0; i < 
op->ninstrs; i++) {
b4ed6328b93d23 Boris Brezillon 2020-05-01  276                  ret = 
cs553x_exec_instr(cs553x, &op->instrs[i]);
b4ed6328b93d23 Boris Brezillon 2020-05-01  277                  if (ret)
b4ed6328b93d23 Boris Brezillon 2020-05-01  278                          break;
b4ed6328b93d23 Boris Brezillon 2020-05-01  279          }
b4ed6328b93d23 Boris Brezillon 2020-05-01  280  
b4ed6328b93d23 Boris Brezillon 2020-05-01  281          /* Re-assert the CE 
pin. */
b4ed6328b93d23 Boris Brezillon 2020-05-01  282          writeb(CS_NAND_CTL_CE, 
cs553x->mmio + MM_NAND_CTL);
b4ed6328b93d23 Boris Brezillon 2020-05-01  283  
b4ed6328b93d23 Boris Brezillon 2020-05-01 @284          return ret;
b4ed6328b93d23 Boris Brezillon 2020-05-01  285  }
b4ed6328b93d23 Boris Brezillon 2020-05-01  286  

---
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