All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [kees:kspp/uninit/macro 15/16] drivers/ide/ide-sysfs.c:142 ide_sysfs_register_port() error: uninitialized symbol 'rc'.
Date: Sun, 21 Jun 2020 09:01:06 +0800	[thread overview]
Message-ID: <202006210957.rP7iCPlO%lkp@intel.com> (raw)

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

                 reply	other threads:[~2020-06-21  1:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202006210957.rP7iCPlO%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.