From patchwork Tue Sep 24 19:52:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 11159517 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 560E713B1 for ; Tue, 24 Sep 2019 19:52:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 342CC2146E for ; Tue, 24 Sep 2019 19:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569354761; bh=9Zqwja0a3zjksBuVxiikR342abRYwV5RT4etTofKeME=; h=From:To:Cc:Subject:Date:List-ID:From; b=EEFRMM3qtABVix5Rd8VwRLZl3bPAKoxAEDLFEWkCez2u8w7OLYn2JpocSQ4r8Bzo/ 9Pn1WyX8PSvGHFc8IGK/5O4MpTWXeR49L/umzK0ZtkKt/3fS1knKkNEvSvoNDwopL6 vnwSne6adgoV1BPNVWz0PjerB9ncAXEtW+jqp+zs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731213AbfIXTwk (ORCPT ); Tue, 24 Sep 2019 15:52:40 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35777 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfIXTwk (ORCPT ); Tue, 24 Sep 2019 15:52:40 -0400 Received: by mail-io1-f65.google.com with SMTP id q10so7538114iop.2 for ; Tue, 24 Sep 2019 12:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DOnpOcgSk5NX5LvkWHWvLf5kiHdtooLHIMsu7TMjUxI=; b=RFzpzm9U/FsxED0LFp9Fp+Mj4jRg7GqvNmOO+9whCApw4/WFURWolT+VRG9v+OWbPc l7N3w67EPii/OkFXjP4gTcNruVsJjMcPfxmI6GOsKOSHp1Q4jkLP8yQ4KH6LzWsBIuAM XGty4konqFPtGgc8WZCm0YXM2ySxl/Y2U3+UI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DOnpOcgSk5NX5LvkWHWvLf5kiHdtooLHIMsu7TMjUxI=; b=PGKQbk9w+OV7x9qIA3DZ0i5wP0X255P/lMH0u2YX+kUgeDLq2YQ69HBnPSPof6nVqA VP4Kq4u0l9WKWVzM0wNbfa9xIVV8mvbfoTaLGtfg9f9klh+BvFUyKhuCWr9Cu6C1VEtP JCpLSbQMPwgmvnI3MYYd2V/Tqe/o3Tyh+UaI9Qf1O4E/yS8d95h2R+SnmgThACmkKPx2 v+bh8iHxUi1ZdKRigOhpZmSFjZaSYa+JjrPl6s3YpAWVrGeuh69eEZMdy6ZnonsHqcRX ItYCRUzmegrba+BWYvyk/U0eDQBHoQlv3Ja2KjnWUmp9Ahm1MacV1JtlQVQG5hQDVObA 39sg== X-Gm-Message-State: APjAAAWjmC9seraGR+lT5Pl+SEaE5ubBAvm43kzWkVFit5wOQBdkm2h3 GnPTIfAme3VvHcXEyUlCi3Z+lDh9Sns= X-Google-Smtp-Source: APXvYqyjabRdDMqnPKETR4eIRTr/iHS+Ld3WozdWwgpQwZPNqMT0cSOe8xrIAyxGOeds8ZPHUKrP8Q== X-Received: by 2002:a05:6638:1f5:: with SMTP id t21mr571908jaq.119.1569354759536; Tue, 24 Sep 2019 12:52:39 -0700 (PDT) Received: from shuah-t480s.internal (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id g8sm1949257ioc.0.2019.09.24.12.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 12:52:39 -0700 (PDT) From: Shuah Khan To: christian@brauner.io, shuah@kernel.org Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH] selftests: pidfd: Fix undefined reference to pthread_create() Date: Tue, 24 Sep 2019 13:52:37 -0600 Message-Id: <20190924195237.30519-1-skhan@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Fix build failure: undefined reference to `pthread_create' collect2: error: ld returned 1 exit status Fix CFLAGS to include pthread correctly. Signed-off-by: Shuah Khan Reviewed-by: Christian Brauner --- tools/testing/selftests/pidfd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile index 464c9b76148f..7550f08822a3 100644 --- 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 pidfd_poll_test pidfd_wait