Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1791485imm; Thu, 23 Aug 2018 08:49:36 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyGs29DsCH+4LoI6Rzk6RtbdL+bkj97y5ykCnPuWpr62jN8nLJNdWcRncPWvOiQT9ozTjh6 X-Received: by 2002:a62:e813:: with SMTP id c19-v6mr63123768pfi.124.1535039376737; Thu, 23 Aug 2018 08:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535039376; cv=none; d=google.com; s=arc-20160816; b=rogKFWNkZcsou7qHxP6U4oADPeFpwOCjXLZP4D3nQklPd4QdbyeJfIwszlFsCTnIaV QK6/Ai/6ga0utwbzSvJmkwIzgW/VF1UBMMyq2Az8GVUatMMZSD+I2AUEX0bOw2u42TAo dl9JZYVZc9A8M+6ro76IxTKtAx9c4yNlaVGp4eBmvOXoD1etKFdZCaf7aI0BMXFuP0FJ uqeKaAmfZw1ldGKPtTS2xANi4I8+I+3gz4CXY06N8SkO6QfeqEHRN25VzKJbGqGokubg kXOtzNckN28CNAM4uwyWOpCIuJ3nR16zm4e+inFPmAn0PQ+NDU2wsjBFlA66roUy3juI j7gw== 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=G8wSzdtoRNiMaLVb7pD3PeExnyV73Q1lSCHz09KWTwk=; b=lnMGwlNqGLzbY1FvfKvDkyeLuTpFu5XPF6x4lwT2X251Yo0v+qnIr2E9fPRVEiBr5f z6TMhpnHiUQm8Fhi/aP12YzQQL0dGpYmqQGOSbsKpAe4/Jnyns7OzbRMHIr7b35Ybapt BV5gHyhdfVA4GlDOif0PSY8gp2j9WwG3gH6Y+0THR7TTi+/79Z5M0N77UdX+UfWe+RA4 BtT35i4sWH9mvSqLUvhTuC4ZSojmvHK8FXSO61q/96reR5DlAR1L+aZ3eZqFN49VKAfC ixf7fXlTK1i320HNxTK4NF+Qz8l0pujLKcHjKPTpsMoXhNyU6vuwlsw8oERq3wg6+o4R Dcxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BparjLy7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m28-v6si4408032pgd.358.2018.08.23.08.49.21; Thu, 23 Aug 2018 08:49:36 -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=@gmail.com header.s=20161025 header.b=BparjLy7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729359AbeHWMfn (ORCPT + 99 others); Thu, 23 Aug 2018 08:35:43 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42919 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727540AbeHWM2D (ORCPT ); Thu, 23 Aug 2018 08:28:03 -0400 Received: by mail-pg1-f194.google.com with SMTP id y4-v6so2243084pgp.9 for ; Thu, 23 Aug 2018 01:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=G8wSzdtoRNiMaLVb7pD3PeExnyV73Q1lSCHz09KWTwk=; b=BparjLy7qejScg0Va8lnp/643phch+Wa51fVT+z6f6jjWRN7Z5gyIt/e5fM1oqklvx wDRGVMfRTzPvW3lpZaTuWdRqVoskAjHGs2p5wC3f0kNpPRlhm4N84mo0Uufro0vcqGXa pivmLqGgY6olEGlPAQWYNTjWPTXsxfEKJxW7KLfYkEmw5ZgjJPnMqRDn8h6u0I0zBOd6 2cJJCCLnYP1gDoNR4wevJF/KFztrhIUHlGS5iCGkmLfWVlsMQ4Yg5d3XM18Jxi6vRhv1 vcPWe2r5oCKnzs/ZH29C8/UApbuPE1KluCBD88bTXhBgRzodf/ADjwpI2tVrcGNlm9Ez cP8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G8wSzdtoRNiMaLVb7pD3PeExnyV73Q1lSCHz09KWTwk=; b=hRAlghEHrq+7znf4cvsFPSaarivnt2qRgWtWqIcSkuhR5FnYeieH78xdQ9Yp+XZQBS FyGFQ5WkkVQrIA0I0kGVos0LAYVm6qOfWVf9tHQg3piXibIt24xob8hxQ8B3WEoz0uf4 J9vLzOu2YiIT5k5NrWI2ZvwWeNMy+xJHGNKZeel2hHrrUnS70wEtx8ZCxHxnkESxH4CR QujpoHMvLvaqQwDsnrH1JM7CSKzUfQ7nLyhvfk2sUxZIdKs1HBgQuOrhHlR+g9obcGwj lX4z54pwkaeX2EEQv3kg1FoUB/2ZH7AaFH/QVW/2NOhXaqaeUY9RfNM7+UyMPMjcEI8L OzcA== X-Gm-Message-State: AOUpUlFdm0yuIr6WFDlIrZs+Cg7UqSNzCJ3zY/WQ8FEr2cymOgdwFT1Q jScz/h+P7YnOwEFtD8UlQJ4= X-Received: by 2002:a63:2744:: with SMTP id n65-v6mr25237644pgn.29.1535014762031; Thu, 23 Aug 2018 01:59:22 -0700 (PDT) Received: from localhost.localdomain ([104.192.108.9]) by smtp.gmail.com with ESMTPSA id t86-v6sm808643pfe.109.2018.08.23.01.59.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Aug 2018 01:59:21 -0700 (PDT) From: Weikang Shi To: akpm@linux-foundation.org Cc: alexander.h.duyck@intel.com, mhocko@suse.com, vbabka@suse.cz, mgorman@suse.de, l.stach@pengutronix.de, vdavydov.dev@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, my_email@gmail.com, Weikang Shi Subject: [PATCH] fs: fix local var type Date: Thu, 23 Aug 2018 01:59:14 -0700 Message-Id: <1535014754-31918-1-git-send-email-swkhack@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the seq_hex_dump function,the remaining variable is int, but it receive a type of size_t argument. So I change the type of remaining Signed-off-by: Weikang Shi --- fs/seq_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/seq_file.c b/fs/seq_file.c index 1dea7a8..d0e8bec 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -847,7 +847,8 @@ void seq_hex_dump(struct seq_file *m, const char *prefix_str, int prefix_type, bool ascii) { const u8 *ptr = buf; - int i, linelen, remaining = len; + int i, linelen; + size_t remaining = len; char *buffer; size_t size; int ret; -- 2.7.4