Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp831184ybl; Wed, 11 Dec 2019 08:09:36 -0800 (PST) X-Google-Smtp-Source: APXvYqypl8vIcbrB0Kx/LCGP5GS16KpWGZAHRGnB6BaAWjauFsenrH6TLq08ONflWjiwSWZvkEUD X-Received: by 2002:a05:6808:6c5:: with SMTP id m5mr3215511oih.143.1576080576562; Wed, 11 Dec 2019 08:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576080576; cv=none; d=google.com; s=arc-20160816; b=h83suj/KK2IwtNIhUqZX3VKr+ljlVIQ+acCvPhSEKyk2uUc44Hn3e9VYzW+bKRQJOE LjAo1Bm/b40a/e4zMKcygzrJK7LjtEZZevAL5KsWndKbsO4jzWBp/YJxT89drnNiquXJ BHIXfpEi1923ZAemVCau01jHH1RXZArW4DwavxbJDyXfS+2rPcYscxTG8RQqssGqCeGh A5B2FOt9aevHklKCVRDWmDs7diNpjBmEXuB5hdGUXCN+0QzhhjjnayXHL7rtEnn8KGy5 B24F4n/rbw4IjYeeMauG0fpMYcrWvUiNrS3HQWOe6AXXzw64i2/VEUn6btFyT5iCwuMx 4Z7Q== 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=FAaadwvGp4xg7lZE6XPXJ36Ukpv3SF+wgDqIx/xlizE=; b=p8CTfB4wyQRu1AZJFOIL8imXQUkj1XiXT4TJ3y+3WBXDMKdS12qz4vNYQTcISMBw6j LEO5g0ZJuubZ229guo+OjuYFhX0R/JZihYGehmj4H1LF6J1n+oDo1vkRHDHACrmOTk73 2JsaSyql1z0C5uhiTNjFkaqRY5nPFxcoIa5EaapiIrF0rEHyVNQfOwmdddhJmbsqbHWx zVuw0w52Fqnd5A7ZamFVE/6u7R5c3/SYbRP4mRVQL7s9kogvwblj0gz0fchXZCdC12xA NqYRZwQ8xc+ejQVmoJ3qy3BEtYdcNmOC5LPcnzEnXMdQSarU1nqBp5aAWRec5U4mHwYR xxFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KCqSxwH0; 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 l14si1337740otk.225.2019.12.11.08.09.24; Wed, 11 Dec 2019 08:09:36 -0800 (PST) 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=KCqSxwH0; 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 S1733068AbfLKQHR (ORCPT + 99 others); Wed, 11 Dec 2019 11:07:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:34260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731155AbfLKPMb (ORCPT ); Wed, 11 Dec 2019 10:12:31 -0500 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 044EF2467D; Wed, 11 Dec 2019 15:12:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077150; bh=QoVN+P9+xdGb6qaKlf/1i1RsDFqo704BUrWg5HC1kvQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KCqSxwH0Lj9L0XjLbRng2GyAWN9XBSdAnAmOKuKdDkys/qGx1FM1OkY8LQ4AmJPDm Uaexj02u7xhkP6ziS47OCfubncCYm82Z+y7e2tkXkOjnH/IDTlPOT162shhBZKgE7y e3zeEGa5AABIbHyuZqFLSwmAgKIkmzrnsxH5CGek= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vitaly Kuznetsov , Paolo Bonzini , Sasha Levin Subject: [PATCH 5.3 035/105] selftests: kvm: fix build with glibc >= 2.30 Date: Wed, 11 Dec 2019 16:05:24 +0100 Message-Id: <20191211150233.955493927@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@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: Vitaly Kuznetsov [ Upstream commit e37f9f139f62deddff90c7298ae3a85026a71067 ] Glibc-2.30 gained gettid() wrapper, selftests fail to compile: lib/assert.c:58:14: error: static declaration of ‘gettid’ follows non-static declaration 58 | static pid_t gettid(void) | ^~~~~~ In file included from /usr/include/unistd.h:1170, from include/test_util.h:18, from lib/assert.c:10: /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ was here 34 | extern __pid_t gettid (void) __THROW; | ^~~~~~ Signed-off-by: Vitaly Kuznetsov Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- tools/testing/selftests/kvm/lib/assert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/lib/assert.c b/tools/testing/selftests/kvm/lib/assert.c index 4911fc77d0f6a..d1cf9f6e0e6bc 100644 --- a/tools/testing/selftests/kvm/lib/assert.c +++ b/tools/testing/selftests/kvm/lib/assert.c @@ -55,7 +55,7 @@ static void test_dump_stack(void) #pragma GCC diagnostic pop } -static pid_t gettid(void) +static pid_t _gettid(void) { return syscall(SYS_gettid); } @@ -72,7 +72,7 @@ test_assert(bool exp, const char *exp_str, fprintf(stderr, "==== Test Assertion Failure ====\n" " %s:%u: %s\n" " pid=%d tid=%d - %s\n", - file, line, exp_str, getpid(), gettid(), + file, line, exp_str, getpid(), _gettid(), strerror(errno)); test_dump_stack(); if (fmt) { -- 2.20.1