Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3009790ybi; Mon, 17 Jun 2019 14:36:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2UZ9M/FhYytnC+M0UQQxBI6ACZz4cr+CbAznXappoLf0EvIkYwTaP8Z4RXtIr0/QdnNAy X-Received: by 2002:a17:902:31c3:: with SMTP id x61mr298254plb.331.1560807383475; Mon, 17 Jun 2019 14:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560807383; cv=none; d=google.com; s=arc-20160816; b=iQ1Ab+G64wYCutdTDEjQMP5hVLXKrZKJJQcn+p8q75+SCRYap+hDTdgcoowGIBDvjv M3zdlg79r3skR463tk4e/aFkTXxOFzwgMoQdIG1e7o4xGEVHQF4HEaXeLeoa9PbuLP1h tt/IcFNaRV3wUtEl13P2+yMaY7SH8nEmQ0H2Of9tNJw8XVz1oJBu2A7RRuJioLk3UCex SaG/nWYu9bUMWSo4VWsdPoeZiJ1v2wqQXlE8ynRuhcZkpf1w/YkC9aFLpC55de/fZ7ZJ aq8UZDAKrjkfVzYQwXdJQ1L6qjSH9TvVsufbjftjLkmQPAv1j4skPnXV3IgGxYalG3Z0 rO6A== 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=AElUL3TeG4Qyi/eQiMqHs4IYKaC6s18CJKQcXhIexI4=; b=AER4KjS3Bw2QWYoBWsN/jLoq5Vn/T8ML6699AX0S6sSHMaflUsqQmcVRqQEx1PAmwW 3OgvkSsBwBSAhEulOyUhLzhUfyxwyI27WSquxwpUeJuUU8zs8DIuvWF2IX3o91bmLM64 gnJ9q0khfDGIQKaykj4frc+R0bxrmvIPQ0SCjT85ALMcAKdMqxI6fDDngEpXzXXTpPVJ fZbhBKbRuFx5aq2gTR6BrcHRsPd5vqmdjo7HKwxbOjQb8OTa9gmk9aqZgc/08nhzAVqh 6NrXCc6jBka/CY/trIdb2qLmez8RwFSr++mI2JhjeGPn9JZaJ8YfPIqDzVGgSkT4KE16 VdYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GUtimlQ1; 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 u66si4386959pgb.219.2019.06.17.14.36.08; Mon, 17 Jun 2019 14:36:23 -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=GUtimlQ1; 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 S1729509AbfFQVWT (ORCPT + 99 others); Mon, 17 Jun 2019 17:22:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:46760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729495AbfFQVWL (ORCPT ); Mon, 17 Jun 2019 17:22:11 -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 68456208E4; Mon, 17 Jun 2019 21:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560806530; bh=0asejfpYRWwdPg2ym2PXWFlNFC9l1OikWejCVTTR3ms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GUtimlQ1GRGGw7Pbceu4MRv9CDiak8ONkVNTH7tZlfuiBcz7U7eQpeekUyAUWPOtk 0hdPREbQ+RcxSDTVSUalE9i+d5piICseI1qIjZKcjZ+woEnbRW7sPk4pBOdxhtKuNC uTTDUhaLRc4iVPuPQrnoOOSN2QlMHBErv2pR3RlY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jens Axboe , Sasha Levin Subject: [PATCH 5.1 082/115] tools/io_uring: fix Makefile for pthread library link Date: Mon, 17 Jun 2019 23:09:42 +0200 Message-Id: <20190617210804.208810744@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190617210759.929316339@linuxfoundation.org> References: <20190617210759.929316339@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 [ Upstream commit 486f069253c3c738dec62daeb16f7232b2cca065 ] Currently fails with: io_uring-bench.o: In function `main': /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:560: undefined reference to `pthread_create' /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:588: undefined reference to `pthread_join' collect2: error: ld returned 1 exit status Makefile:11: recipe for target 'io_uring-bench' failed make: *** [io_uring-bench] Error 1 Move -lpthread to the end. Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- tools/io_uring/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/io_uring/Makefile b/tools/io_uring/Makefile index f79522fc37b5..00f146c54c53 100644 --- a/tools/io_uring/Makefile +++ b/tools/io_uring/Makefile @@ -8,7 +8,7 @@ all: io_uring-cp io_uring-bench $(CC) $(CFLAGS) -o $@ $^ io_uring-bench: syscall.o io_uring-bench.o - $(CC) $(CFLAGS) $(LDLIBS) -o $@ $^ + $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS) io_uring-cp: setup.o syscall.o queue.o -- 2.20.1