From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F14CE101CA; Sun, 12 May 2024 22:48:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715554093; cv=none; b=B/CU40jBZagjumScB6HC9k0xesmb7FYmZInTEf4xg6/gQMdAU4qUrsYDj/f9hhBCGWGUG+BKs+cmPjKP0usmvmuBEjessioLZeM1iF5MHrQyJyF4OwVMhsD8cNObFZCP7W35byS70UPXEf5zxWXAJTI0aivgGhJvWMkzAg5/7uE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715554093; c=relaxed/simple; bh=9fjv1Y0rdNDQySl7fq7segrFXEEv9wxh8sZupY1PCcE=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=oLB9ChXozgQKBEw8399RfyifIAxrERXSbwugiDIQ4z/juWLsFP3Dunzx097L1vrvH2SKfII/0g4v9AmiJg1qovAuUNX7kQ6dSe0ZPEhQyDMKS6vSiS+yiNl+vnjxxJVN6qBjRf1zmPCxbhCzH5sMdCxO9UlD0gds9N2LODV3TGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ugQmEqXm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ugQmEqXm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDDFCC116B1; Sun, 12 May 2024 22:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715554092; bh=9fjv1Y0rdNDQySl7fq7segrFXEEv9wxh8sZupY1PCcE=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=ugQmEqXm73wMGXT8ED/pTvPxEJe/tZ2aDWfEpBdzleYcuf3JHjcTfYKavLXn94Wbm aN6uoqbdBtUqGnnOCvX/VvczeVUVPDlhhqZ72dPLa4ACRSno8QBcbw3kx8toFMPbsu l7iJOcr/0cj/UNFUUau2sA+Vsx5mc0LVyIu6I+8tGC1gxcluEtA8t3fROvq7wq2uPp Skmpp3JwTqQpA8v1HvY/t2yQyu5dBOUgPbksGTakEZvNcX0069/HW2EIVfZuJv5Wix 7ADTY+ZyzIYfoWYN82nbuyfQL+unxQyZA/k5DN1EOw4mcTHbmtAsaS8fFVGNgWYay/ EqxigTyA1H31Q== Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 13 May 2024 01:48:09 +0300 Message-Id: To: "Mirsad Todorovac" , Cc: "Dave Hansen" , "Shuah Khan" , , , "Edward Liaw" Subject: Re: [PATCH v1 1/1] selftests/sgx: Fix the implicit declaration of asprintf() compiler error From: "Jarkko Sakkinen" X-Mailer: aerc 0.17.0 References: <656c3b4a-0481-4634-9dd4-19bb9e4cd612@gmail.com> In-Reply-To: <656c3b4a-0481-4634-9dd4-19bb9e4cd612@gmail.com> On Fri May 10, 2024 at 11:37 PM EEST, Mirsad Todorovac wrote: > tools/testing/selftests/sgx/main.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/testing/selftests/sgx/main.c b/tools/testing/selftests= /sgx/main.c > index 9820b3809c69..f5cb426bd797 100644 > --- a/tools/testing/selftests/sgx/main.c > +++ b/tools/testing/selftests/sgx/main.c > @@ -6,6 +6,9 @@ > #include > #include > #include > +#ifndef __USE_GNU > +#define __USE_GNU > +#endif > #include > #include > #include __USE_GNU is an internal define, never use it for anything. Use #define _GNU_SOURCE instead without ifndef/endif [1]. [1] https://man7.org/linux/man-pages/man3/asprintf.3.html BR, Jarkko