Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4956726rdb; Fri, 29 Dec 2023 22:57:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEd3CySEI7Imc2oklUG5RJrVshw+le8SduTr3YsnMqtBTv6va0iH7vhrP07GG7Gl2cQCVV/ X-Received: by 2002:a05:600c:5198:b0:40d:59ee:d5da with SMTP id fa24-20020a05600c519800b0040d59eed5damr3561746wmb.8.1703919423119; Fri, 29 Dec 2023 22:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703919423; cv=none; d=google.com; s=arc-20160816; b=Lp+LLqA3VgBRQiHuk94+YQ8Aw/h8NuD7DoK820f6Om/lRrHdKsSDFfhiBzrjIS/iPX R+prXxxNAOXK05TUnK71CcVXHU2P08IZIH1hFFU/1oncw3y+EpphezJknncWWc1Zmj/t RC/B45di2aIHFk7KumguUjPSZ02K6ylpyI8erLwiGDl99mufnZApqROYvMvNrqwfkxdM ULpDB8pmEzpvf++0TXdg8vg6CQ5UdPbJRSz2a1+nMXqS/uazI6cy6vwGX90nQDmniOj8 /514P5wIirO7AaYCXjeodUP3xm7dztLa4S35KdY4N5EdeI0EKQ7rel1It3DzdUBwNswI OtQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=guNWDRhmrteF9P1IzTITCw0H7XsY20czS/Gv/+44lZQ=; fh=avpu5u/TpSwNlPGspmWv8vq8WYaEN7GD7Dlo4d5X3Hg=; b=RvEVD8mNldieMEzFlvMrdrH0zbeML62hQH+c5jNBGKVhpDPjBT8G4117JFtU0Z0ppL B+1u1rRq08+PHXnz3+JmseW6/3U2DEPyCYsamR3pD1Cq+RMXu536Zukv9VZte46UvP6f t8BTsQl7X1ysQPSC+eHBgVhYCWnOS26KZAxloagMPBNBOpwzd0ZZvzdAI1TI4AAIStvL 9vtY9g7UWBd0+ZbQQuNazVr1gLV834lc5/FzgrDKyC+hsN5mGkHK584rDSle3V92/DjJ GIN22iGuENJNFEKzY/U9QfFDZ6nEXXTa7xgN1sSVqt2NsGTOVvR3h5Qa49Cuev1fKZId v9Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZDLtXxlm; spf=pass (google.com: domain of linux-kernel+bounces-13345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id yj19-20020a170907709300b00a2753c4b3desi2461601ejb.299.2023.12.29.22.57.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 22:57:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZDLtXxlm; spf=pass (google.com: domain of linux-kernel+bounces-13345-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C81341F215EE for ; Sat, 30 Dec 2023 06:57:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DAC61FAF; Sat, 30 Dec 2023 06:56:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ZDLtXxlm" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 2AB9723A5; Sat, 30 Dec 2023 06:56:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703919411; bh=+OElTmrrmq2Aav7SM2X6Q9NUonp7GhK6Fak4brj5YJg=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=ZDLtXxlm6j7aJmqrzS3QlTM79Lts9zj0b8khTg6rB4LxhBNx5gW28K5JL3DemJEG2 obC6EXDrvuTxXvBfbc6ciprVvtNXmK9/vN0cWG8yiWmwq5z8aSiiKLQxMpZC6oMFRR IyB24SstN/7WRFn1OEyT0U4z+VvF60STVPsej/UxBlCgnAmCW5BrMwqYQl93sR91RL n01/pA/sAn/QKI/0ixLGyJcefz4Z6B0O5cf5FmZGWiuV/gQL69ARonS4laCiKELnON J8O4C30mqTw506ge6o//k716tfTpAlM3/nVoJqtsWhbLf6U/mqo4z1XTp6+IT46ktZ SxAjgjCXVH5fA== Received: from [100.96.234.34] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D4A1D378045F; Sat, 30 Dec 2023 06:56:47 +0000 (UTC) Message-ID: Date: Sat, 30 Dec 2023 11:56:45 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , linux-kselftest@vger.kernel.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] selftests/vDSO: Fix building errors on LoongArch Content-Language: en-US To: Tiezhu Yang , Shuah Khan , Shuah Khan References: <20231213012300.5640-1-yangtiezhu@loongson.cn> <20231213012300.5640-2-yangtiezhu@loongson.cn> From: Muhammad Usama Anjum In-Reply-To: <20231213012300.5640-2-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/13/23 6:22 AM, Tiezhu Yang wrote: > There exist the following errors when build vDSO selftests on LoongArch: > > # make headers && cd tools/testing/selftests/vDSO && make > ... > error: 'VDSO_VERSION' undeclared (first use in this function) > ... > error: 'VDSO_NAMES' undeclared (first use in this function) > > We can see the following code in arch/loongarch/vdso/vdso.lds.S: > > VERSION > { > LINUX_5.10 { > global: > __vdso_getcpu; > __vdso_clock_getres; > __vdso_clock_gettime; > __vdso_gettimeofday; > __vdso_rt_sigreturn; > local: *; > }; > } > > so VDSO_VERSION should be 6 and VDSO_NAMES should be 1 for LoongArch, > add them to fix the building errors on LoongArch. > > Signed-off-by: Tiezhu Yang Reviewed-by: Muhammad Usama Anjum > --- > tools/testing/selftests/vDSO/vdso_config.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/vDSO/vdso_config.h b/tools/testing/selftests/vDSO/vdso_config.h > index cdfed403ba13..7b543e7f04d7 100644 > --- a/tools/testing/selftests/vDSO/vdso_config.h > +++ b/tools/testing/selftests/vDSO/vdso_config.h > @@ -53,15 +53,19 @@ > #if __riscv_xlen == 32 > #define VDSO_32BIT 1 > #endif > +#elif defined(__loongarch__) > +#define VDSO_VERSION 6 > +#define VDSO_NAMES 1 > #endif > > -static const char *versions[6] = { > +static const char *versions[7] = { > "LINUX_2.6", > "LINUX_2.6.15", > "LINUX_2.6.29", > "LINUX_2.6.39", > "LINUX_4", > "LINUX_4.15", > + "LINUX_5.10" > }; > > static const char *names[2][6] = { -- BR, Muhammad Usama Anjum