Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4879126ybc; Tue, 26 Nov 2019 16:33:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyS/8Bx2BkSOHpsWOYyEheB+YJXOOaTEdjMmuSq/4VkuisxXnAkk51uS10kPVFkbMgN4ZW+ X-Received: by 2002:a17:906:5211:: with SMTP id g17mr46692345ejm.60.1574814831478; Tue, 26 Nov 2019 16:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574814831; cv=none; d=google.com; s=arc-20160816; b=iPcY0v/uvpRW5sHibxp+4tbuTjr3RgJTcqN0I6h2nNzEaCjR7B/AtSYyxmSzUDy9tx Es4eO53k54Q81s+lW59iF67IQ/TGG8Ym9wT1HMSlosSkug49fFcH3rkjBw+iaCj4Jipg 3bZ6SJ4e6oHFZnDy0CN+Ij6HtLYcs+s9NPFAo4UIwtuoGMoomBtAPYz9MDtHQEfRybhQ uB+d/C0JkMQWIH8ilR5NKQrBhA1bei96MEruXLCANFNjbXVcRRORlwNSm+X659P9G13E oJa4fs3sv0XA87Ag3Eb5GmDtn2uYvMAGMBBCOzh1CLdNW2+rP5laCVNky8OPNeU2xceH HDSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zkJ+1YZ12dyKxvf1FEiFS42XMH3hvkZb3rnIHE1McJw=; b=IMlU3pQCu3g9EU/GCIrxFEUTFdeKTiAMQqLFC6oIc5uiKjbdSe6q/KeATLAnHFGXSK cNv2f6RQ8XilK3pAwbnom7pqqlWhxb1Rcn4iLNVftxJA/1S3kj/H+lHLpVYrSEBfZCBI u2XTtijZj4TPkS2PSlv+XsZ8hzz9qcYjpccUrBkbeFbsAejfa3YsE7DbFiaKVk9DJTbC VQLW4EwiA8RNRDLanZapFBS+Lr4cRvcVY+sdPpFsa/wGkQrJPHmBhqDhoySZsDdqYaQv Be+TSnzbsCWX5bae2YbhNz+7+UtuVeOnLSfKQzqIPq4TronULvy9wJBK1aFhZpKGVI3L lkig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ZWWbUs6B; 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 v15si1075260eds.318.2019.11.26.16.33.18; Tue, 26 Nov 2019 16:33:51 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ZWWbUs6B; 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 S1726873AbfK0AdG (ORCPT + 99 others); Tue, 26 Nov 2019 19:33:06 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:44382 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726701AbfK0AdG (ORCPT ); Tue, 26 Nov 2019 19:33:06 -0500 Received: by mail-io1-f67.google.com with SMTP id j20so22742009ioo.11 for ; Tue, 26 Nov 2019 16:33:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zkJ+1YZ12dyKxvf1FEiFS42XMH3hvkZb3rnIHE1McJw=; b=ZWWbUs6B+DYR9eFCLz9tEL3Li/ZDFZq5fQKXSOG4oLIoDrtTV5KbMqX0/EfpSrrw1O fLsQ+/ED919boJLaVd7KfCZXeMCfq6/ga5FRDfQidty3ec3cqoMb2DQAKrJIqT49Bzx/ aYPuUxUZ3/VK5gty4VPMnx1NljrXhdSRFTz0U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zkJ+1YZ12dyKxvf1FEiFS42XMH3hvkZb3rnIHE1McJw=; b=B9yLfyQ4CxxTdpSvR8gmsuE54y5fw/VuScD+OPEGWIrBwIv2mlJtXI+oqSm3joWWtb VsMMRxXk7nVBDL15uRhEPM8/6j0MJ3n+UTV8qPT/eOEhSH3FgDB51eAkJgPV4GXwFS3p SAyjCVOa3zEHVpuIGEJ+OWLo+58mHc2egEFsG534PFW0c7i+Zys6hx3W2mTOx1B6FU24 kPXRTNmS+KI9g5A0h8w82UN1P7kf7vBakuxnl9NjT4YrKf4aiMf0VrX0f4KwqFog0a7i FKc2cKrsrrsot/FY8r+9Y+rs3Xw9VSr44VKWAsFnyX6a5uIzGUeMFx6JcIhUCMj0DAmC 2Z1g== X-Gm-Message-State: APjAAAX58orsuo7pAhBNiGPPUDatH8PksBXRDE9J69NnD8rGQzqKlBmT cFApkTEt9DjNwVycKCN06gTjFA== X-Received: by 2002:a6b:c389:: with SMTP id t131mr34249670iof.50.1574814785531; Tue, 26 Nov 2019 16:33:05 -0800 (PST) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id e5sm3711298ilq.77.2019.11.26.16.33.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Nov 2019 16:33:04 -0800 (PST) Subject: Re: [PATCH] fs/ext4/inode-test: Fix inode test on 32 bit platforms. To: Iurii Zaikin , brendanhiggins@google.com, tytso@mit.edu, geert@linux-m68k.org Cc: linux-ext4@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, "skh >> Shuah Khan" References: <20191127001023.63271-1-yzaikin@google.com> From: Shuah Khan Message-ID: <41d22ac8-7907-6bcf-883f-27518506b87f@linuxfoundation.org> Date: Tue, 26 Nov 2019 17:33:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191127001023.63271-1-yzaikin@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 11/26/19 5:10 PM, 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. > > Signed-off-by: Iurii Zaikin Thanks for sending the patch quickly. Please add Reported-by for Geert and also include the error he is seeing in the commit log. > --- > fs/ext4/inode-test.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ext4/inode-test.c b/fs/ext4/inode-test.c > index 92a9da1774aa..bbce1c328d85 100644 > --- a/fs/ext4/inode-test.c > +++ b/fs/ext4/inode-test.c > @@ -25,7 +25,7 @@ > * For constructing the negative timestamp lower bound value. > * binary: 10000000 00000000 00000000 00000000 > */ > -#define LOWER_MSB_1 (-0x80000000L) > +#define LOWER_MSB_1 (-(UPPER_MSB_0) - 1L) /* avoid overflow */ > /* > * For constructing the negative timestamp upper bound value. > * binary: 11111111 11111111 11111111 11111111 > -- > 2.24.0.432.g9d3f5f5b63-goog > thanks, -- Shuah