DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/l3fwd-power: fix build with icc
@ 2018-10-26 22:00 Thomas Monjalon
  2018-10-26 22:13 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2018-10-26 22:00 UTC (permalink / raw)
  To: David Hunt; +Cc: dev, liang.j.ma, lei.a.yao, ferruh.yigit

main.c(376): error #592: variable "lcore_id" is used before its value is set
        RTE_SET_USED(lcore_id);
        ^

The variables were voided with RTE_SET_USED without an obvious reason.
Removing these voidings should avoid the icc error.

Fixes: a137d012 ("examples/l3fwd-power: support traffic pattern aware control")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 examples/l3fwd-power/main.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c
index c07eeff10..0b3f8fe61 100644
--- a/examples/l3fwd-power/main.c
+++ b/examples/l3fwd-power/main.c
@@ -373,10 +373,6 @@ signal_exit_now(int sigtype)
 	unsigned int portid;
 	int ret;
 
-	RTE_SET_USED(lcore_id);
-	RTE_SET_USED(portid);
-	RTE_SET_USED(ret);
-
 	if (sigtype == SIGINT) {
 		if (empty_poll_on)
 			empty_poll_stop = true;
-- 
2.19.0

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

* Re: [dpdk-dev] [PATCH] examples/l3fwd-power: fix build with icc
  2018-10-26 22:00 [dpdk-dev] [PATCH] examples/l3fwd-power: fix build with icc Thomas Monjalon
@ 2018-10-26 22:13 ` Ferruh Yigit
  2018-10-26 23:24   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2018-10-26 22:13 UTC (permalink / raw)
  To: Thomas Monjalon, David Hunt; +Cc: dev, liang.j.ma, lei.a.yao

On 10/26/2018 11:00 PM, Thomas Monjalon wrote:
> main.c(376): error #592: variable "lcore_id" is used before its value is set
>         RTE_SET_USED(lcore_id);
>         ^
> 
> The variables were voided with RTE_SET_USED without an obvious reason.
> Removing these voidings should avoid the icc error.
> 
> Fixes: a137d012 ("examples/l3fwd-power: support traffic pattern aware control")
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>

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

* Re: [dpdk-dev] [PATCH] examples/l3fwd-power: fix build with icc
  2018-10-26 22:13 ` Ferruh Yigit
@ 2018-10-26 23:24   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2018-10-26 23:24 UTC (permalink / raw)
  To: dev; +Cc: Ferruh Yigit, David Hunt, liang.j.ma, lei.a.yao

27/10/2018 00:13, Ferruh Yigit:
> On 10/26/2018 11:00 PM, Thomas Monjalon wrote:
> > main.c(376): error #592: variable "lcore_id" is used before its value is set
> >         RTE_SET_USED(lcore_id);
> >         ^
> > 
> > The variables were voided with RTE_SET_USED without an obvious reason.
> > Removing these voidings should avoid the icc error.
> > 
> > Fixes: a137d012 ("examples/l3fwd-power: support traffic pattern aware control")
> > 
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> 
> Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied

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

end of thread, other threads:[~2018-10-26 23:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-26 22:00 [dpdk-dev] [PATCH] examples/l3fwd-power: fix build with icc Thomas Monjalon
2018-10-26 22:13 ` Ferruh Yigit
2018-10-26 23:24   ` 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).