Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2091581ybp; Thu, 10 Oct 2019 02:02:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG4UEKZ2/WqeAiG3LgjXZ4ns8jbXx3RbJKdvqOC/OVWZ+GrA0Xf5jjNsA13k14NPFal2T4 X-Received: by 2002:a17:906:3b45:: with SMTP id h5mr7105530ejf.200.1570698167528; Thu, 10 Oct 2019 02:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570698167; cv=none; d=google.com; s=arc-20160816; b=TEh9T1YT0RRu6gZ62AznaIf3xvdIfhWIHTSRjfy1PGeYj6UeCerFZ3K6PVamrOcxsR 9fvedMYSSg1W1i8CwfklX9NjMYgkfU5w7Ux7ZlElKyNK7ncLCSkub9PnQChyvC2UZUH3 ZxaJGp/HVf11gNeiZI1fg37uE/6qsKBEbS2gDvHNKdmOXx5kOsRe96T2oJN0utDHVszA GF8/dRIbhZ7afQHN+ULjp0lw37HUOOHW7oTxcYFNBpegz4U8IMTD48g+6VRpENuGDsZi FIOv3bR9NCVboU10LwiJre2TzSHI44OxGUWa0GhbW0YCtdJLRCQNCcztDEhD2UIGvnV0 386A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+/+vqDy1SOGvqqWknp4EAyhdAC+RmBDk7LYQGrbPXiM=; b=GsRmr+dpwSN03U18KWpPwWDFU+wvrecqIEneWnts92JEtNrp57u01fdsg/QKjI6NMq Lq5puZXIbK8l5opHZCLanNzqMzSVEJV/TowWO73DDQk51bz0LASSffx43C/ZBuSet4wV 4CwDCEXo9DKAsNZF/xAkhXMiMXE+MWt8Ik3Qoh7+RXQmrweMzfMxCHWEcH4J0kmj/iit oVFDd7ofRM7DUfXepBBT0h77easgcILzpa4dWWQqSTBZnsYFLKbR8Cczbpx/ipg4s/IU noNxQ8zUI692fJ8A7vhBqpsdVyDzYFjPSCc7YUU3EnCKO3h/myf186g61vIRTzZk27/d xvSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rTE7pgJN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si3105360edb.155.2019.10.10.02.02.23; Thu, 10 Oct 2019 02:02:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rTE7pgJN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388092AbfJJJCV (ORCPT + 99 others); Thu, 10 Oct 2019 05:02:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:43972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733302AbfJJIkD (ORCPT ); Thu, 10 Oct 2019 04:40:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 735F621D56; Thu, 10 Oct 2019 08:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696803; bh=GTWgFHLwoXXGGIzbDDyDhmgz2NP0QKE5HFdI4syuReA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rTE7pgJN8a8gZ2i/yWiYEqayJJB3PPWxZgoXN/7uXpKGmURUo8G7F8rBqEYFn4IDJ kduXhbkP3zQQMCCBpMN1YNU3jviW5DQcB/hZjfKGsbAedLI3VmNePbXAySMSz72eHg X+Y4gRvWRC7fIRztuk0cxpEmp9D7xRVc11ZUz0t0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shuah Khan , Christian Brauner Subject: [PATCH 5.3 058/148] selftests: pidfd: Fix undefined reference to pthread_create() Date: Thu, 10 Oct 2019 10:35:19 +0200 Message-Id: <20191010083614.662526683@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shuah Khan commit 3969e76909d3aa06715997896184ee684f68d164 upstream. Fix build failure: undefined reference to `pthread_create' collect2: error: ld returned 1 exit status Fix CFLAGS to include pthread correctly. Fixes: 740378dc7834 ("pidfd: add polling selftests") Signed-off-by: Shuah Khan Reviewed-by: Christian Brauner Cc: Link: https://lore.kernel.org/r/20190924195237.30519-1-skhan@linuxfoundation.org Signed-off-by: Christian Brauner Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/pidfd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/pidfd/Makefile +++ b/tools/testing/selftests/pidfd/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -g -I../../../../usr/include/ -lpthread +CFLAGS += -g -I../../../../usr/include/ -pthread TEST_GEN_PROGS := pidfd_test pidfd_open_test