Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp527544ybi; Fri, 21 Jun 2019 03:50:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqynMU57o9GKE9Y2dAnbxADcW2BMk5dIuGNkt3nsJvgD4T/O4tWmNaxVSOe0WThtR3+I3KI5 X-Received: by 2002:a17:902:8f93:: with SMTP id z19mr43735666plo.97.1561114245843; Fri, 21 Jun 2019 03:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561114245; cv=none; d=google.com; s=arc-20160816; b=BXlwD3SVT/buVUFqThyowtEQPPOwnaqPuvCAFXydaKOxFR/oHQaXPWhurkSFtKAbk4 zn7m75tKz3+o45RX7+ccOBpO/dvlL+sAuxEAvHchUb4XrHOBFkh0ShayYxP5Ak0yd5AY I7nbleu3/jqj0nHD6UOH+dG6r6NbPA7LjHJ4/7mlf5AjIEoCjhsYgFJaEVIkHCzJQ6UE EfCCg9jfZzGkqKoM6zkTwQKXG5B9JUY1124lq+Jgr9+TP1QDoLdCg6gOXj738xbOKLox azLW1bi6iXulaMlKWS7etpbHtbYMn9LRfm1IPr4q+VRsRrwhdI8hy6XKFIJWJBd48J/t EhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=j2GzdxnYBK8G7Fj9E5HisiRxVngkkouaD3FQTjun8xw=; b=BmYuzXE8SG30SjdzZHZQ0B5G9976olh7vaIcdjawGweE2wGLsfQmBa7QQxJTB9siY4 ngg21g+b85oIDf4hn940COtJJ4uBH6TC2IF687dCLBGM824fHNOepLFkHjp8bXrCfmHX sJXEpgcIzFCfM8/5fYdpRINmfqw1eyEggN4wG7k2GGphltpDznzk4u1+LX+oZ4MDNB0V X2fjhgdJEp54zeCWDBaFLeMKtYx+Jpoaq/aTjQG59Fks0BE+snHNWBC6TA82ZM5XZJkc kpgwQiUKSryr0xHJ7XqFV8znw6KvqP0pGSX+smYza7X6Cof0bbFT3mnddIrb2MjV17QG fyJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=EGaACgO9; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si2412593pjr.46.2019.06.21.03.50.30; Fri, 21 Jun 2019 03:50:45 -0700 (PDT) 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=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=EGaACgO9; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726455AbfFUKtN (ORCPT + 99 others); Fri, 21 Jun 2019 06:49:13 -0400 Received: from mail.codeweavers.com ([50.203.203.244]:48330 "EHLO mail.codeweavers.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfFUKtM (ORCPT ); Fri, 21 Jun 2019 06:49:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codeweavers.com; s=6377696661; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=j2GzdxnYBK8G7Fj9E5HisiRxVngkkouaD3FQTjun8xw=; b=EGaACgO9PwJhsTSBqdwtLIVr+ NwMW1810knKUDihDGmTj5uZ9ZTEq9zNnCGvyJyYctDTJ2Slu6pp/Wf534Xz+gL3gyQEN0extj+Ix/ sH1jTIrlijGT4xbDNd/9OmdmJKxZqATv/EvWUMPh9BPDt+AiJa9AlPMcdQGghjRVCNwpk=; Received: from merlot.physics.ox.ac.uk ([163.1.241.98] helo=merlot) by mail.codeweavers.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1heH6x-0003kV-6K; Fri, 21 Jun 2019 05:49:40 -0500 Received: from daviesh by merlot with local (Exim 4.90_1) (envelope-from ) id 1heH6M-0001lJ-SR; Fri, 21 Jun 2019 11:49:03 +0100 Date: Fri, 21 Jun 2019 11:49:02 +0100 From: Huw Davies To: Vincenzo Frascino Cc: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Shijith Thotton , Andre Przywara Subject: Re: [PATCH v7 03/25] kernel: Unify update_vsyscall implementation Message-ID: <20190621104902.GA6646@merlot.physics.ox.ac.uk> References: <20190621095252.32307-1-vincenzo.frascino@arm.com> <20190621095252.32307-4-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190621095252.32307-4-vincenzo.frascino@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Score: -106.0 X-Spam-Report: Spam detection software, running on the system "mail.codeweavers.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Fri, Jun 21, 2019 at 10:52:30AM +0100, Vincenzo Frascino wrote: > diff --git a/kernel/vdso/vsyscall.c b/kernel/vdso/vsyscall.c > new file mode 100644 > index 000000000000..d1e8074e3d10 > --- /dev/n [...] Content analysis details: (-106.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -100 USER_IN_WHITELIST From: address is in the user's white-list -6.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 21, 2019 at 10:52:30AM +0100, Vincenzo Frascino wrote: > diff --git a/kernel/vdso/vsyscall.c b/kernel/vdso/vsyscall.c > new file mode 100644 > index 000000000000..d1e8074e3d10 > --- /dev/null > +++ b/kernel/vdso/vsyscall.c > +static inline void update_vdso_data(struct vdso_data *vdata, > + struct timekeeper *tk) > +{ > + struct vdso_timestamp *vdso_ts; > + u64 nsec; > + > + vdata[CS_HRES_COARSE].cycle_last = tk->tkr_mono.cycle_last; > + vdata[CS_HRES_COARSE].mask = tk->tkr_mono.mask; > + vdata[CS_HRES_COARSE].mult = tk->tkr_mono.mult; > + vdata[CS_HRES_COARSE].shift = tk->tkr_mono.shift; > + vdata[CS_RAW].cycle_last = tk->tkr_raw.cycle_last; > + vdata[CS_RAW].mask = tk->tkr_raw.mask; > + vdata[CS_RAW].mult = tk->tkr_raw.mult; > + vdata[CS_RAW].shift = tk->tkr_raw.shift; > + > + /* CLOCK_REALTIME */ > + vdso_ts = &vdata[CS_HRES_COARSE].basetime[CLOCK_REALTIME]; There's an extraneous space after the '='. Hopefully Thomas can fix this up if this patchset is otherwise ok. > + vdso_ts->sec = tk->xtime_sec; > + vdso_ts->nsec = tk->tkr_mono.xtime_nsec; Huw.