From: kbuild test robot <lkp@intel.com>
To: Peng Hao <peng.hao2@zte.com.cn>
Cc: kbuild-all@01.org, robh+dt@kernel.org, mark.rutland@arm.com,
arnd@arndb.de, gregkh@linuxfoundation.org, andy@infradead.org,
dvhart@infradead.org, linux-kernel@vger.kernel.org,
platform-driver-x86@vger.kernel.org, hutao@cn.fujitsu.com,
linux-doc@vger.kernel.org, Peng Hao <peng.hao2@zte.com.cn>
Subject: Re: [PATCH V6 2/8] misc/pvpanic: simplify the code using acpi_dev_resource_io
Date: Fri, 2 Nov 2018 17:29:35 +0800 [thread overview]
Message-ID: <201811021758.chvNkXVN%fengguang.wu@intel.com> (raw)
In-Reply-To: <1541163378-54047-2-git-send-email-peng.hao2@zte.com.cn>
[-- Attachment #1: Type: text/plain, Size: 6899 bytes --]
Hi Peng,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.19 next-20181102]
[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/Peng-Hao/pvpanic-move-pvpanic-to-misc-as-common-driver/20181102-124907
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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=7.2.0 make.cross ARCH=sh
All errors (new ones prefixed by >>):
drivers//misc/pvpanic.c:36:36: error: array type has incomplete element type 'struct acpi_device_id'
static const struct acpi_device_id pvpanic_device_ids[] = {
^~~~~~~~~~~~~~~~~~
drivers//misc/pvpanic.c:46:15: error: variable 'pvpanic_driver' has initializer but incomplete type
static struct acpi_driver pvpanic_driver = {
^~~~~~~~~~~
drivers//misc/pvpanic.c:47:3: error: 'struct acpi_driver' has no member named 'name'
.name = "pvpanic",
^~~~
drivers//misc/pvpanic.c:47:11: warning: excess elements in struct initializer
.name = "pvpanic",
^~~~~~~~~
drivers//misc/pvpanic.c:47:11: note: (near initialization for 'pvpanic_driver')
drivers//misc/pvpanic.c:48:3: error: 'struct acpi_driver' has no member named 'class'
.class = "QEMU",
^~~~~
drivers//misc/pvpanic.c:48:11: warning: excess elements in struct initializer
.class = "QEMU",
^~~~~~
drivers//misc/pvpanic.c:48:11: note: (near initialization for 'pvpanic_driver')
drivers//misc/pvpanic.c:49:3: error: 'struct acpi_driver' has no member named 'ids'
.ids = pvpanic_device_ids,
^~~
drivers//misc/pvpanic.c:49:10: warning: excess elements in struct initializer
.ids = pvpanic_device_ids,
^~~~~~~~~~~~~~~~~~
drivers//misc/pvpanic.c:49:10: note: (near initialization for 'pvpanic_driver')
drivers//misc/pvpanic.c:50:3: error: 'struct acpi_driver' has no member named 'ops'
.ops = {
^~~
drivers//misc/pvpanic.c:50:10: error: extra brace group at end of initializer
.ops = {
^
drivers//misc/pvpanic.c:50:10: note: (near initialization for 'pvpanic_driver')
drivers//misc/pvpanic.c:50:10: warning: excess elements in struct initializer
drivers//misc/pvpanic.c:50:10: note: (near initialization for 'pvpanic_driver')
drivers//misc/pvpanic.c:54:3: error: 'struct acpi_driver' has no member named 'owner'
.owner = THIS_MODULE,
^~~~~
In file included from include/linux/linkage.h:7:0,
from include/linux/kernel.h:7,
from drivers//misc/pvpanic.c:23:
include/linux/export.h:18:21: warning: excess elements in struct initializer
#define THIS_MODULE ((struct module *)0)
^
drivers//misc/pvpanic.c:54:11: note: in expansion of macro 'THIS_MODULE'
.owner = THIS_MODULE,
^~~~~~~~~~~
include/linux/export.h:18:21: note: (near initialization for 'pvpanic_driver')
#define THIS_MODULE ((struct module *)0)
^
drivers//misc/pvpanic.c:54:11: note: in expansion of macro 'THIS_MODULE'
.owner = THIS_MODULE,
^~~~~~~~~~~
drivers//misc/pvpanic.c: In function 'pvpanic_send_event':
drivers//misc/pvpanic.c:60:2: error: implicit declaration of function 'outb' [-Werror=implicit-function-declaration]
outb(event, port);
^~~~
drivers//misc/pvpanic.c: In function 'pvpanic_walk_resources':
>> drivers//misc/pvpanic.c:82:6: error: implicit declaration of function 'acpi_dev_resource_io'; did you mean 'acpi_walk_resources'? [-Werror=implicit-function-declaration]
if (acpi_dev_resource_io(res, &r)) {
^~~~~~~~~~~~~~~~~~~~
acpi_walk_resources
drivers//misc/pvpanic.c: In function 'pvpanic_add':
drivers//misc/pvpanic.c:94:8: error: implicit declaration of function 'acpi_bus_get_status'; did you mean 'acpi_get_gpe_status'? [-Werror=implicit-function-declaration]
ret = acpi_bus_get_status(device);
^~~~~~~~~~~~~~~~~~~
acpi_get_gpe_status
drivers//misc/pvpanic.c:98:13: error: dereferencing pointer to incomplete type 'struct acpi_device'
if (!device->status.enabled || !device->status.functional)
^~
drivers//misc/pvpanic.c: At top level:
drivers//misc/pvpanic.c:121:1: warning: data definition has no type or storage class
module_acpi_driver(pvpanic_driver);
^~~~~~~~~~~~~~~~~~
drivers//misc/pvpanic.c:121:1: error: type defaults to 'int' in declaration of 'module_acpi_driver' [-Werror=implicit-int]
drivers//misc/pvpanic.c:121:1: warning: parameter names (without types) in function declaration
drivers//misc/pvpanic.c:46:27: error: storage size of 'pvpanic_driver' isn't known
static struct acpi_driver pvpanic_driver = {
^~~~~~~~~~~~~~
drivers//misc/pvpanic.c:46:27: warning: 'pvpanic_driver' defined but not used [-Wunused-variable]
drivers//misc/pvpanic.c:36:36: warning: 'pvpanic_device_ids' defined but not used [-Wunused-variable]
static const struct acpi_device_id pvpanic_device_ids[] = {
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +82 drivers//misc/pvpanic.c
45
46 static struct acpi_driver pvpanic_driver = {
47 .name = "pvpanic",
48 .class = "QEMU",
49 .ids = pvpanic_device_ids,
50 .ops = {
51 .add = pvpanic_add,
52 .remove = pvpanic_remove,
53 },
> 54 .owner = THIS_MODULE,
55 };
56
57 static void
58 pvpanic_send_event(unsigned int event)
59 {
60 outb(event, port);
61 }
62
63 static int
64 pvpanic_panic_notify(struct notifier_block *nb, unsigned long code,
65 void *unused)
66 {
67 pvpanic_send_event(PVPANIC_PANICKED);
68 return NOTIFY_DONE;
69 }
70
71 static struct notifier_block pvpanic_panic_nb = {
72 .notifier_call = pvpanic_panic_notify,
73 .priority = 1, /* let this called before broken drm_fb_helper */
74 };
75
76
77 static acpi_status
78 pvpanic_walk_resources(struct acpi_resource *res, void *context)
79 {
80 struct resource r;
81
> 82 if (acpi_dev_resource_io(res, &r)) {
83 port = r.start;
84 return AE_OK;
85 }
86
87 return AE_ERROR;
88 }
89
---
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: 50483 bytes --]
next prev parent reply other threads:[~2018-11-02 9:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 12:56 [PATCH V6 1/8] pvpanic: move pvpanic to misc as common driver Peng Hao
2018-11-02 6:42 ` kbuild test robot
2018-11-02 7:39 ` kbuild test robot
2018-11-02 9:33 ` Andy Shevchenko
2018-11-02 12:56 ` [PATCH V6 2/8] misc/pvpanic: simplify the code using acpi_dev_resource_io Peng Hao
2018-11-02 9:29 ` kbuild test robot [this message]
2018-11-02 12:56 ` [PATCH V6 3/8] misc/pvpanic: add MMIO support Peng Hao
2018-11-02 8:28 ` kbuild test robot
2018-11-02 9:37 ` Andy Shevchenko
[not found] ` <201811031027242806354@zte.com.cn>
2018-11-03 15:51 ` Andy Shevchenko
2018-11-02 12:56 ` [PATCH V6 4/8] dt-bindings: misc/pvpanic: add document for pvpanic-mmio Peng Hao
2018-11-02 12:56 ` [PATCH V6 5/8] misc/pvpanic: add support to get pvpanic device info by FDT Peng Hao
2018-11-02 9:39 ` Andy Shevchenko
2018-11-02 12:56 ` [PATCH V6 6/8] misc/pvpanic: remove unnecessary header file Peng Hao
2018-11-02 12:56 ` [PATCH V6 7/8] misc/pvpanic: convert to SPDX license tags Peng Hao
2018-11-02 12:56 ` [PATCH V6 8/8] misc/pvpanic: remove a redundant comma Peng Hao
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=201811021758.chvNkXVN%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=andy@infradead.org \
--cc=arnd@arndb.de \
--cc=dvhart@infradead.org \
--cc=gregkh@linuxfoundation.org \
--cc=hutao@cn.fujitsu.com \
--cc=kbuild-all@01.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=peng.hao2@zte.com.cn \
--cc=platform-driver-x86@vger.kernel.org \
--cc=robh+dt@kernel.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 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®