Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5190324ybc; Tue, 26 Nov 2019 23:31:47 -0800 (PST) X-Google-Smtp-Source: APXvYqw8vdqz72j1L9kwZH5EancI21UpZT5vVZJcET6B03F6cU6lxyEWdUerHPAr6+33xIn3MOq3 X-Received: by 2002:a17:906:1fd5:: with SMTP id e21mr46161628ejt.320.1574839907023; Tue, 26 Nov 2019 23:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574839907; cv=none; d=google.com; s=arc-20160816; b=PfHoHwgY3Oa/2kmH4cShepMNCQRUwOMOTWE/7QOYiTdao6Cg/lNVMATjY/fG4xxrA4 EWuCW6sC1J6rgoGPRmya1SaXUNK8uepTvoQsLjIrhTo3gCFn+LwvLUXAQ1svajv8nukb kqfpFUikLtfhXVE3jBfHQ8fXdRO9R3ww7w6dKrxNQRzfjsW4we018wCr/r70HZIK2pRe +Hy1IP6uByH9XZGi/NcJ0omihNqqZh4264k3TDTz0o9OIQXEw1yabTFpreTopZ1cPdCi +rVFX6drCURp275MaN+weQMI3nXQxONHNUExC1cvHbpe77JALLRhiL49RxbeXu0SEgT7 c0Nw== 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=daZccRQyjaNYKqLjjSER4+Xh9PUwo1L6dwl0GD49208=; b=b72K+IroxDQQYhllZmGeuY4o2Ytl2n1v7tcsEAUJm5vL/ByKFwvkgslwOjY5zcHqsP VaA5HzIC32ltkm3Ardpzq2k9ijT49LH5QN99vveSYTqTwwMfVZkuWpN8tYZROu//6veD zP8Teg+3/fhIQsPj6ey+sCj0ybG5oRAih5FwcC/Ryu50Zu1bRHeBRFqVovYyyWrX4f5a ClS3MolDd9HAIDxXSRiZrtPLyoa1OlK9l9vq760Xo2nS2Qhi6lGEEbdB1n+HWx7MbqkF ZkGRaL+hXFCh9Gj7dphzkFrm2swSJykrhXoIJCHyk5vwTrEIQHPxzWdcLQ/QvtMeHdfe 6EzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-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 m17si1936826edv.108.2019.11.26.23.31.09; Tue, 26 Nov 2019 23:31:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbfK0HaF (ORCPT + 99 others); Wed, 27 Nov 2019 02:30:05 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:40233 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbfK0HaF (ORCPT ); Wed, 27 Nov 2019 02:30:05 -0500 Received: by mail-oi1-f194.google.com with SMTP id d22so19208782oic.7; Tue, 26 Nov 2019 23:30:04 -0800 (PST) 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=daZccRQyjaNYKqLjjSER4+Xh9PUwo1L6dwl0GD49208=; b=DV5meT0BzlEoy62sGQFOJMuaHoRGoiLDJpfMzC3g0mXxjvhvXykDZGJKG/dALjv4Yn igkBn822y61oaFVUtxe4aXgmz6UguQpfxZhoRryNklXZXTcy/uIf3YALlC1hBlArJHT2 8SI3aMZr5bnfnYNzJIWiy7k72f5vuw0mQUMMTR+wMm051HyyjjPVaN268DhzVlulXtuS MvqRgMqGyLmErmxsVJgrqVatMyxytQOkTt05Y4CErdUuqjqa7BxrVzpg/doKruxQaZbp 7ZVx6I2lSqiaP5LoOLEhsBxIk1cB2RjmYuiedd+B1Z9BUC/IwfCH5oXD6qrZ4J/OlWm8 FJwA== X-Gm-Message-State: APjAAAVJ+H8lDG1DjIfea/FljBzW5k+q7GDZ1Ai78APOrFfHfO11el4e 9MB+C1dGdvJDwVORBWpxTIwEDHhA9MfI4l4uNDc= X-Received: by 2002:a05:6808:b17:: with SMTP id s23mr2947275oij.102.1574839804401; Tue, 26 Nov 2019 23:30:04 -0800 (PST) MIME-Version: 1.0 References: <20191127003715.108479-1-yzaikin@google.com> In-Reply-To: <20191127003715.108479-1-yzaikin@google.com> From: Geert Uytterhoeven Date: Wed, 27 Nov 2019 08:29:53 +0100 Message-ID: Subject: Re: [PATCH] fs/ext4/inode-test: Fix inode test on 32 bit platforms. To: Iurii Zaikin Cc: Shuah Khan , Brendan Higgins , Theodore Tso , Ext4 Developers List , "open list:KERNEL SELFTEST FRAMEWORK" , kunit-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Nov 27, 2019 at 1:37 AM Iurii Zaikin wrote: > Fixes the issue caused by the fact that in C in the expression > of the form -1234L only 1234L is the actual literal, the unary > minus is an operation applied to the literal. Which means that > to express the lower bound for the type one has to negate the > upper bound and subtract 1. > Original error: > Expected test_data[i].expected.tv_sec == timestamp.tv_sec, but > test_data[i].expected.tv_sec == -2147483648 > timestamp.tv_sec == 2147483648 > 1901-12-13 Lower bound of 32bit < 0 timestamp, no extra bits: msb:1 > lower_bound:1 extra_bits: 0 > Expected test_data[i].expected.tv_sec == timestamp.tv_sec, but > test_data[i].expected.tv_sec == 2147483648 > timestamp.tv_sec == 6442450944 > 2038-01-19 Lower bound of 32bit <0 timestamp, lo extra sec bit on: > msb:1 lower_bound:1 extra_bits: 1 > Expected test_data[i].expected.tv_sec == timestamp.tv_sec, but > test_data[i].expected.tv_sec == 6442450944 > timestamp.tv_sec == 10737418240 > 2174-02-25 Lower bound of 32bit <0 timestamp, hi extra sec bit on: > msb:1 lower_bound:1 extra_bits: 2 > not ok 1 - inode_test_xtimestamp_decoding > not ok 1 - ext4_inode_test > > Reported-by: Geert Uytterhoeven geert@linux-m68k.org > Signed-off-by: Iurii Zaikin Thanks, test succeeds (on m68k, arm32, and arm64)! Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds