Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3940141imm; Mon, 8 Oct 2018 12:02:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV63OIaGb8l7v1nAPsDDKBlPhTHwVMA3hJxG1v21KPlK+gy7KScqd6Y9ly5hzjV0VAGOxVw3Y X-Received: by 2002:a63:5747:: with SMTP id h7-v6mr22413998pgm.423.1539025331992; Mon, 08 Oct 2018 12:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539025331; cv=none; d=google.com; s=arc-20160816; b=L3IpfZxoywnRj958fxLm/3vFhiUue12wh1e0RwF6BYRxoPyZG9lD6fegvc+xeJQlHe wgsjyxiT1GZg7+aJrp8RHc8m3AUbKX74npdvOgiPlkLbL/YTU51vL5zx0gtR8tAWioR7 puQeybpKPXrITsLLF5qf9aVZ07jrOm/SzDzRRdpNcddtsBTlPfEjSitlPhWepfRC4eDW ZAumooKaFm1NSz2Ke9QTeco5CMeaVIk2JnTg9uUtBZzkx11LH4IdTEerAeusnPIdWr3m TSiCGoHtBFaLzv5tVBXspuwiU2c3VXKMIQ0/ad2xGN2UWxzG0Yre5okdiWRR2L4fee9Y MJcg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2hGIQFL5y9phrVWYGtcn6jaybnQ88Ah7RuJC0/Cvpp0=; b=vxrp6S5lIzUDY6Qf51EEqjBk/BlgULN2IxeOpEXqjjX9xLjS+iEAgEzrOnnuc/ulXd AryYJcssDxIehez1IVvbEutn+5oD41BF/c1xXjQwN9lDSkpkTRsIBu8vtC2Wyg454r3E Xa5UDLhDuQNMvgitMeTTUafQh3S2j4ZWp036P2ho1KKVZ4sJJyP8TMBbuiuaESZjpDJn gs6FFuK5EK20XYWpm8uyWm/sv15zYcsB9P8h/cf++JvtBnZUwwZOoRgpU4VHtdyCQiy6 06eCKOPATa1+LcgqmnZD2A1G3yT9hFdn95/sKX3sBIgiC5v2xnYPmw6xfzNML9uoVSI9 wh7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u8jgRO+L; 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 l1-v6si16853331pld.375.2018.10.08.12.01.56; Mon, 08 Oct 2018 12:02:11 -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.org header.s=default header.b=u8jgRO+L; 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 S1731750AbeJICB7 (ORCPT + 99 others); Mon, 8 Oct 2018 22:01:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:51138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726991AbeJICB5 (ORCPT ); Mon, 8 Oct 2018 22:01:57 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1C4692087D; Mon, 8 Oct 2018 18:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024530; bh=P9bCwj0AUdJgfJbCGqRhOZOVXFbnv4oBEVlz9EGlmFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u8jgRO+LZ2kbwPqoFNS1mgDDAhXSGP5vVfzu8sNkuA+9BspseoPyCWDjmaZp1n0dJ Vb7qCN5j9o24kZLe/SQl7Dkx2V9nGJgBW5ebGbg2v5GiY1y53CT1zFhKqPZwEzhmaS /sy7vFNS2Nyghvn9lDFGTC0UP579dtmuPVee7L44= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Naoya Horiguchi , Andrew Morton , Matthew Wilcox , Linus Torvalds , Sasha Levin Subject: [PATCH 4.18 071/168] tools/vm/slabinfo.c: fix sign-compare warning Date: Mon, 8 Oct 2018 20:30:51 +0200 Message-Id: <20181008175622.765732078@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Naoya Horiguchi [ Upstream commit 904506562e0856f2535d876407d087c9459d345b ] 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. [n-horiguchi@ah.jp.nec.com: convert everything - none of these can be negative] Link: http://lkml.kernel.org/r/20180826234947.GA9787@hori1.linux.bs1.fc.nec.co.jp Link: http://lkml.kernel.org/r/1535103134-20239-1-git-send-email-n-horiguchi@ah.jp.nec.com Signed-off-by: Naoya Horiguchi Reviewed-by: Andrew Morton Cc: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/vm/slabinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/vm/slabinfo.c +++ b/tools/vm/slabinfo.c @@ -30,8 +30,8 @@ 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; + unsigned int hwcache_align, object_size, objs_per_slab; + unsigned int sanity_checks, slab_size, store_user, trace; int order, poison, reclaim_account, red_zone; unsigned long partial, objects, slabs, objects_partial, objects_total; unsigned long alloc_fastpath, alloc_slowpath;