Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2190375pxb; Mon, 18 Jan 2021 10:32:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxA3hx/isilehvXIS8MPwr6hMbRAjDqNXkjGxUyeGSQdRXCyqy16YxM30Hhy2ANIOgRkf0r X-Received: by 2002:a17:906:eb1b:: with SMTP id mb27mr671029ejb.332.1610994737719; Mon, 18 Jan 2021 10:32:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610994737; cv=none; d=google.com; s=arc-20160816; b=OPUlfbcNCu6ZEfUcR5/JzRwsv7dKSxbu1bU+GcGZUyrjT6Rn/sRITVLW+MRER6ulkF 13vKewahfPFbj7RHuaDGq5Wx8jvPNrUQucHZz5PkpIjLEXt22FrwjhnfnY/9VbDSDdOf fOCEzWnK3oatyDQ4unfAHwbHbxBeoAZhU+hgcCaD2UepzRGyAsYw76VNfIco0iHY0MFz X9XSJIdsHJUA3WzyOR5iCX7CSgyUPLzB2FgBsrwtab1xqI93edRh3BE6ONuP8hAG+1PN 0q/rZAmwp9stb9k4j9I2T1X7g0iqTI6sgPC0nZ7TWwFcGtVNQcguraFmo4nVyBAg+NcE +zaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+PfdU4pdQYloWky9W4eGcooVL9M8/Ah6CYulS/vQ1EI=; b=E22dyTzkfO/afJyS35Dl0EsUR7E8xICgbpkJrv59KjrwdXHszTebhqKErKkExDeLWw MqyJzwsZkx5fMt49vGsYXvxIlYjZyLTTk2Jm3SYhHooySWY679lhTlwWlAMZxX6sdh8z Qp2KiT0lgAqtFn8EVBbula6HZnkyoEDNL8/f6tLObXAlUaY3ZLBgxk58QQ2p3a0iAPN+ KVqKWfXU7o5qlLE8lwxNQM7+alq4ymsPpficn80hwEYp3b66MypJe6PPLfmlD5KN0cil UqKa7QRZ7YUexBxx/vWV48KNPeCEx7ztmuCImbkUf3sFCVx5MLINIpSIXX6wvdNsgBVz DIEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CCUHuLne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si8105966edw.263.2021.01.18.10.31.54; Mon, 18 Jan 2021 10:32:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CCUHuLne; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407613AbhARS3P (ORCPT + 99 others); Mon, 18 Jan 2021 13:29:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:36424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390743AbhARLlk (ORCPT ); Mon, 18 Jan 2021 06:41:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D55F229C6; Mon, 18 Jan 2021 11:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610970077; bh=Q1DVdWbFpqENDVGJYgXxxkgZGK4VYuGf2epD0eXuMLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CCUHuLnePfFsDviV79wW+mC6KkGs5GuzGIe85XUqPu/US5uSqx0hnBFDJall+onja UrIGJDlTqNVVlD+eoeH0qhOEobyGsiAbeiX8j6cYMX5yQXe2o6yWSPumhG2XEKPbqh fcUXF4h0CYvYqJwvQZl9DlpzmEjfRHqvasSZ9asY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guo Ren , Pekka Enberg , Palmer Dabbelt Subject: [PATCH 5.10 027/152] riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL Date: Mon, 18 Jan 2021 12:33:22 +0100 Message-Id: <20210118113354.082757811@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210118113352.764293297@linuxfoundation.org> References: <20210118113352.764293297@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren commit 0aa2ec8a475fb505fd98d93bbcf4e03beeeebcb6 upstream. The patch fix commit: ad5d112 ("riscv: use vDSO common flow to reduce the latency of the time-related functions"). The GENERIC_TIME_VSYSCALL should be CONFIG_GENERIC_TIME_VSYSCALL or vgettimeofday won't work. Signed-off-by: Guo Ren Reviewed-by: Pekka Enberg Fixes: ad5d1122b82f ("riscv: use vDSO common flow to reduce the latency of the time-related functions") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- arch/riscv/include/asm/vdso.h | 2 +- arch/riscv/kernel/vdso.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/arch/riscv/include/asm/vdso.h +++ b/arch/riscv/include/asm/vdso.h @@ -10,7 +10,7 @@ #include -#ifndef GENERIC_TIME_VSYSCALL +#ifndef CONFIG_GENERIC_TIME_VSYSCALL struct vdso_data { }; #endif --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -12,7 +12,7 @@ #include #include #include -#ifdef GENERIC_TIME_VSYSCALL +#ifdef CONFIG_GENERIC_TIME_VSYSCALL #include #else #include