Re: [PATCH] UBI: add debugfs file for tracking PEB state
From: kbuild test robot
Date: Mon Sep 19 2016 - 15:43:05 EST
Hi Ben,
[auto build test WARNING on mtd/master]
[also build test WARNING on v4.8-rc7 next-20160919]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]
url: https://github.com/0day-ci/linux/commits/Zach-Brown/UBI-add-debugfs-file-for-tracking-PEB-state/20160920-025147
base: git://git.infradead.org/linux-mtd.git master
config: x86_64-randconfig-i0-201638 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/mtd/ubi/debug.c: In function 'eraseblk_count_open':
>> drivers/mtd/ubi/debug.c:515:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
s->private = ubi_get_device((int)inode->i_private);
^
vim +515 drivers/mtd/ubi/debug.c
499 .start = eraseblk_count_seq_start,
500 .next = eraseblk_count_seq_next,
501 .stop = eraseblk_count_seq_stop,
502 .show = eraseblk_count_seq_show
503 };
504
505 static int eraseblk_count_open(struct inode *inode, struct file *f)
506 {
507 struct seq_file *s;
508 int err;
509
510 err = seq_open(f, &eraseblk_count_seq_ops);
511 if (err)
512 return err;
513
514 s = f->private_data;
> 515 s->private = ubi_get_device((int)inode->i_private);
516
517 if (!s->private)
518 return -ENODEV;
519 else
520 return 0;
521 }
522
523 static int eraseblk_count_release(struct inode *inode, struct file *f)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip