Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp12619471pxu; Sat, 2 Jan 2021 05:29:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJynk/cv5laZfpUnvk+qqaAK72CkM18Xu835HJ2Htt8960jiw3ovOXbwg+tsvhVI4HcrrMlM X-Received: by 2002:a50:d552:: with SMTP id f18mr58215641edj.168.1609594152610; Sat, 02 Jan 2021 05:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609594152; cv=none; d=google.com; s=arc-20160816; b=YTSc1DSRIdz8P+AiHFbMHDpgv2JE+A8ocxFQCTZA1OdjJr9ehXNj3MmDpt35VqyrJn R8Hi5JhZqw2T37BbuvqCEG1dZkcjoN8sVdLl5mPkRVLl49nLbXaZ986NJxMliNoe79NZ Vq82i+Jgm+DAxibXwfR+E85Ypj199vNuruxm97bj5ziaIiZ+/MYbUStkANbqWqrBTRVq 40ghbzYmiRyh/UWX3fHPDusBi6094H2H/2yMxG/ur11dCDzl1f1dgPQAOwhQ52qOTjAY +tSaBH1JWPMU7IynUsZn36vYqkf1B9Soywp9vi9tsoHWoqvzkY/3sH3j0i9OJiqWA9yz /qOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=TYtIUkQW2VZ2hEFHX2q39i1+ENikIdJDtCmT2rbhKX0=; b=qjBM+MDtmLelSCHPHFZBmDJhGcNustCKTJvJpvrtLeHcgMbM2I0Yde+SIFhClIEWHj /kll88PdtSzrAa66w+6PxSvmGcoFu8DShu0nwLfUUEC2BaIAvYKb1oIQXrCBzHAw8tj0 vUE/bHr1m3aQ4tWtL8h/eHiTeF6DDCkTQFWMSeIIXlN6YdofVd45B3+JFllv4Q5YSCkZ lmvakW1EiklN6nvBcHAmmF+VZ0NayeroOQ7zuPQkNnKwq9ON9D/lBpqXmQ91W6yCbej+ lFFaBDFeSVjO54OJfP5TpY6gqVw3FcR18NucFfamPnatTGGvEJo1pVwkotTdCbu9lhla qauQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=etiRHgnG; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt11si26509442ejb.445.2021.01.02.05.28.38; Sat, 02 Jan 2021 05:29:12 -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=@kernel.org header.s=k20201202 header.b=etiRHgnG; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726616AbhABN0X (ORCPT + 99 others); Sat, 2 Jan 2021 08:26:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:37138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbhABN0W (ORCPT ); Sat, 2 Jan 2021 08:26:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BF2A0224D2; Sat, 2 Jan 2021 13:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609593942; bh=TVsidi0zzSt/PgVGHSye3zjeAkDC4WSqDayvsSzjYbE=; h=From:To:Cc:Subject:Date:From; b=etiRHgnGy4cY/GQAen8hsZsp0G2TlXhAWwSmpk6YPupEvE8OAY4/t6ZoObClBymsG tEFudifXAeESBt8pyZTKKZBKg8KUFFT0fNjSZzKqQpPbE6+i+u85lBccXkqbz51E6B d4NQpqKMTiqKMBJznTqoC/Q7NE9eLPYZ+RQyUsRoJrNHtol8EVUOmm5u3aaxGsWt/F MXXuYjMRi8ss1VQt8lpKu4QZuCSWL4DC/QI70NTXGjXhu3Hu4oM0iOml4YqzpqwsWw rOIKb2J19ViqEYkBQdOX2pIkTdWrhWnOhC/GPu8X3wXumS9RlAWYxCH/C6uHSUoCo0 DwMchROSS1NMA== From: guoren@kernel.org To: palmerdabbelt@google.com, paul.walmsley@sifive.com, anup@brainfault.org, atish.patra@wdc.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, guoren@kernel.org, Guo Ren , Vincent Chen Subject: [PATCH] riscv: Fixup CONFIG_GENERIC_TIME_VSYSCALL Date: Sat, 2 Jan 2021 13:24:34 +0000 Message-Id: <1609593874-64422-1-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren 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 Cc: Atish Patra Cc: Palmer Dabbelt Cc: Vincent Chen --- arch/riscv/include/asm/vdso.h | 2 +- arch/riscv/kernel/vdso.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/include/asm/vdso.h b/arch/riscv/include/asm/vdso.h index 8454f74..1453a2f 100644 --- 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 diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index 6782042..3f1d35e 100644 --- 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 -- 2.7.4