Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2007341pxa; Mon, 3 Aug 2020 05:13:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSqSRaQGWfFiRRJP2nflemIZDR253FdLyxHP8nYQ7077kx6PlNk/oXT4XFlohO4Tgh8HiC X-Received: by 2002:a17:906:a209:: with SMTP id r9mr16993608ejy.413.1596456837729; Mon, 03 Aug 2020 05:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596456837; cv=none; d=google.com; s=arc-20160816; b=I0tYVwusmkA8sVeBAWEcGKLbErMDYrDjIigQfrxrhVBdZup41UCu/4mfSPM0HpcZZs wwIgzZFbnPlvTVLedLAn9c3nsoF0IZhVX3jtUwiV/5lh+Ervn0JyRkwucIELdbNB+XP+ a3HUmaiINvEG+aBZK13zXE7Q87dMZQGLiCP20GVGMnPi3V5/FoiLTZqk5xD10MIXdZjt OA+e4s1k6p+40TIEIHEhggH/kH2w1LcKu3HAV9M4vA9eRf73KrxHvw2c7FiBQSIimgMo aL7N/J9cz744uGrdolpEzXd38n6CONfTvvaoYqEiEKGgg5j82wR4o+ibdlGtMkgtytLd pAng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=rmIWem01+9lmXN3VtjDT3yiVThwq4jm87twPB6Hb5rI=; b=knq2r/VlTds6gTpgTqsZXx9tNKlVzlcLxl7n4Xq7ioK4CZ6MkmeFjbDOLgThId9sEO yGMA8a1Yq3E11d+xWzl4ZjAOjVUexBl55ZNXwjpOwFZ3zJNz1jWjQ2blOWyl6AvgV7Rz 0nd0XMizzw6/HxR5bkhuylI5Eej4TiTpbJAkK4Y+hJ6RkNESFvOryLgh5FLbGcI+J3fP /GTJrVcArpfQYM5kVyLhQY+0Du7ItT0lSjjuFbYIegIDrZX7CSgmw35/559Q1y/7PRKi QjQGmHIAUjCrdTYDjtTEhDLtnF+ycoaL8Q1uzNY9R78rDzlns51t77MDwIFYd+OXvDF8 BhkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=pyA0kJeP; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=wDhSnfhx; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si10597680ejz.115.2020.08.03.05.13.35; Mon, 03 Aug 2020 05:13:57 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=pyA0kJeP; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b=wDhSnfhx; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbgHCMNQ (ORCPT + 99 others); Mon, 3 Aug 2020 08:13:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgHCMNQ (ORCPT ); Mon, 3 Aug 2020 08:13:16 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1958C06174A for ; Mon, 3 Aug 2020 05:13:15 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596456794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rmIWem01+9lmXN3VtjDT3yiVThwq4jm87twPB6Hb5rI=; b=pyA0kJePgUH92ctdJsnYSyuvp4ZyMNxskf6iTcvWXxCM8fNJvkhxlw5XjNIppBFokvazLP yvsxaopLC84SEa/GtEeWt4/BXjelqAPZ1YEBkcYakMlULPT3nhS3jt/AlnzDsOvcoBxHsu uoOq0LRUE1ONP1rrwkftN3OgzQAIxaYzW4yMTeNKEtGXwDeZRRsNXDzpUwg2D7YTvRtYav m2hhoDN7xqX+3n4yjsnxr5zHmLRSiKEkI6jKXQZ0oj4D1OrS1MoGT3568QYC/vtUsBWfKL hd90EvLPBtF/cO6O5P6zf5K5pbu10VWmL9iuqAcuxsj7nxprzAWn7QGRbUl1VA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596456794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rmIWem01+9lmXN3VtjDT3yiVThwq4jm87twPB6Hb5rI=; b=wDhSnfhxzkwcAZUm4UIv/OGucSwWdS/Z8yZLHTMH06lc8t1yePkBPhWgKeLprOPx+Y6Sb8 7Vnq6FDCw+QsHNBg== To: Sven Schnelle , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, Sven Schnelle Subject: Re: [PATCH 1/2] vdso: allow to add architecture-specific vdso data In-Reply-To: <20200803055645.79042-2-svens@linux.ibm.com> References: <20200803055645.79042-1-svens@linux.ibm.com> <20200803055645.79042-2-svens@linux.ibm.com> Date: Mon, 03 Aug 2020 14:13:13 +0200 Message-ID: <87ime0lyg6.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sven, Sven Schnelle writes: > source "scripts/gcc-plugins/Kconfig" > diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h > index 7955c56d6b3c..74e730238ce6 100644 > --- a/include/vdso/datapage.h > +++ b/include/vdso/datapage.h > @@ -19,6 +19,10 @@ > #include > #include > > +#ifdef CONFIG_ARCH_HAS_VDSO_DATA > +#include > +#endif > + > #define VDSO_BASES (CLOCK_TAI + 1) > #define VDSO_HRES (BIT(CLOCK_REALTIME) | \ > BIT(CLOCK_MONOTONIC) | \ > @@ -97,6 +101,9 @@ struct vdso_data { > s32 tz_dsttime; > u32 hrtimer_res; > u32 __unused; > +#ifdef CONFIG_ARCH_HAS_VDSO_DATA > + struct arch_vdso_data arch; > +#endif just a few nits. Can you please spare that #ifdef and do: #ifdef CONFIG_ARCH_HAS_VDSO_DATA #include #else struct arch_vdso_data {}; #endif Please keep the tabular alignment of the struct members and add kernel doc in the comment above the struct. Aside of that 'arch' is not really a intuitive name. 'arch_data' or something like that. Hmm? Thanks, tglx