All of lore.kernel.org
 help / color / mirror / Atom feed
* [kees:kspp/uninit/macro 15/16] drivers/ide/ide-sysfs.c:142 ide_sysfs_register_port() error: uninitialized symbol 'rc'.
@ 2020-06-21  1:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-21  1:01 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2631 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Kees Cook <keescook@chromium.org>
CC: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git kspp/uninit/macro
head:   2d0e6f87039d3bbf4d54bf426ea7c51bb405b8cc
commit: 4ee42e96f8519aa948c3eebe14ad67b82c02a2c2 [15/16] treewide: Remove uninitialized_var() usage
:::::: branch date: 22 hours ago
:::::: commit date: 22 hours ago
config: x86_64-randconfig-m001-20200620 (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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
drivers/ide/ide-sysfs.c:142 ide_sysfs_register_port() error: uninitialized symbol 'rc'.
drivers/tty/cyclades.c:3805 cy_pci_probe() error: uninitialized symbol 'mailbox'.

Old smatch warnings:
drivers/tty/cyclades.c:3890 cy_pci_remove() warn: if statement not indented

# https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id=4ee42e96f8519aa948c3eebe14ad67b82c02a2c2
git remote add kees https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
git remote update kees
git checkout 4ee42e96f8519aa948c3eebe14ad67b82c02a2c2
vim +/rc +142 drivers/ide/ide-sysfs.c

ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  131  
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  132  int ide_sysfs_register_port(ide_hwif_t *hwif)
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  133  {
4ee42e96f8519a Kees Cook                 2020-06-03  134  	int i, rc;
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  135  
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  136  	for (i = 0; ide_port_attrs[i]; i++) {
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  137  		rc = device_create_file(hwif->portdev, ide_port_attrs[i]);
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  138  		if (rc)
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  139  			break;
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  140  	}
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02  141  
ebdab07dad3d3a Bartlomiej Zolnierkiewicz 2009-01-02 @142  	return rc;

:::::: The code at line 142 was first introduced by commit
:::::: ebdab07dad3d3a008e519b0a028e1e1ad5ecaef0 ide: move sysfs support to ide-sysfs.c

:::::: TO: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
:::::: CC: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32367 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-21  1:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21  1:01 [kees:kspp/uninit/macro 15/16] drivers/ide/ide-sysfs.c:142 ide_sysfs_register_port() error: uninitialized symbol 'rc' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.