From patchwork Thu Aug 23 08:59:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weikang shi X-Patchwork-Id: 10573587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 06FE41390 for ; Thu, 23 Aug 2018 08:59:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB99D2B96B for ; Thu, 23 Aug 2018 08:59:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E02AD2B96E; Thu, 23 Aug 2018 08:59:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7CC62B96B for ; Thu, 23 Aug 2018 08:59:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DF5ED6B2936; Thu, 23 Aug 2018 04:59:23 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id DA3996B2937; Thu, 23 Aug 2018 04:59:23 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB9C66B2938; Thu, 23 Aug 2018 04:59:23 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl0-f72.google.com (mail-pl0-f72.google.com [209.85.160.72]) by kanga.kvack.org (Postfix) with ESMTP id 8385D6B2936 for ; Thu, 23 Aug 2018 04:59:23 -0400 (EDT) Received: by mail-pl0-f72.google.com with SMTP id d10-v6so2225225pll.22 for ; Thu, 23 Aug 2018 01:59:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=G8wSzdtoRNiMaLVb7pD3PeExnyV73Q1lSCHz09KWTwk=; b=qMa6t9iFQZDIdztaUUGo6z2jMgPAUNjrgpk2CkNxBMaNDBBZqPstelwr6OLlHFLylC ctEB8CChRTzFWNvrI8EdL4boILobbCcpYqy2xwZZ2SEATaFsCjrmud5viSUhKRB1HWoh bl8n0XVVq1YKeAEoKR1SIVYN5PMP9NxBoRQ/WcRQjZ43h37AB2e1NnYpfv7U8/3ImFIh TsFq9Jw+7sfyvW0kR+kBdhniOezebLf2f7nKrxEYrRL893fJV2JpzCrrwBhq/txo6vQs +xFCBY5/+4Ao4Dpsc5cqkVHKmnalqJTv3WUCtgnkiE87SCVcfpJCwizH6bNLwtN4jUtg KjEw== X-Gm-Message-State: AOUpUlFQmUpYplUdJhK5x7L+PfxrLQ1wC+h6GoE0DEqYDAjDYFWNsvmC hCb2Ry5OA/JwYLqNFBmV5XKOAsHE8hcLh7bpmK7P9Kwo4rjeNG/q1kspj2ZDjEdMhskLl1+jSGF I5CVhjHrlZV83VoEMT8c4RpHKQvw1+IiL7vSWlEIwtAUdVTafAixU2qbJL2TYvV/3CJHx0KrXqC u3iWqPTkZ6JgXaRx9s2uv+YfOizp6F90SRbFH5gIzolbxfTwk97CZSog5DsWA/g6S/4D4trGjSP p17CHkQw+3Ez3yMxo/tp7yPVX62VlYBBwFluiaY+jp5NIRXjDZQ+siMH+qzlhWlSWm1qRqYIZps VildDluhGbFSLg7fiPfQQ8s7wACQDfctPPeF/D5FdTlrLebOnc9zR3XggnuxbcZoBNeZfsgKFut b X-Received: by 2002:a62:6d02:: with SMTP id i2-v6mr62132987pfc.218.1535014763183; Thu, 23 Aug 2018 01:59:23 -0700 (PDT) X-Received: by 2002:a62:6d02:: with SMTP id i2-v6mr62132930pfc.218.1535014762297; Thu, 23 Aug 2018 01:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535014762; cv=none; d=google.com; s=arc-20160816; b=S3IaX6Ud7pOaeglXfb7+33xFPaz5YfFqbVUFkaofhhq/SbVtvm7oX2uC0TS+fXF1du D3aEoRvroy/1DHp94o7aSp7ZZVr+E8qm8SoLvwncA4hH/9NKiGKx0MgiiHAI4LZq0tcp i5bYAGi9Nr2UECi4RruENl8VjpAehRc4TQR5O12Dd67WWCKpGc3jrDu1JiU4HmnOaLyq OP7mfJ4Voej5GgK5ak9w6vcoUd0jRf/rDjb09ZieLxn6/CrNpjbtgCxg/uN1hwTLnohv b67IfFenQ0H3wzBdlyPgs1i51HJK17qMMS6xlPUPEcfyvHRMLxkr4MPcP0vYj01Ot8Q+ oB0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=G8wSzdtoRNiMaLVb7pD3PeExnyV73Q1lSCHz09KWTwk=; b=w6QwS1Jwb8DooMG/6Wu5SYl9epxF1G0FUOsAY5FuePbBUif4hli7+ooia7JR2XC2Y2 qhbGnQmlyVMfklp80AIzPRIjj+ZBfF4xzmjLTCQ3OpBbT2djqNvymHr3PWfWcYzCk4SW Sb0wNLZaGn0LKb0pV6AqY3Jp5gxnpdyNC4oti8jUaBd8v/dsgCqPK2YiR76QG0fRNS6N 0Etybbnp2ucpV2iUEjZ0m6tp0PbrJG+1VStrd1sg7Rj3axmQx53t+hmPkUncDiXTMfve 4HoAJLBqnh9aB/tuoO0MGCFUpWoAb5MnMpXSvWHEZFUP4Z2JF1mDXoV9htjdPqXrBWH0 E2fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BparjLy7; spf=pass (google.com: domain of swkhack@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=swkhack@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d2-v6sor1123784pgj.305.2018.08.23.01.59.22 for (Google Transport Security); Thu, 23 Aug 2018 01:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of swkhack@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BparjLy7; spf=pass (google.com: domain of swkhack@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=swkhack@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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-Smtp-Source: AA+uWPw7ccpsHEYVwkRGgK1Nn8ePO1O1VK5keLXiuCcN3FCILpkynmDdsbF9yvNzNPSVFc8ZpTMZCA== 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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;