* [dpdk-dev] [PATCH] igb_uio: remove compilation warning on arm64 kernel
@ 2017-10-08 9:17 Hemant Agrawal
2017-10-08 10:59 ` santosh
0 siblings, 1 reply; 3+ messages in thread
From: Hemant Agrawal @ 2017-10-08 9:17 UTC (permalink / raw)
To: dev; +Cc: ferruh.yigit
IGB_UIO compilation recently got enabled for ARM64 by default
The igb_uio compilation against ARM64 based stock 4.x (e.g. 4.13)
kernel is giving compilation warnings:
igb_uio.c: In function ‘igbuio_pci_irqcontrol’:
igb_uio.c:115:25: error: implicit declaration of function
‘irq_get_irq_dat ’ [-Werror=implicit-function-declaration]
struct irq_data *irq = irq_get_irq_data(udev->info.irq);
^
igb_uio.c:115:25: error: initialization makes pointer from integer without
a cast [-Werror=int-conversion]
Fixes: d196343a258e ("igb_uio: use kernel functions for masking MSI-X")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
index a440924..da71e05 100644
--- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
+++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
@@ -29,6 +29,7 @@
#include <linux/pci.h>
#include <linux/uio_driver.h>
#include <linux/io.h>
+#include <linux/irq.h>
#include <linux/msi.h>
#include <linux/version.h>
#include <linux/slab.h>
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] igb_uio: remove compilation warning on arm64 kernel
2017-10-08 9:17 [dpdk-dev] [PATCH] igb_uio: remove compilation warning on arm64 kernel Hemant Agrawal
@ 2017-10-08 10:59 ` santosh
2017-10-08 15:19 ` Thomas Monjalon
0 siblings, 1 reply; 3+ messages in thread
From: santosh @ 2017-10-08 10:59 UTC (permalink / raw)
To: Hemant Agrawal, dev; +Cc: ferruh.yigit
On Sunday 08 October 2017 02:47 PM, Hemant Agrawal wrote:
> IGB_UIO compilation recently got enabled for ARM64 by default
>
> The igb_uio compilation against ARM64 based stock 4.x (e.g. 4.13)
> kernel is giving compilation warnings:
>
> igb_uio.c: In function ‘igbuio_pci_irqcontrol’:
> igb_uio.c:115:25: error: implicit declaration of function
> ‘irq_get_irq_dat ’ [-Werror=implicit-function-declaration]
> struct irq_data *irq = irq_get_irq_data(udev->info.irq);
> ^
> igb_uio.c:115:25: error: initialization makes pointer from integer without
> a cast [-Werror=int-conversion]
>
> Fixes: d196343a258e ("igb_uio: use kernel functions for masking MSI-X")
> Cc: stable@dpdk.org
>
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> ---
Breaks thunderx too.
Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
and
Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] igb_uio: remove compilation warning on arm64 kernel
2017-10-08 10:59 ` santosh
@ 2017-10-08 15:19 ` Thomas Monjalon
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2017-10-08 15:19 UTC (permalink / raw)
To: Hemant Agrawal; +Cc: dev, santosh, ferruh.yigit
08/10/2017 12:59, santosh:
>
> On Sunday 08 October 2017 02:47 PM, Hemant Agrawal wrote:
> > IGB_UIO compilation recently got enabled for ARM64 by default
> >
> > The igb_uio compilation against ARM64 based stock 4.x (e.g. 4.13)
> > kernel is giving compilation warnings:
> >
> > igb_uio.c: In function ‘igbuio_pci_irqcontrol’:
> > igb_uio.c:115:25: error: implicit declaration of function
> > ‘irq_get_irq_dat ’ [-Werror=implicit-function-declaration]
> > struct irq_data *irq = irq_get_irq_data(udev->info.irq);
> > ^
> > igb_uio.c:115:25: error: initialization makes pointer from integer without
> > a cast [-Werror=int-conversion]
> >
> > Fixes: d196343a258e ("igb_uio: use kernel functions for masking MSI-X")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> > ---
>
> Breaks thunderx too.
>
> Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
> and
> Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Applied, thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-08 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08 9:17 [dpdk-dev] [PATCH] igb_uio: remove compilation warning on arm64 kernel Hemant Agrawal
2017-10-08 10:59 ` santosh
2017-10-08 15:19 ` Thomas Monjalon
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).