From: kbuild test robot <lkp@intel.com>
To: Kangjie Lu <kjlu@umn.edu>
Cc: kbuild-all@01.org, kjlu@umn.edu, pakki001@umn.edu,
"Larry Finger" <Larry.Finger@lwfinger.net>,
"Florian Schilhabel" <florian.c.schilhabel@googlemail.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"André Lehmann" <lenneman@web.de>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rtl8712: add a check for the status of register_netdev
Date: Wed, 26 Dec 2018 10:29:00 +0800 [thread overview]
Message-ID: <201812261044.0OXSGo9i%fengguang.wu@intel.com> (raw)
In-Reply-To: <20181226013041.70740-1-kjlu@umn.edu>
[-- Attachment #1: Type: text/plain, Size: 3038 bytes --]
Hi Kangjie,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v4.20 next-20181224]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Kangjie-Lu/rtl8712-add-a-check-for-the-status-of-register_netdev/20181226-094828
config: nds32-allmodconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 6.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=6.4.0 make.cross ARCH=nds32
All errors (new ones prefixed by >>):
In file included from include/linux/usb/ch9.h:36:0,
from include/linux/usb.h:6,
from drivers/staging//rtl8712/hal_init.c:19:
drivers/staging//rtl8712/hal_init.c: In function 'rtl871x_load_fw_cb':
>> drivers/staging//rtl8712/hal_init.c:49:12: error: 'udev' undeclared (first use in this function)
dev_err(&udev->dev, "r8712u: Registering netdev failed\n");
^
include/linux/device.h:1453:11: note: in definition of macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~
drivers/staging//rtl8712/hal_init.c:49:12: note: each undeclared identifier is reported only once for each function it appears in
dev_err(&udev->dev, "r8712u: Registering netdev failed\n");
^
include/linux/device.h:1453:11: note: in definition of macro 'dev_err'
_dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~
vim +/udev +49 drivers/staging//rtl8712/hal_init.c
18
> 19 #include <linux/usb.h>
20 #include <linux/device.h>
21 #include <linux/usb/ch9.h>
22 #include <linux/firmware.h>
23 #include <linux/module.h>
24
25 #include "osdep_service.h"
26 #include "drv_types.h"
27 #include "usb_osintf.h"
28
29 #define FWBUFF_ALIGN_SZ 512
30 #define MAX_DUMP_FWSZ 49152 /*default = 49152 (48k)*/
31
32 static void rtl871x_load_fw_cb(const struct firmware *firmware, void *context)
33 {
34 struct _adapter *padapter = context;
35
36 complete(&padapter->rtl8712_fw_ready);
37 if (!firmware) {
38 struct usb_device *udev = padapter->dvobjpriv.pusbdev;
39 struct usb_interface *pusb_intf = padapter->pusb_intf;
40
41 dev_err(&udev->dev, "r8712u: Firmware request failed\n");
42 usb_put_dev(udev);
43 usb_set_intfdata(pusb_intf, NULL);
44 return;
45 }
46 padapter->fw = firmware;
47 /* firmware available - start netdev */
48 if (register_netdev(padapter->pnetdev))
> 49 dev_err(&udev->dev, "r8712u: Registering netdev failed\n");
50 }
51
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 48542 bytes --]
next prev parent reply other threads:[~2018-12-26 2:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-26 1:30 Kangjie Lu
2018-12-26 2:29 ` kbuild test robot [this message]
2018-12-26 2:31 ` kbuild 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=201812261044.0OXSGo9i%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Larry.Finger@lwfinger.net \
--cc=devel@driverdev.osuosl.org \
--cc=florian.c.schilhabel@googlemail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@01.org \
--cc=kjlu@umn.edu \
--cc=lenneman@web.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pakki001@umn.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®