From: kbuild test robot <lkp@intel.com>
To: Holger Dengler <dengler@linutronix.de>
Cc: kbuild-all@01.org, Lee Jones <lee.jones@linaro.org>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Vinod Koul <vinod.koul@intel.com>,
linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Sebastian Siewior <bigeasy@linutronix.de>,
Juergen Bubeck <bubeck@xkrug.com>,
Peter Mahler <mahler@xkrug.com>,
Holger Dengler <dengler@linutronix.de>,
Benedikt Spranger <b.spranger@linutronix.de>
Subject: Re: [PATCH 04/12] mfd: flexcard: add interrupt support
Date: Wed, 14 Dec 2016 10:47:31 +0800 [thread overview]
Message-ID: <201612141056.tpfStCdv%fengguang.wu@intel.com> (raw)
In-Reply-To: <1481674313-30378-5-git-send-email-dengler@linutronix.de>
[-- Attachment #1: Type: text/plain, Size: 9301 bytes --]
Hi Holger,
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.9]
[cannot apply to ljones-mfd/for-mfd-next next-20161213]
[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/Holger-Dengler/Eberspaecher-Flexcard-PMC-II-base-support/20161214-082350
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm
All error/warnings (new ones prefixed by >>):
drivers/mfd/flexcard_irq.c: In function 'flexcard_demux':
>> drivers/mfd/flexcard_irq.c:111:3: error: implicit declaration of function 'generic_handle_irq' [-Werror=implicit-function-declaration]
generic_handle_irq(cur);
^~~~~~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_ack':
>> drivers/mfd/flexcard_irq.c:119:33: error: implicit declaration of function 'irq_data_get_irq_chip_data' [-Werror=implicit-function-declaration]
struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/mfd/flexcard_irq.c:119:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
>> drivers/mfd/flexcard_irq.c:120:51: error: dereferencing pointer to incomplete type 'struct irq_data'
const struct fc_irq_tab *tp = &flexcard_irq_tab[d->hwirq];
^~
drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_mask':
drivers/mfd/flexcard_irq.c:128:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_unmask':
drivers/mfd/flexcard_irq.c:141:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c: At top level:
>> drivers/mfd/flexcard_irq.c:175:15: error: variable 'flexcard_irq_chip' has initializer but incomplete type
static struct irq_chip flexcard_irq_chip = {
^~~~~~~~
>> drivers/mfd/flexcard_irq.c:176:2: error: unknown field 'name' specified in initializer
.name = "flexcard_irq",
^
>> drivers/mfd/flexcard_irq.c:176:11: warning: excess elements in struct initializer
.name = "flexcard_irq",
^~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c:176:11: note: (near initialization for 'flexcard_irq_chip')
>> drivers/mfd/flexcard_irq.c:177:2: error: unknown field 'irq_ack' specified in initializer
.irq_ack = flexcard_irq_ack,
^
drivers/mfd/flexcard_irq.c:177:13: warning: excess elements in struct initializer
.irq_ack = flexcard_irq_ack,
^~~~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c:177:13: note: (near initialization for 'flexcard_irq_chip')
>> drivers/mfd/flexcard_irq.c:178:2: error: unknown field 'irq_mask' specified in initializer
.irq_mask = flexcard_irq_mask,
^
drivers/mfd/flexcard_irq.c:178:14: warning: excess elements in struct initializer
.irq_mask = flexcard_irq_mask,
^~~~~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c:178:14: note: (near initialization for 'flexcard_irq_chip')
>> drivers/mfd/flexcard_irq.c:179:2: error: unknown field 'irq_unmask' specified in initializer
.irq_unmask = flexcard_irq_unmask,
^
drivers/mfd/flexcard_irq.c:179:16: warning: excess elements in struct initializer
.irq_unmask = flexcard_irq_unmask,
^~~~~~~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c:179:16: note: (near initialization for 'flexcard_irq_chip')
drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_domain_map':
>> drivers/mfd/flexcard_irq.c:187:2: error: implicit declaration of function 'irq_set_chip_and_handler_name' [-Werror=implicit-function-declaration]
irq_set_chip_and_handler_name(irq, &flexcard_irq_chip,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/mfd/flexcard_irq.c:188:11: error: 'handle_level_irq' undeclared (first use in this function)
handle_level_irq, "flexcard");
^~~~~~~~~~~~~~~~
drivers/mfd/flexcard_irq.c:188:11: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/mfd/flexcard_irq.c:189:2: error: implicit declaration of function 'irq_set_chip_data' [-Werror=implicit-function-declaration]
irq_set_chip_data(irq, priv);
^~~~~~~~~~~~~~~~~
>> drivers/mfd/flexcard_irq.c:190:2: error: implicit declaration of function 'irq_modify_status' [-Werror=implicit-function-declaration]
irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
^~~~~~~~~~~~~~~~~
>> drivers/mfd/flexcard_irq.c:190:25: error: 'IRQ_NOREQUEST' undeclared (first use in this function)
irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
^~~~~~~~~~~~~
>> drivers/mfd/flexcard_irq.c:190:41: error: 'IRQ_NOAUTOEN' undeclared (first use in this function)
irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
^~~~~~~~~~~~
>> drivers/mfd/flexcard_irq.c:190:55: error: 'IRQ_NOPROBE' undeclared (first use in this function)
irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
^~~~~~~~~~~
drivers/mfd/flexcard_irq.c: At top level:
>> drivers/mfd/flexcard_irq.c:175:24: error: storage size of 'flexcard_irq_chip' isn't known
static struct irq_chip flexcard_irq_chip = {
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/generic_handle_irq +111 drivers/mfd/flexcard_irq.c
105
106 stat = readl(&priv->bar0->conf.irs) & VALID_DEVIRQ_MSK;
107 while (stat) {
108 slot = __ffs(stat);
109 stat &= (1 << slot);
110 cur = irq_linear_revmap(priv->irq_domain, slot);
> 111 generic_handle_irq(cur);
112 ret = IRQ_HANDLED;
113 }
114 return ret;
115 }
116
117 static void flexcard_irq_ack(struct irq_data *d)
118 {
> 119 struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
> 120 const struct fc_irq_tab *tp = &flexcard_irq_tab[d->hwirq];
121 void __iomem *p = (void __iomem *)priv->bar0 + tp->ackoffs;
122
123 writel(tp->ack, p);
124 }
125
126 static void flexcard_irq_mask(struct irq_data *d)
127 {
> 128 struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
129 const struct fc_irq_tab *tp = &flexcard_irq_tab[d->hwirq];
130 void __iomem *p = (void __iomem *)priv->bar0 + tp->mskoffs;
131 u32 *msk = (void *)priv + tp->mskcache;
132
133 raw_spin_lock(&priv->irq_lock);
134 *msk &= ~tp->msk;
135 writel(*msk, p);
136 raw_spin_unlock(&priv->irq_lock);
137 }
138
139 static void flexcard_irq_unmask(struct irq_data *d)
140 {
> 141 struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
142 const struct fc_irq_tab *tp = &flexcard_irq_tab[d->hwirq];
143 void __iomem *p = (void __iomem *)priv->bar0 + tp->mskoffs;
144 u32 *msk = (void *)priv + tp->mskcache;
145
146 raw_spin_lock(&priv->irq_lock);
147 *msk |= tp->msk;
148 writel(*msk, p);
149 raw_spin_unlock(&priv->irq_lock);
150 }
151
152 static int flexcard_req_irq(struct pci_dev *pdev)
153 {
154 struct flexcard_device *priv = pci_get_drvdata(pdev);
155 int ret;
156
157 ret = pci_enable_msi(pdev);
158 if (ret) {
159 dev_warn(&pdev->dev, "could not enable MSI\n");
160 /* shared PCI irq fallback */
161 return request_irq(pdev->irq, flexcard_demux,
162 IRQF_NO_THREAD | IRQF_SHARED,
163 "flexcard", priv);
164 }
165 dev_info(&pdev->dev, "MSI enabled\n");
166
167 ret = request_irq(pdev->irq, flexcard_demux, IRQF_NO_THREAD,
168 "flexcard", priv);
169 if (ret)
170 pci_disable_msi(pdev);
171
172 return ret;
173 }
174
> 175 static struct irq_chip flexcard_irq_chip = {
> 176 .name = "flexcard_irq",
> 177 .irq_ack = flexcard_irq_ack,
> 178 .irq_mask = flexcard_irq_mask,
> 179 .irq_unmask = flexcard_irq_unmask,
180 };
181
182 static int flexcard_irq_domain_map(struct irq_domain *d, unsigned int irq,
183 irq_hw_number_t hw)
184 {
185 struct flexcard_device *priv = d->host_data;
186
> 187 irq_set_chip_and_handler_name(irq, &flexcard_irq_chip,
> 188 handle_level_irq, "flexcard");
> 189 irq_set_chip_data(irq, priv);
> 190 irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
191
192 return 0;
193 }
---
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: 59495 bytes --]
next prev parent reply other threads:[~2016-12-14 2:48 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-14 0:11 [PATCH 00/12] Eberspaecher Flexcard PMC II base support Holger Dengler
2016-12-14 0:11 ` [PATCH 01/12] mfd: Eberspaecher Flexcard PMC II Carrier Board support Holger Dengler
2016-12-14 8:38 ` Arnd Bergmann
2017-01-05 13:52 ` Holger Dengler
2016-12-14 0:11 ` [PATCH 02/12] mfd: flexcard: add flexcard misc mfd-cell Holger Dengler
2016-12-14 0:11 ` [PATCH 03/12] mfd: flexcard: add posix clock mfd-cell Holger Dengler
2016-12-14 0:11 ` [PATCH 04/12] mfd: flexcard: add interrupt support Holger Dengler
2016-12-14 2:47 ` kbuild test robot [this message]
2016-12-14 3:37 ` kbuild test robot
2016-12-14 0:11 ` [PATCH 05/12] mfd: flexcard: add DMA interrupts Holger Dengler
2016-12-14 3:08 ` kbuild test robot
2016-12-14 0:11 ` [PATCH 06/12] mfd: flexcard: add DMA device Holger Dengler
2016-12-14 0:11 ` [PATCH 07/12] mfd: flexcard: add UIO IRQ devices Holger Dengler
2016-12-14 0:11 ` [PATCH 08/12] misc: Flexcard misc device support Holger Dengler
2016-12-14 8:42 ` Arnd Bergmann
2016-12-14 9:28 ` Holger Dengler
2017-01-10 16:59 ` Greg Kroah-Hartman
2016-12-14 0:11 ` [PATCH 09/12] misc: flexcard: add device attributes Holger Dengler
2016-12-14 1:33 ` kbuild test robot
2017-01-10 16:58 ` Greg Kroah-Hartman
2016-12-14 0:11 ` [PATCH 10/12] misc: Flexcard basic timestamp counter support Holger Dengler
2016-12-14 3:28 ` kbuild test robot
2016-12-14 8:46 ` Arnd Bergmann
2016-12-14 9:16 ` Thomas Gleixner
2016-12-14 0:11 ` [PATCH 11/12] misc: flexcard: Support timestamp trigger selection Holger Dengler
2016-12-14 0:11 ` [PATCH 12/12] dma: Flexcard DMA ringbuffer demux driver Holger Dengler
2016-12-14 1:54 ` kbuild test robot
2016-12-15 4:38 ` Vinod Koul
2016-12-19 10:54 ` Holger Dengler
2017-01-04 9:43 ` [PATCH 00/12] Eberspaecher Flexcard PMC II base support Lee Jones
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=201612141056.tpfStCdv%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=b.spranger@linutronix.de \
--cc=bigeasy@linutronix.de \
--cc=bubeck@xkrug.com \
--cc=dengler@linutronix.de \
--cc=dmaengine@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@01.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mahler@xkrug.com \
--cc=tglx@linutronix.de \
--cc=vinod.koul@intel.com \
/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®