From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: thomas@monjalon.net, bruce.richardson@intel.com, stable@dpdk.org,
John McNamara <john.mcnamara@intel.com>,
Tomasz Kulasek <tomaszx.kulasek@intel.com>,
Ian Betts <ian.betts@intel.com>
Subject: [dpdk-stable] [PATCH v3 08/11] examples/performance-thread: fix build with pkg-config
Date: Sat, 14 Nov 2020 10:05:30 +0100 [thread overview]
Message-ID: <20201114090533.6059-9-david.marchand@redhat.com> (raw)
In-Reply-To: <20201114090533.6059-1-david.marchand@redhat.com>
main.c: In function ‘lthread_tx’:
main.c:2091:25: error: implicit declaration of function ‘sched_getcpu’;
did you mean ‘sched_getparam’? [-Werror=implicit-function-declaration]
2091 | tx_conf->conf.cpu_id = sched_getcpu();
| ^~~~~~~~~~~~
| sched_getparam
cc1: all warnings being treated as errors
Explicitly pass _GNU_SOURCE and include missing header (rather than
rely on automagic inclusion from other system headers).
Fixes: d48415e1fee3 ("examples/performance-thread: add l3fwd-thread app")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
examples/performance-thread/l3fwd-thread/main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c
index 7bf61db6be..4d82fb82ef 100644
--- a/examples/performance-thread/l3fwd-thread/main.c
+++ b/examples/performance-thread/l3fwd-thread/main.c
@@ -2,6 +2,10 @@
* Copyright(c) 2010-2016 Intel Corporation
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@ -12,6 +16,7 @@
#include <stdarg.h>
#include <errno.h>
#include <getopt.h>
+#include <sched.h>
#include <rte_common.h>
#include <rte_vect.h>
--
2.23.0
next prev parent reply other threads:[~2020-11-14 9:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20201110151219.4893-1-david.marchand@redhat.com>
2020-11-10 15:12 ` [dpdk-stable] [PATCH 01/10] examples/fips_validation: " David Marchand
2020-11-10 15:12 ` [dpdk-stable] [PATCH 02/10] examples/ipsec-gw: " David Marchand
2020-11-10 15:12 ` [dpdk-stable] [PATCH 03/10] examples/kni: " David Marchand
2020-11-10 15:12 ` [dpdk-stable] [PATCH 06/10] examples/ntb: fix clean target David Marchand
2020-11-12 1:30 ` Li, Xiaoyun
2020-11-10 15:12 ` [dpdk-stable] [PATCH 08/10] examples/rxtx_callbacks: fix build with pkg-config David Marchand
[not found] ` <20201113122430.25354-1-david.marchand@redhat.com>
2020-11-13 12:24 ` [dpdk-stable] [PATCH v2 01/11] examples/fips_validation: " David Marchand
2020-11-13 12:24 ` [dpdk-stable] [PATCH v2 02/11] examples/ipsec-gw: " David Marchand
2020-11-16 4:16 ` [dpdk-stable] [EXT] " Anoob Joseph
2020-11-13 12:24 ` [dpdk-stable] [PATCH v2 03/11] examples/kni: " David Marchand
2020-11-13 12:24 ` [dpdk-stable] [PATCH v2 06/11] examples/ntb: fix clean target David Marchand
2020-11-13 12:24 ` [dpdk-stable] [PATCH v2 07/11] examples/performance-thread: fix build with pkg-config David Marchand
2020-11-13 12:24 ` [dpdk-stable] [PATCH v2 09/11] examples/rxtx_callbacks: " David Marchand
[not found] ` <20201114090533.6059-1-david.marchand@redhat.com>
2020-11-14 9:05 ` [dpdk-stable] [PATCH v3 01/11] examples/fips_validation: " David Marchand
2020-11-14 9:05 ` [dpdk-stable] [PATCH v3 02/11] examples/ipsec-gw: " David Marchand
2020-11-14 9:05 ` [dpdk-stable] [PATCH v3 03/11] examples/kni: " David Marchand
2020-11-14 9:05 ` [dpdk-stable] [PATCH v3 07/11] examples/ntb: fix clean target David Marchand
2020-11-14 9:05 ` David Marchand [this message]
2020-11-14 9:05 ` [dpdk-stable] [PATCH v3 10/11] examples/rxtx_callbacks: fix build with pkg-config David Marchand
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=20201114090533.6059-9-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=ian.betts@intel.com \
--cc=john.mcnamara@intel.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
--cc=tomaszx.kulasek@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;
as well as URLs for NNTP newsgroup(s).