Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp288997ybi; Fri, 31 May 2019 01:18:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZRBJkAid7Bkz9HRGjs3NNtcABtwxd5TOUwdxBF3iORvl/hNECX8pxI4Rr9/fHnsFXJAvX X-Received: by 2002:a62:4e0c:: with SMTP id c12mr8010544pfb.17.1559290691494; Fri, 31 May 2019 01:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559290691; cv=none; d=google.com; s=arc-20160816; b=tni1qP8W20tI0h134wx815L+acyUIjOaUN+tVhr1m92adaSk9jqcKWc6LLquMXca0b 6BzzRdAk6b2X52hmLYY3NzV4vTxF2ajw7FUS8YuLssc3OVx4fEIqq4mMlf6hShdYiAO9 Kooo2Q+ROHjromP1bgJNF7BOLxxrLxuKTYefp6pA1FVtc45fbH1BiG1+2/wwPAtweu2m oLPmrVk/C3hBjfDFv6vffj1Ju2rS2awnuyRkbwj5KCs8HJne0P0pnZsJAsrWwO51LG6I Bo7OIIwCpKtYZvVBTH/QU7QpyTr81D3V5OqOEFBEoZ5OGYBc6h0BTkGsBVvL9t7xZbCW rP1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=30RVgFLbkHlG89EQk6x8p2INAuD+G0BGcR1Z9jL2rCQ=; b=za9vKHHOF1J1JuEWIzXKTfLolfNsiCymjxfQ5sPGUUDwe/Hm0ZEJCqEztj5gi0dlse o7CKHtZCM9kSxpk8U4KiF9rrkWXFq7mxSa7lFLAmCaStFFM3sSogR6tvIZFRiVChwNwC 4Lmd6eKjBpw902jopc4UTYr86PSKR9WQWJL6BAWjhYut6OsqMo/5ADGBxNPkKGH4OUH8 JpyKIK3vDD5d/WBlPdHoXFyjglzpHeS5I4j9N/pIdeQKyQphO+eFaZnztnHHkZmo7ezB W15q4nm8uHZ5in3hxjB0pPPEJs+VGfApRoOmtYvgfZbkg+KCzS0ivTxiFXKncsvkI0GS RkmA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si5210458pgp.96.2019.05.31.01.17.55; Fri, 31 May 2019 01:18:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbfEaIQu (ORCPT + 99 others); Fri, 31 May 2019 04:16:50 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:40675 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfEaIQt (ORCPT ); Fri, 31 May 2019 04:16:49 -0400 Received: by mail-qk1-f194.google.com with SMTP id c70so5673745qkg.7; Fri, 31 May 2019 01:16:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=30RVgFLbkHlG89EQk6x8p2INAuD+G0BGcR1Z9jL2rCQ=; b=hlSO5RJqIRpe1PZ7TpsmMQo44ovugU1khiJZzOhJJaLKDuWfCwGbJ85DVqTKJvE0Gy sLg/RT/wxWni08tLKY6EbIL4nLZGgoIt4Y+Ymv4FBYFJRtXw90vZxo91yaSs7gqyk+lT fY00OXuIPojXT4axXV4Ok6QbjWwDM3+z4bzQ0t1qG49kEM6jW0otSE+LN6HG0puanyCu dmoskc6YtZrVhVfqRhVVtlGh2L9ieXPudQxe5sI/2bBDk2/jQaYAqohNJIZsBo0Zn13N vd69a7dHLZplmMoblzrtfHbe5dnT4+6feWRXqVeO2pJQfECYihdPNo8lS1KRtMSA3rlN LSbw== X-Gm-Message-State: APjAAAW3owH4bZGfsEtkBaE1u6gjAzMGFLPzhCW/J1UMcsUnAx5h93nj H3pLiMkGLKXHN03u2cFOFEEPdQQZCLR0UKsIgwU= X-Received: by 2002:a05:620a:1085:: with SMTP id g5mr7427087qkk.182.1559290608936; Fri, 31 May 2019 01:16:48 -0700 (PDT) MIME-Version: 1.0 References: <20190530141531.43462-1-vincenzo.frascino@arm.com> <20190530141531.43462-2-vincenzo.frascino@arm.com> In-Reply-To: <20190530141531.43462-2-vincenzo.frascino@arm.com> From: Arnd Bergmann Date: Fri, 31 May 2019 10:16:32 +0200 Message-ID: Subject: Re: [PATCH v6 01/19] kernel: Standardize vdso_datapage To: Vincenzo Frascino Cc: linux-arch , Linux ARM , Linux Kernel Mailing List , linux-mips@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Catalin Marinas , Will Deacon , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 30, 2019 at 4:15 PM Vincenzo Frascino wrote: > + * vdso_data will be accessed by 64 bit and compat code at the same time > + * so we should be careful before modifying this structure. > + */ > +struct vdso_data { > + u32 seq; > + > + s32 clock_mode; > + u64 cycle_last; > + u64 mask; > + u32 mult; > + u32 shift; > + > + struct vdso_timestamp basetime[VDSO_BASES]; > + > + s32 tz_minuteswest; > + s32 tz_dsttime; > + u32 hrtimer_res; > +}; The structure contains four padding bytes at the end, which is something we try to avoid, at least if this ends up being used as an ABI. Maybe add "u32 __unused" at the end? Arnd