Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4496481imm; Sat, 25 Aug 2018 19:23:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZojjrb8F1SkrUGwRMCP/+xzgMQs5Chz661heXH8cTdZwhG+Z28rcjgoP8JTeQhNqsrW/Vd X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr7591423plf.126.1535250206510; Sat, 25 Aug 2018 19:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535250206; cv=none; d=google.com; s=arc-20160816; b=NyFx0ksK5LsbVfoOITkPy/B4XJ01ArlS7+Ju856Qh1ssnr+iCzOkp/k8BR8MPazm52 PKEfkODd1NFb358pet/RbgSVnbjoROdR+LqudVNmnMBVTswTe1/Og7PNnGpozhK+Ol1N 4gFPnIRBMj+3vGj7sdIdzRoBHWYZO8C64NgcCOyfzMB5Hu+hij1WG2YkjVWF08xzZUOq V7ESUEATLufdmAbBH9zHAmYRjyGSNDYLLLPbEY1Z5TPR6Ug4YBTlZLgxS2627/Mx6EvB ovieCpDWTqW8ksLEAjnkkANnKEPujtqtiDtRBlsRQdcBLDVfY4f9bPDPcDKp6fmTFYrH 1uJA== 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=DXy3C9g9nLljUsZFqz4KhJJhvxeq1dFvY/ZAYpt/Fyg=; b=1AL/tT5MrbC5WSGVxIKipIsD+hpxaWup4/ehoer7LqDAaRyo0lmKKcQdzgARolKWT7 Yc35vY6UuX9JyRU8yt1CKMrEtlNiv7P1AZc9kQkS+Mrci0jxMlpmORUSX5CLkwBmV71m tQtOEdFhu0dARIkfdK7OIcGFa18E7JpKnysjICPOGqzeTYnFSZmnTjKJ4dMt4fjxj1uM W3RhhdZcz6EKV/Q3iDe6TucETEyCPzN1GukrDEUjnbUBkYbPv1slnIi3HRMlHDZbBC9g gF6cdVAMG+7m7Y6vPJYkn8RsWKt8WvNkg7CLzyE90UT+5TlPV7+tt+B9mmU7G1KXTJe9 f/MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="jzuS/ndi"; 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 64-v6si8204738pfs.7.2018.08.25.19.22.59; Sat, 25 Aug 2018 19:23:26 -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="jzuS/ndi"; 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 S1726611AbeHZGCK (ORCPT + 99 others); Sun, 26 Aug 2018 02:02:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37046 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbeHZGCK (ORCPT ); Sun, 26 Aug 2018 02:02:10 -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=DXy3C9g9nLljUsZFqz4KhJJhvxeq1dFvY/ZAYpt/Fyg=; b=jzuS/nditHz2BJKNVlOyA3SDA IqF/jWB4i2Visz2qsujOFrwJ++ktSYQy24oUJhh0ow9arwUuGN52ZVnameIq3jwyggaefBmBYTWFB lyAtX/vlukgkwhdO1SwF2mSNAD1aoqqgZvWgyFRuMEL2COgyEApKgPjIVnPD4XrOiwt5RIaSmgAc4 tA9NKQRBkyEDZT68SGO9Rk6/kIItslfinhi889BiIcQouf9pqPr9pXWKVPM3uj3oBDhtoJ3UOzgyn WIJHsdVhR9ccsQvdPk8zWmEKiTncQdEKcLLhcVy6b0nsdKsqBGezTIaVKtCxkohMF6rVo6L4BbH2j AAPGYztkw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftkfy-0007md-Iv; Sun, 26 Aug 2018 02:21:14 +0000 Date: Sat, 25 Aug 2018 19:21:14 -0700 From: Matthew Wilcox To: Naoya Horiguchi Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH v1] tools/vm/slabinfo.c: fix sign-compare warning Message-ID: <20180826022114.GA23206@bombadil.infradead.org> References: <1535103134-20239-1-git-send-email-n-horiguchi@ah.jp.nec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535103134-20239-1-git-send-email-n-horiguchi@ah.jp.nec.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 06:32:14PM +0900, Naoya Horiguchi wrote: > - int hwcache_align, object_size, objs_per_slab; > - int sanity_checks, slab_size, store_user, trace; > + int hwcache_align, objs_per_slab; > + int sanity_checks, store_user, trace; > int order, poison, reclaim_account, red_zone; > + unsigned int object_size, slab_size; Surely hwcache_align and objs_per_slab can't be negative either? Nor the other three. So maybe convert all seven of these variables to unsigned int?