Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1425720imm; Thu, 12 Jul 2018 01:27:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfd7J7dJqGJ4Ijro6WT8Y5l+QM+3nQZCsDQOvJcc5QtZfdPRHGtQeR36Ajx/SS3UimfSCEG X-Received: by 2002:a65:5581:: with SMTP id j1-v6mr1241374pgs.203.1531384064631; Thu, 12 Jul 2018 01:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531384064; cv=none; d=google.com; s=arc-20160816; b=dAzW48Y1kfY+6dMPzyczLE0C8ShKkMOO8Yy8wjyGZDi9asNQmmq2oE2UnoZkK86Peo g4bBx4vn/+cUBZZRpEfyysvwyfHqEvxIGqDFYLcD+AATWimQzZgmuBii/U+ktXm4QIg/ d6kAez6n7P72kG/5D6yYmS2+nar4eSSQD44nfrT1hARNdgDYy94Ba2ID0xHWH6LCHghU 7/IHKoFrQjLJ2bsAn8m2iP9jXDmzWwxXCJ7Io1+1L/7Xtn68GGZCsVe151ybOljorLtC vK9QAZTDC9TerzDvXfIH99hjaIag4dSjc9ukzMGNmBYzVtwhmDBuZ1m7gV/c6J2ef/HD T9hA== 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:arc-authentication-results; bh=BijgM1KwdwyxHUXNy/VTtpX2QuY/05kxshrUBUpVu/0=; b=Btm0nl1CntfiGqGXLw1tkpllhZ8kpzsuQvT4v9SBA+jFGfqISci1LJmkXsZJJCaEnd A/j86WfXZoLXuAXNpOXDbUFn42m8l+N1EiOXmdmSG1B+JQcjLMqzvp0e8mE3XWph+qc1 iwXoEHevVABzAwWgBY9EzS32hTEcOz05T2q4/FPeCjdetdzGsQN4HvfscQZxnFRU7lpK MkSJhD3LXwfGR+KEBcPTEpAc2CFPiMaeKGp2paW+LCTVKW1M8iD7NTskmCjdyRXfsXPK dlMpCsnI6cmruHDV8lvW80oEtxJkOzvVqRzQ7vZWj76KeleM0xkNFO2wVGOJEJ8I54Yf Jf5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=KS9Jc+45; 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 x19-v6si20243207pgk.80.2018.07.12.01.27.28; Thu, 12 Jul 2018 01:27:44 -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 header.i=@infradead.org header.s=bombadil.20170209 header.b=KS9Jc+45; 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 S1727002AbeGLIel (ORCPT + 99 others); Thu, 12 Jul 2018 04:34:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45270 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbeGLIel (ORCPT ); Thu, 12 Jul 2018 04:34:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; 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=BijgM1KwdwyxHUXNy/VTtpX2QuY/05kxshrUBUpVu/0=; b=KS9Jc+453vO3MLKupsjBI6MpY XaeuRy748z36tsbRXR/oh5UyVCRRm4YKNB4PBdG0nD8g62nen6xmYzJgMC1Qk5ZYO5y6bKiEaFV87 +8WzHtBww/AfoxYv+BTakvjBd6ZgSA+3s9Qp8Gvju7zMBNwxuiwuHsU9Z2gZvx2oViJO08WBaLlii fwjo8w1zbTdYYqvXMlPX03Qv+cKs7ffwsumQS2qKCW8ZgmiTouvhPvfaLX9XcYlvy0MqNMObWUx5g TlTWXK8dVZ3KnSD0P7ekYLCG47gY1pyL/DRGSDCxp0gHJ6fKLUHnCX7yB4ve19gnq+OwppoLyfHrm sqW0TqzSA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdWvR-0006M3-Ml; Thu, 12 Jul 2018 08:26:09 +0000 Date: Thu, 12 Jul 2018 01:26:09 -0700 From: Christoph Hellwig To: Deepa Dinamani Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, arnd@arndb.de, y2038@lists.linaro.org Subject: Re: [PATCH v3 5/7] time: Add struct __kernel_timex Message-ID: <20180712082609.GB8802@infradead.org> References: <20180707054247.19802-1-deepa.kernel@gmail.com> <20180707054247.19802-6-deepa.kernel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180707054247.19802-6-deepa.kernel@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I don't think this patches makes sense without the next one, which actually uses the structure. > +/* CONFIG_64BIT_TIME enables new 64 bit time_t syscalls in the compat path > + * and 32-bit emulation. > + */ Wrong comment style, also the 'compat path is the 32 (or 31 in case of s390) bit emulation, so the comment seems rather confusing. > +#ifndef CONFIG_64BIT_TIME > +#define __kernel_timex timex > +#endif using #defines for structs has all kinds of ill effects. Why can't we aways use __kernel_timex for the in-kernel usage? > +#ifndef __kernel_timex > +struct __kernel_timex { > + unsigned int modes; /* mode selector */ > + int :32; /* pad */ Why do we need padding for a purely in-kernel structure? Also the anonymous member syntax is rather odd and I don't remeber us using it anywhere else. Why here?