linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 40iw: include linux/irq.h
@ 2018-03-13 12:06 Arnd Bergmann
  2018-03-13 13:20 ` Shiraz Saleem
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2018-03-13 12:06 UTC (permalink / raw)
  To: Faisal Latif, Shiraz Saleem, Doug Ledford, Jason Gunthorpe
  Cc: Arnd Bergmann, Artemy Kovalyov, linux-rdma, linux-kernel

We get a build failure on ARM unless the header is included explicitly:

drivers/infiniband/hw/i40iw/i40iw_verbs.c: In function 'i40iw_get_vector_affinity':
drivers/infiniband/hw/i40iw/i40iw_verbs.c:2747:9: error: implicit declaration of function 'irq_get_affinity_mask'; did you mean 'irq_create_affinity_masks'? [-Werror=implicit-function-declaration]
  return irq_get_affinity_mask(msix_vec->irq);
         ^~~~~~~~~~~~~~~~~~~~~
         irq_create_affinity_masks
drivers/infiniband/hw/i40iw/i40iw_verbs.c:2747:9: error: returning 'int' from a function with return type 'const struct cpumask *' makes pointer from integer without a cast [-Werror=int-conversion]
  return irq_get_affinity_mask(msix_vec->irq);

Fixes: 7e952b19eb63 ("i40iw: Implement get_vector_affinity API")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
index a51798578f27..f3af952402e9 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c
@@ -38,6 +38,7 @@
 #include <linux/highmem.h>
 #include <linux/time.h>
 #include <linux/hugetlb.h>
+#include <linux/irq.h>
 #include <asm/byteorder.h>
 #include <net/ip.h>
 #include <rdma/ib_verbs.h>
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] 40iw: include linux/irq.h
  2018-03-13 12:06 [PATCH] 40iw: include linux/irq.h Arnd Bergmann
@ 2018-03-13 13:20 ` Shiraz Saleem
  2018-03-14 20:10   ` Doug Ledford
  0 siblings, 1 reply; 3+ messages in thread
From: Shiraz Saleem @ 2018-03-13 13:20 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Faisal Latif, Doug Ledford, Jason Gunthorpe, Artemy Kovalyov,
	linux-rdma, linux-kernel

On Tue, Mar 13, 2018 at 01:06:20PM +0100, Arnd Bergmann wrote:
> We get a build failure on ARM unless the header is included explicitly:
> 
> drivers/infiniband/hw/i40iw/i40iw_verbs.c: In function 'i40iw_get_vector_affinity':
> drivers/infiniband/hw/i40iw/i40iw_verbs.c:2747:9: error: implicit declaration of function 'irq_get_affinity_mask'; did you mean 'irq_create_affinity_masks'? [-Werror=implicit-function-declaration]
>   return irq_get_affinity_mask(msix_vec->irq);
>          ^~~~~~~~~~~~~~~~~~~~~
>          irq_create_affinity_masks
> drivers/infiniband/hw/i40iw/i40iw_verbs.c:2747:9: error: returning 'int' from a function with return type 'const struct cpumask *' makes pointer from integer without a cast [-Werror=int-conversion]
>   return irq_get_affinity_mask(msix_vec->irq);
> 
> Fixes: 7e952b19eb63 ("i40iw: Implement get_vector_affinity API")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---

Looks like you beat me to it. 0-day caught this on rdma-nxt and I was going to send the fix today. 

Typo in the subject. 40iw --> i40iw. Othwerwise, looks good.

Thanks for the patch, Arnd!

Shiraz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 40iw: include linux/irq.h
  2018-03-13 13:20 ` Shiraz Saleem
@ 2018-03-14 20:10   ` Doug Ledford
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Ledford @ 2018-03-14 20:10 UTC (permalink / raw)
  To: Shiraz Saleem, Arnd Bergmann
  Cc: Faisal Latif, Jason Gunthorpe, Artemy Kovalyov, linux-rdma,
	linux-kernel

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

On Tue, 2018-03-13 at 08:20 -0500, Shiraz Saleem wrote:
> On Tue, Mar 13, 2018 at 01:06:20PM +0100, Arnd Bergmann wrote:
> > We get a build failure on ARM unless the header is included explicitly:
> > 
> > drivers/infiniband/hw/i40iw/i40iw_verbs.c: In function 'i40iw_get_vector_affinity':
> > drivers/infiniband/hw/i40iw/i40iw_verbs.c:2747:9: error: implicit declaration of function 'irq_get_affinity_mask'; did you mean 'irq_create_affinity_masks'? [-Werror=implicit-function-declaration]
> >   return irq_get_affinity_mask(msix_vec->irq);
> >          ^~~~~~~~~~~~~~~~~~~~~
> >          irq_create_affinity_masks
> > drivers/infiniband/hw/i40iw/i40iw_verbs.c:2747:9: error: returning 'int' from a function with return type 'const struct cpumask *' makes pointer from integer without a cast [-Werror=int-conversion]
> >   return irq_get_affinity_mask(msix_vec->irq);
> > 
> > Fixes: 7e952b19eb63 ("i40iw: Implement get_vector_affinity API")
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> 
> Looks like you beat me to it. 0-day caught this on rdma-nxt and I was going to send the fix today. 
> 
> Typo in the subject. 40iw --> i40iw. Othwerwise, looks good.
> 
> Thanks for the patch, Arnd!
> 
> Shiraz
> 

Thanks, applied.

-- 
Doug Ledford <dledford@redhat.com>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-14 20:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-13 12:06 [PATCH] 40iw: include linux/irq.h Arnd Bergmann
2018-03-13 13:20 ` Shiraz Saleem
2018-03-14 20:10   ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).