dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] virtio: Fix compilation issue on freebsd
@ 2015-02-27  2:30 Ouyang Changchun
       [not found] ` <1425004210-4044-1-git-send-email-changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Ouyang Changchun @ 2015-02-27  2:30 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

This patch fixes the compilation issue on freebsd:

/root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c: In function 'virtio_resource_init':
/root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c:1071:56: error: unused parameter 'pci_dev' [-Werror=unused-parameter]  static int virtio_resource_init(struct rte_pci_device *pci_dev)
                                                        ^
cc1: all warnings being treated as errors

Signed-off-by: Changchun Ouyang <changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 lib/librte_pmd_virtio/virtio_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c
index 9eb0217..88ecd57 100644
--- a/lib/librte_pmd_virtio/virtio_ethdev.c
+++ b/lib/librte_pmd_virtio/virtio_ethdev.c
@@ -1068,7 +1068,7 @@ virtio_has_msix(const struct rte_pci_addr *loc __rte_unused)
 	return 0;
 }
 
-static int virtio_resource_init(struct rte_pci_device *pci_dev)
+static int virtio_resource_init(struct rte_pci_device *pci_dev __rte_unused)
 {
 	/* no setup required */
 	return 0;
-- 
1.8.4.2

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

* Re: [PATCH] virtio: Fix compilation issue on freebsd
       [not found] ` <1425004210-4044-1-git-send-email-changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2015-02-27  5:11   ` Liang, Cunming
       [not found]     ` <D0158A423229094DA7ABF71CF2FA0DA3118DF6F0-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Liang, Cunming @ 2015-02-27  5:11 UTC (permalink / raw)
  To: Ouyang, Changchun, dev-VfR2kkLFssw@public.gmane.org

Hi,

> -----Original Message-----
> From: Ouyang, Changchun
> Sent: Friday, February 27, 2015 10:30 AM
> To: dev-VfR2kkLFssw@public.gmane.org
> Cc: Liang, Cunming; Cao, Waterman; Ouyang, Changchun
> Subject: [PATCH] virtio: Fix compilation issue on freebsd
> 
> This patch fixes the compilation issue on freebsd:
> 
> /root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c: In function
> 'virtio_resource_init':
> /root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c:1071:56: error:
> unused parameter 'pci_dev' [-Werror=unused-parameter]  static int
> virtio_resource_init(struct rte_pci_device *pci_dev)
>                                                         ^
> cc1: all warnings being treated as errors
> 
> Signed-off-by: Changchun Ouyang <changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> ---
>  lib/librte_pmd_virtio/virtio_ethdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c
> b/lib/librte_pmd_virtio/virtio_ethdev.c
> index 9eb0217..88ecd57 100644
> --- a/lib/librte_pmd_virtio/virtio_ethdev.c
> +++ b/lib/librte_pmd_virtio/virtio_ethdev.c
> @@ -1068,7 +1068,7 @@ virtio_has_msix(const struct rte_pci_addr *loc
> __rte_unused)
>  	return 0;
>  }
> 
> -static int virtio_resource_init(struct rte_pci_device *pci_dev)
> +static int virtio_resource_init(struct rte_pci_device *pci_dev __rte_unused)
>  {
>  	/* no setup required */
>  	return 0;
> --
> 1.8.4.2

Acked-by:  Cunming Liang <cunming.liang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

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

* Re: [PATCH] virtio: Fix compilation issue on freebsd
       [not found]     ` <D0158A423229094DA7ABF71CF2FA0DA3118DF6F0-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2015-02-27 23:13       ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2015-02-27 23:13 UTC (permalink / raw)
  To: Ouyang, Changchun; +Cc: dev-VfR2kkLFssw

> > This patch fixes the compilation issue on freebsd:
> > 
> > /root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c: In function
> > 'virtio_resource_init':
> > /root/qwan/tmp/dpdk_org/lib/librte_pmd_virtio/virtio_ethdev.c:1071:56: error:
> > unused parameter 'pci_dev' [-Werror=unused-parameter]  static int
> > virtio_resource_init(struct rte_pci_device *pci_dev)
> >                                                         ^
> > cc1: all warnings being treated as errors
> > 
> > Signed-off-by: Changchun Ouyang <changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> 
> Acked-by:  Cunming Liang <cunming.liang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Applied, thanks

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

end of thread, other threads:[~2015-02-27 23:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27  2:30 [PATCH] virtio: Fix compilation issue on freebsd Ouyang Changchun
     [not found] ` <1425004210-4044-1-git-send-email-changchun.ouyang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-02-27  5:11   ` Liang, Cunming
     [not found]     ` <D0158A423229094DA7ABF71CF2FA0DA3118DF6F0-E2R4CRU6q/6iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-02-27 23:13       ` 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).