All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org
Subject: [intel-linux-intel-lts:5.4/yocto 415/1142] drivers/misc/xlink-usb/local_host/u_xlink.c:1002 vpu_read_swid() error: uninitialized symbol 'BUF4'.
Date: Fri, 11 Dec 2020 11:34:08 +0300	[thread overview]
Message-ID: <20201211083408.GQ2767@kadam> (raw)

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

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791 [415/1142] xlink-usb: XLink USB Remote and Local Host driver
config: i386-randconfig-m021-20201211 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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>

smatch warnings:
drivers/misc/xlink-usb/local_host/u_xlink.c:1002 vpu_read_swid() error: uninitialized symbol 'BUF4'.

vim +/BUF4 +1002 drivers/misc/xlink-usb/local_host/u_xlink.c

5e9e6d86fe729c Lai Jun Ann 2020-07-03   987  int *vpu_read_swid(void *data)
5e9e6d86fe729c Lai Jun Ann 2020-07-03   988  {
5e9e6d86fe729c Lai Jun Ann 2020-07-03   989  	struct gs_port *port;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   990  
5e9e6d86fe729c Lai Jun Ann 2020-07-03   991  	port = ports[PORT_NUM].port;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   992  	struct list_head	*pool = &port->read_pool;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   993  	int *BUF4;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   994  	struct usb_request	*req;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   995  
5e9e6d86fe729c Lai Jun Ann 2020-07-03   996  	while (!list_empty(pool)) {
5e9e6d86fe729c Lai Jun Ann 2020-07-03   997  		req = list_entry(pool->next, struct usb_request, list);
5e9e6d86fe729c Lai Jun Ann 2020-07-03   998  		list_del(&req->list);
5e9e6d86fe729c Lai Jun Ann 2020-07-03   999  		BUF4 = req->buf;
5e9e6d86fe729c Lai Jun Ann 2020-07-03  1000  		break;
5e9e6d86fe729c Lai Jun Ann 2020-07-03  1001  	}
5e9e6d86fe729c Lai Jun Ann 2020-07-03 @1002  	return BUF4;
                                                ^^^^^^^^^^^
Can this be called when the pool list is empty?

5e9e6d86fe729c Lai Jun Ann 2020-07-03  1003  }

---
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: 28161 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild-all@lists.01.org
Subject: [intel-linux-intel-lts:5.4/yocto 415/1142] drivers/misc/xlink-usb/local_host/u_xlink.c:1002 vpu_read_swid() error: uninitialized symbol 'BUF4'.
Date: Fri, 11 Dec 2020 11:34:08 +0300	[thread overview]
Message-ID: <20201211083408.GQ2767@kadam> (raw)

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

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791 [415/1142] xlink-usb: XLink USB Remote and Local Host driver
config: i386-randconfig-m021-20201211 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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>

smatch warnings:
drivers/misc/xlink-usb/local_host/u_xlink.c:1002 vpu_read_swid() error: uninitialized symbol 'BUF4'.

vim +/BUF4 +1002 drivers/misc/xlink-usb/local_host/u_xlink.c

5e9e6d86fe729c Lai Jun Ann 2020-07-03   987  int *vpu_read_swid(void *data)
5e9e6d86fe729c Lai Jun Ann 2020-07-03   988  {
5e9e6d86fe729c Lai Jun Ann 2020-07-03   989  	struct gs_port *port;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   990  
5e9e6d86fe729c Lai Jun Ann 2020-07-03   991  	port = ports[PORT_NUM].port;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   992  	struct list_head	*pool = &port->read_pool;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   993  	int *BUF4;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   994  	struct usb_request	*req;
5e9e6d86fe729c Lai Jun Ann 2020-07-03   995  
5e9e6d86fe729c Lai Jun Ann 2020-07-03   996  	while (!list_empty(pool)) {
5e9e6d86fe729c Lai Jun Ann 2020-07-03   997  		req = list_entry(pool->next, struct usb_request, list);
5e9e6d86fe729c Lai Jun Ann 2020-07-03   998  		list_del(&req->list);
5e9e6d86fe729c Lai Jun Ann 2020-07-03   999  		BUF4 = req->buf;
5e9e6d86fe729c Lai Jun Ann 2020-07-03  1000  		break;
5e9e6d86fe729c Lai Jun Ann 2020-07-03  1001  	}
5e9e6d86fe729c Lai Jun Ann 2020-07-03 @1002  	return BUF4;
                                                ^^^^^^^^^^^
Can this be called when the pool list is empty?

5e9e6d86fe729c Lai Jun Ann 2020-07-03  1003  }

---
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: 28161 bytes --]

             reply	other threads:[~2020-12-11  8:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11  8:34 Dan Carpenter [this message]
2020-12-11  8:34 ` [intel-linux-intel-lts:5.4/yocto 415/1142] drivers/misc/xlink-usb/local_host/u_xlink.c:1002 vpu_read_swid() error: uninitialized symbol 'BUF4' Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2020-12-11  3:42 kernel test robot

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=20201211083408.GQ2767@kadam \
    --to=dan.carpenter@oracle.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.