From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 6/7] passt: Don't warn on failed madvise() Date: Sat, 26 Feb 2022 23:56:45 +0100 Message-ID: <20220226225646.1905417-7-sbrivio@redhat.com> In-Reply-To: <20220226225646.1905417-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1045116241186415787==" --===============1045116241186415787== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit A kernel might not be configured with CONFIG_TRANSPARENT_HUGEPAGE, especially on embedded systems. Ignore the error, it doesn't affect functionality. Signed-off-by: Stefano Brivio --- passt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/passt.c b/passt.c index 038d50a..22934a2 100644 --- a/passt.c +++ b/passt.c @@ -339,8 +339,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - if (madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE)) - perror("madvise"); + madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE); __openlog(log_name, 0, LOG_DAEMON); -- 2.34.1 --===============1045116241186415787==--