From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [intel-lts:5.4/preempt-rt 10119/19036] drivers/misc/xlink-usb/local_host/f_vpuusb.c:358:14: warning: 'data' is used uninitialized in this function
Date: Fri, 22 Oct 2021 19:16:46 +0800 [thread overview]
Message-ID: <202110221940.DJC4snmJ-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2881 bytes --]
Hi Lai,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: 646a89c49751509d6493602ca6df16e229574d24
commit: 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791 [10119/19036] xlink-usb: XLink USB Remote and Local Host driver
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/linux-intel-lts/commit/5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.4/preempt-rt
git checkout 5e9e6d86fe729cf81e8a0df5c53d326b9f2ec791
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/misc/xlink-usb/local_host/f_vpuusb.c:349:5: warning: no previous prototype for 'mxlk_trigger_reset' [-Wmissing-prototypes]
349 | int mxlk_trigger_reset(void *arg)
| ^~~~~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/f_vpuusb.c:377:5: warning: no previous prototype for 'vpu_setup' [-Wmissing-prototypes]
377 | int vpu_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
| ^~~~~~~~~
drivers/misc/xlink-usb/local_host/f_vpuusb.c:525:5: warning: no previous prototype for 'vpu_cdc_notify' [-Wmissing-prototypes]
525 | int vpu_cdc_notify(struct f_acm *acm, u8 type, u16 value,
| ^~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/f_vpuusb.c:562:5: warning: no previous prototype for 'vpu_notify_serial_state' [-Wmissing-prototypes]
562 | int vpu_notify_serial_state(struct f_acm *acm)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/xlink-usb/local_host/f_vpuusb.c: In function 'keembay_usb_irq_handler':
>> drivers/misc/xlink-usb/local_host/f_vpuusb.c:358:14: warning: 'data' is used uninitialized in this function [-Wuninitialized]
358 | int *data = vpu_read_swid(data);
| ^~~~~~~~~~~~~~~~~~~
vim +/data +358 drivers/misc/xlink-usb/local_host/f_vpuusb.c
354
355 int intr;
356 static irqreturn_t keembay_usb_irq_handler(int irq, void *arg)
357 {
> 358 int *data = vpu_read_swid(data);
359
360 if (data != 0) {
361 if (*(data) == 0)
362 mxlk_trigger_reset(arg);
363 else {
364 if (!intr) {
365 bus_num = *(data);
366 intr = 1;
367 } else {
368 dev_num = *(data);
369 intr = 0;
370 }
371 }
372 }
373
374 return IRQ_HANDLED;
375 }
376
---
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: 61088 bytes --]
reply other threads:[~2021-10-22 11:16 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=202110221940.DJC4snmJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@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.