Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp826438imm; Fri, 28 Sep 2018 07:28:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV61MpGqtf4jkU/s2tG+89IbE/YL01b6ek/25ZMJL1e+gqBXRMy9okOpMwE1b+yFROc+yY2N+ X-Received: by 2002:aa7:84c2:: with SMTP id x2-v6mr17193318pfn.220.1538144925366; Fri, 28 Sep 2018 07:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538144925; cv=none; d=google.com; s=arc-20160816; b=lyEO3UXrfffv4UMFv3i5E5E03oqCy0JGzVYND3vy6y/gK18jgVWNRz67RIGKsfCB21 bFwHZ3WDldTbel4RW2eyFnIOJEmbu9LlM4gktHZ7M+mWsLW/ZF3THCQ/2R6J2p0WVrRX 1pmXkD2YMGncQ7i5W10AGds7xW9Ha5pY8YNF1OTF7/qDDXomcaYxmd8C/gW50qKoC/yX NXpXhIgGwlY5D4MIfvzyesrPi/d620Am4Fxo/n2vvU8dv1Bz1BpMhcg/eLlCVEkmh9QV REcnfNNuTMMAlVqaB/xAEn+B9vluxSQ9WbS8oWoSsP6XeRJn6ru7apEXNFJtlg6uJS90 dMEw== 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=ttfcI1Jw3Fk7rYzhbLiiVHUbpq5goSkUSyH1zVTPCfU=; b=j1lSHSAjT+lHxYG+VG5jOAEttamH/vc95AH/jp96DEprWBfnpm27fgC/UNpdZT8bRT nIcvLZ3Z2omZhOh3c88Lo7ZOyUOQvFmXozLROk1tIf05TcGifTjvL/h3P4p44lUw9CBS wou5ZSxRp+t/jxvaasmIsZGrudofZMyHXNdph+r0ipSVrTsIgTfGYP5VPZnUtLj5//7W Ea0y5mZ2LC4cc1lsmNNXlmhDGh6C2gp9BeOCvCAKx2DjzbZ7FDwVneR1ZXjxLbtoOAuV UymeL/l8+CJembmgb28j2ltD9NnJOLq4TsiLrhoaXStm0KHCw04UV+NUplH7EE6RyK25 u+CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0X7Gw+U6; 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 m125-v6si5021475pgm.541.2018.09.28.07.28.29; Fri, 28 Sep 2018 07:28:45 -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=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=0X7Gw+U6; 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 S1729138AbeI1Uux (ORCPT + 99 others); Fri, 28 Sep 2018 16:50:53 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35018 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbeI1Uuw (ORCPT ); Fri, 28 Sep 2018 16:50:52 -0400 Received: by mail-io1-f68.google.com with SMTP id w11-v6so4312688iob.2 for ; Fri, 28 Sep 2018 07:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ttfcI1Jw3Fk7rYzhbLiiVHUbpq5goSkUSyH1zVTPCfU=; b=0X7Gw+U6z0/ElyfjQCbaQVRTbuM1tfb3gt+qALmoIOMG+hsfqd3Pil0QEVONpzTvBq MkMbcb4OZ0gf1+JY+83f9WRnOHJ5Ftt7d9pYrc8yN4Ni+sz+Spq/JpTFe16Uzta9KbpT QMOUmKeZrs8D3y5cXKmEk8ZTmKIyLIVHBZcPfC1wZu81NyOPnwrbBn4VJ5PXrZuSt7wi LvSoFNy51oNQpdw5qG+QArXdzV9lGqJIP33j9gPQvOYOKXOzrmthWSg82hqiIFap2jxM DadxIQqMNpIlsPHm3+Oi0BGrphujXB2+4/8cbBCOi3pbNdpRpwVgi/nfvGOfp/awhGwF XDrQ== 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=ttfcI1Jw3Fk7rYzhbLiiVHUbpq5goSkUSyH1zVTPCfU=; b=j8Bd/r0F4zeg8bJ/oUbxNx2fymyeePzsFMCduuxtYGjm4BJWEDD8Z29TRgYEndvXZ8 st0qWoAWD/zb4HoYFgGF+YMl7IT8rV8rr9wqURBvQkY/WDQnHB+UHI//tGe4wQ/rtJSa WLg7a+w5oJn8U4DweY+DtqLZ+fsTXE+oiL+ZqbfRrmSPgwdO1+2PD+qiPUROIJX8xWPW Xx+foXjJ9c+SwanrlpX21+oI2+ogMx5rBAEgUVRsmBwoyTiw+2Mz2g2Hjva2laG5sO20 3urcyux6a6RAcuVY7nAkAtKe1dTeuHM8bvo6bzPKtb+kuhYkfxSDGlMiyWWRJg98JGXa G7Cg== X-Gm-Message-State: ABuFfoisi/3Eeh4NodMC4hG9EO0eWg7irEU//ZphJB6Mcb060Ko5FUKH rgFqXQQ3w6XinFTCaU2db8PGPg== X-Received: by 2002:a6b:cb01:: with SMTP id b1-v6mr12646771iog.23.1538144809752; Fri, 28 Sep 2018 07:26:49 -0700 (PDT) Received: from [192.168.1.56] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id z186-v6sm896852itd.43.2018.09.28.07.26.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 07:26:48 -0700 (PDT) Subject: Re: linux-next: build warning after merge of the block tree To: Omar Sandoval , Stephen Rothwell Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Omar Sandoval References: <20180928111124.745bf2ef@canb.auug.org.au> <20180928064319.GD29754@vader> From: Jens Axboe Message-ID: Date: Fri, 28 Sep 2018 08:26:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180928064319.GD29754@vader> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/28/18 12:43 AM, Omar Sandoval wrote: > On Fri, Sep 28, 2018 at 11:11:24AM +1000, Stephen Rothwell wrote: >> Hi Jens, >> >> After merging the block tree, today's linux-next build (arm >> multi_v7_defconfig) produced this warning: >> >> block/kyber-iosched.c:84:22: warning: integer overflow in expression of type 'long int' results in '705032704' [-Woverflow] >> [KYBER_DISCARD] = 5 * NSEC_PER_SEC, >> ^ >> >> Introduced by commit >> >> 6e25cb01ea20 ("kyber: implement improved heuristics") > > Ugh, thanks for the report. This should fix it: > > diff --git a/block/kyber-iosched.c b/block/kyber-iosched.c > index 2b62e362fb36..eccac01a10b6 100644 > --- a/block/kyber-iosched.c > +++ b/block/kyber-iosched.c > @@ -79,9 +79,9 @@ static const unsigned int kyber_depth[] = { > * Default latency targets for each scheduling domain. > */ > static const u64 kyber_latency_targets[] = { > - [KYBER_READ] = 2 * NSEC_PER_MSEC, > - [KYBER_WRITE] = 10 * NSEC_PER_MSEC, > - [KYBER_DISCARD] = 5 * NSEC_PER_SEC, > + [KYBER_READ] = 2ULL * NSEC_PER_MSEC, > + [KYBER_WRITE] = 10ULL * NSEC_PER_MSEC, > + [KYBER_DISCARD] = 5ULL * NSEC_PER_SEC, > }; > > /* > > Jens, do you mind folding that in, or should I send it separately? It's already applied, so please send it in separately. We only really need it for the last one, NSEC_PER_SEC, but I agree let's do all just in case it's changed later. -- Jens Axboe