Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2628352imm; Fri, 24 Aug 2018 02:33:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYqY4asr1rpHaFzG4zK0k2LV6DMGQnvWuL5C04P6asm7Rx+GsupyFbbSnNX5FdupMWobaZY X-Received: by 2002:a62:464f:: with SMTP id t76-v6mr1103635pfa.118.1535103239148; Fri, 24 Aug 2018 02:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535103239; cv=none; d=google.com; s=arc-20160816; b=nFKVZatDvyE5bcvtIaHGCkEVQUq8yd7/mVbUDVw+zV8w9FmtrXjZC6pt0BPQkjhRWG D3nSPODZSVrhv8ZR+CB3ixJXYfkBeekHoDqx9XbyZMqkf/bgkSMHBEvdM6pp7QzruyZs 3DNCxnYWZum3rwrh9/medNQf1wdw/drdKbdht91rWr0jGEPBO/SlTC1pJ1mFQqilSRLx u5HegtTO3n879LW5rJk3MR51EQvx32ufcj5HfqouSwe0LfRrrwbJNlcz5vfTX9hLquVx gawy6lHRKiS301VVMlV3JER8FIpZcofS0H620A49hbIFUCjD3wYDNqDm64bKGjstVXxE VNTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=F2idZfVkJ1qXOK3JbG2V/nxdIrzhu73uB/2TBusRpLc=; b=R+1eHFs1AQ9d4aZtJM14W/+E7ibqPV3elYNILfZUAMftkPkp/AS+vZZJ6goc/X6mev EAyXj0zwCo5dCO3ZphJOfjZdqmcyEaUuP8zMJDaTsPBKb+N3D9ctqjTmYTJ5MRM2f042 OwDIF1M9uA6sRWvWpTD+06mlYmjwmbl27RG/JF7Z2fe0k+JHXBzIucOEtEBuec1ZptjF JIloPikUEyTannPm1dLUdBH4Ydlg9onuk3aCf4S5nA4E13lUgHO8nAkcoyQVlbPPASrj eTPlyyEdKzAZ8UXTuZvveEZy+9fyfXTUSScmCQuRvtQYiUA4Ryw3/AFhVqoEQugSRG3/ 5e/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=BoAtPDKB; 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 v4-v6si6896373pgn.110.2018.08.24.02.33.43; Fri, 24 Aug 2018 02:33:59 -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=@gmail.com header.s=20161025 header.b=BoAtPDKB; 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 S1727444AbeHXNGQ (ORCPT + 99 others); Fri, 24 Aug 2018 09:06:16 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36890 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726471AbeHXNGQ (ORCPT ); Fri, 24 Aug 2018 09:06:16 -0400 Received: by mail-pf1-f196.google.com with SMTP id h69-v6so4283258pfd.4 for ; Fri, 24 Aug 2018 02:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=F2idZfVkJ1qXOK3JbG2V/nxdIrzhu73uB/2TBusRpLc=; b=BoAtPDKBpo7Z38mhsdKONIvEzrIxMr7TTojyzO/rU8MGzQRbWunuy/8wXTvq8nzm78 iSyj0Vy2fLKJsdpGJgOPDKZiTN3fyFnUPsPdWNGy+T91qzBM/pbk2tUf1RSogYQ/r8Sy KnjPc9ITl/12SqG2AaJBtCDlDPh+HdFKMH/uYFJPjt/KFWVOKZPhLS0aK3lbhbwA056H VcCAMGW9GckbT1mXnLBrleX9C9kxM6/1IHyyteE7MLJUSmWVyo1yuEgR6udOpC/ELQQz Cjwn5tddWGZGh+QjUE/t5nzK63CAb7AlWCXM/ausIvGGgkgHIcK97mFgOKlIVGmPthEr x0Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=F2idZfVkJ1qXOK3JbG2V/nxdIrzhu73uB/2TBusRpLc=; b=JC51iYa9hg6Jqo6tVFClzaYJ6wCCOs7XWdf2zdSAWcsU+W2eDXaFUlcyn42q4G08wJ pttgM/EGE0lzUCrtkcypFMQuhGODkuYfw68NgzOLtTgSKVtZxTxlso9L10xFiLFFpiWs PA5YDMP2RLA/LwSTl7YxVAhUFP3Y4lsbTkNI7OOuGkVSfl1xc5Cfel3qZ5pFJ/yIgcbI O3DgMFHLztFv915t3FIPvc8ax1GHQ6io9dTMytmDIjrK7lN/s5ekBPKy4Sp+eHJeS0jX 6nk+IU3u0ePE9zX20TMAheSeRPhCJDqxATuG2YFfGw6yaEyIbsXYXBaBwFxwv1q83MDN vcWQ== X-Gm-Message-State: APzg51DMIn/+YG2C/09EpuBUMlLvkD2Y6Qd4f6queZiyjKFUJdEZnCmG fPJiQbOiq32/8eZ04z/5wA== X-Received: by 2002:a63:b544:: with SMTP id u4-v6mr925687pgo.247.1535103147147; Fri, 24 Aug 2018 02:32:27 -0700 (PDT) Received: from www9186uo.sakura.ne.jp (www9186uo.sakura.ne.jp. [153.121.56.200]) by smtp.gmail.com with ESMTPSA id h7-v6sm16746557pfd.155.2018.08.24.02.32.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Aug 2018 02:32:26 -0700 (PDT) From: Naoya Horiguchi To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrew Morton Subject: [PATCH v1] tools/vm/slabinfo.c: fix sign-compare warning Date: Fri, 24 Aug 2018 18:32:14 +0900 Message-Id: <1535103134-20239-1-git-send-email-n-horiguchi@ah.jp.nec.com> X-Mailer: git-send-email 2.7.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we get the following compiler warning: slabinfo.c:854:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (s->object_size < min_objsize) ^ due to the mismatch of signed/unsigned comparison. ->object_size and ->slab_size are never expected to be negative, so let's define them as unsigned int. Signed-off-by: Naoya Horiguchi --- tools/vm/slabinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git v4.18-mmotm-2018-08-17-15-48/tools/vm/slabinfo.c v4.18-mmotm-2018-08-17-15-48_patched/tools/vm/slabinfo.c index f82c2ea..eebeeb1 100644 --- v4.18-mmotm-2018-08-17-15-48/tools/vm/slabinfo.c +++ v4.18-mmotm-2018-08-17-15-48_patched/tools/vm/slabinfo.c @@ -30,9 +30,10 @@ struct slabinfo { int alias; int refs; int aliases, align, cache_dma, cpu_slabs, destroy_by_rcu; - 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; unsigned long partial, objects, slabs, objects_partial, objects_total; unsigned long alloc_fastpath, alloc_slowpath; unsigned long free_fastpath, free_slowpath; -- 2.7.0