Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1992643imu; Fri, 14 Dec 2018 04:11:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJRtMuL/raJHskITX4TyIk4w6sp8ZWobZdqufvdqqDPCo3afGXzMwgKR31eJtiCwNB6cfs X-Received: by 2002:a63:3858:: with SMTP id h24mr2411050pgn.300.1544789504630; Fri, 14 Dec 2018 04:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789504; cv=none; d=google.com; s=arc-20160816; b=HFm7lstnOicGgr5b/ZlDKhp6N4+0H8WMDmqoSk+F9VZpOht3xoOjhCC//c2xbAJCcT tNp+1j//fzbu0SNU4z8xJXXhWaakvHfzQtfut3Eyrtk0PQiGAljJ4OHJ0iJUxBWwGDTm OHAptIfMi6jgITlcgFnyKsR1dM+sFPVxYfLJBPWTTZX6T1FcpFhddMggIY46lPRkNzwa Y4an7LrsUuYXRKSiRE/cF4izdx9V2pCMlMuU4bVgPQdyvTbqBV7gxpbXM50qXghMuUVx zI2vUElyMluKASR4lEZwncAUlNNQaMiQC7ohmLoddRhrbmbUWr8asSi5Bl66uUtCUOCj BFfQ== 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=FM3FOQPg5A4vYP13vBvPjSDQnpRGac69BNkaL3xERM4=; b=mhMEIvpdVgb6UucbLOtoAREhP+/4Qm2UKCubZO3D/XPfOY/eTJJFpH3KvOEcbrgeSS YO7wlKJ32sss4dcWVEx5RYZZb4dA0nRm/rBTl3nQEyW7kGS+h8M8B3XYgBXZBtJNpBp9 Zy/55d3otn5wTNguktDxSaWoMbug3hnkzV/VMp1gwq8PQa9n5wOfkSAq1bJuKcDw8Gxa 2LHLqBHjh5aPPDSiIfwWgyQa9/c03j8UZB2zuulOrrMdPo41hbibmuIn4rWC56NNrpjB O34Cjm3HKR8PkTOMd70PE9dYLHZzU0yuXSmrQjkUQJmugeCq1KByhp+h0siRrnjiI/Aa JG2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jWDRScGX; 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 l30si3974540plg.113.2018.12.14.04.11.13; Fri, 14 Dec 2018 04:11:44 -0800 (PST) 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=jWDRScGX; 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 S1730605AbeLNMJB (ORCPT + 99 others); Fri, 14 Dec 2018 07:09:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:54524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730560AbeLNMI4 (ORCPT ); Fri, 14 Dec 2018 07:08:56 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 CE6682147D; Fri, 14 Dec 2018 12:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789336; bh=nxLt1qhzdrOos9KEybKJSv/2Mw0VmNxL0QbE+NoW2Fg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jWDRScGXtKF8jlUuvc/oB2f+3cGGI/3Ty7VT4HvFu2odT4/ktfXQSQrlC5S41LFKZ M029wkgOXtCLXqM9qbAw+M7LnQPprHCj2qqGW+tWDKsh2VBjdqSeXYPW41B9SVXqdV 4lDFaic/XB5+He1IYxylLcao6qeB9La/c0RZqdYk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Al Viro , Sasha Levin Subject: [PATCH 4.14 21/89] sysv: return err instead of 0 in __sysv_write_inode Date: Fri, 14 Dec 2018 12:59:34 +0100 Message-Id: <20181214115730.721891833@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115729.658859279@linuxfoundation.org> References: <20181214115729.658859279@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit c4b7d1ba7d263b74bb72e9325262a67139605cde ] Fixes gcc '-Wunused-but-set-variable' warning: fs/sysv/inode.c: In function '__sysv_write_inode': fs/sysv/inode.c:239:6: warning: variable 'err' set but not used [-Wunused-but-set-variable] __sysv_write_inode should return 'err' instead of 0 Fixes: 05459ca81ac3 ("repair sysv_write_inode(), switch sysv to simple_fsync()") Signed-off-by: YueHaibing Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- fs/sysv/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index 3c47b7d5d4cf..9e0874d1524c 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c @@ -275,7 +275,7 @@ static int __sysv_write_inode(struct inode *inode, int wait) } } brelse(bh); - return 0; + return err; } int sysv_write_inode(struct inode *inode, struct writeback_control *wbc) -- 2.19.1