From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 342E0C4360C for ; Thu, 10 Oct 2019 09:02:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0406A2067B for ; Thu, 10 Oct 2019 09:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570698146; bh=GTWgFHLwoXXGGIzbDDyDhmgz2NP0QKE5HFdI4syuReA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=DNSvFZWDteN7PYCG994kL3qNr+gcB6mGtARfbcI9a7zVyTPsthhUyZZKSWnC8auQQ U3ZDBh1L+Sa6sU8FccHQ+ZbxPjZ72q4dNZNOTNa+ffnWLvGPTJVWj3iR/s5acgjJje P6hC+Dnld0Uyu1mRVWdHCWKBeobKOY7/DmNxsD+Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387469AbfJJJCV (ORCPT ); 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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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