From patchwork Wed Jun 19 07:14:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Wang X-Patchwork-Id: 1118501 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45TGR35lYjz9sN6 for ; Wed, 19 Jun 2019 17:14:22 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 0E4003EA8DE for ; Wed, 19 Jun 2019 09:14:13 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) by picard.linux.it (Postfix) with ESMTP id CDC5F3EA63C for ; Wed, 19 Jun 2019 09:14:10 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 324031A01066 for ; Wed, 19 Jun 2019 09:14:09 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B07A13082E72 for ; Wed, 19 Jun 2019 07:14:08 +0000 (UTC) Received: from dhcp-3-207.nay.redhat.com (dhcp-3-207.nay.redhat.com [10.66.3.207]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E9BB183F0; Wed, 19 Jun 2019 07:14:07 +0000 (UTC) From: Li Wang To: jstancek@redhat.com Date: Wed, 19 Jun 2019 15:14:01 +0800 Message-Id: <20190619071401.18509-1-liwang@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 19 Jun 2019 07:14:08 +0000 (UTC) X-Virus-Scanned: clamav-milter 0.99.2 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-3.smtp.seeweb.it Cc: Ping Fang , ltp@lists.linux.it Subject: [LTP] [PATCH] lib: add include config.h in cloner.c X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This is a follow fix for commit f6164ffc2804b2a68218, otherwise clone08 failed with ENOSYS error: clone08.c:81: INFO: running CLONE_PARENT clone08.c:104: BROK: CLONE_PARENT clone() failed: ENOSYS tst_test.c:357: BROK: Reported by child (2785) That becuase CLONE_SUPPORTS_7_ARGS macro is included in config.h, without this header file, the ltp_clone7() will fall into ENOSYS branch. Reported-by: Ping Fang Signed-off-by: Li Wang --- lib/cloner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cloner.c b/lib/cloner.c index 8469745d0..11401f230 100644 --- a/lib/cloner.c +++ b/lib/cloner.c @@ -28,6 +28,7 @@ #include #include #include +#include "config.h" #include "tst_clone.h" #undef clone /* we want to use clone() */