Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1983869imu; Fri, 14 Dec 2018 04:04:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/UnN5k6AQKlB01TUVIXqUpfMhAGYCYA8irnOl32KsgVPSX8sBCjTC052bxq9POjR7bJ1imJ X-Received: by 2002:a17:902:887:: with SMTP id 7mr2610595pll.164.1544789092896; Fri, 14 Dec 2018 04:04:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789092; cv=none; d=google.com; s=arc-20160816; b=zDvGcRENbd933GnzvWXV2Q+ZnKVSVzvvpyifn0EgOo80MaqyssTwZTy2a5GkOFCURB /7S075bPXbzuptLF2cHNYZdv5h24Rt0QyUL7IFeFjOjWlHzxyP/osI/Rfx8+VqyY64rY QbH2RywucKxKZjWPII42QJo96QNHFQ3+ZyiIovKtfjnX6X0fXgHEhQMqXX1JpibZ5oZH 5Rbs/afT2D8x+MPV0QLW7rFLakvgpJvFWdG7F52F6XuKx5w0KzqBN4G8Q1x/5ZAdCOx9 YkPBwdov3OZsgmGZM7BwQhwjFEaECzkiB5lht/eP/0vPIypoOkXppbodbDambt2SH+Gf zL3g== 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=yDFZREVD/aqIDhD4SoMDHygiNw5BhaQCpshucfceBvI=; b=pBpuD9GkZIJkQn39xBAc1WIpqrxmAzcxTe/p+tKTKm3uf43MXeGNObSaSodxSzpcFI Ca4VYUYy+PQp59vnAoYOjUW9jSijrhvadDFBb6+3gpHONEnZqFvP6rBymmNevFst6+75 T9px8BCNRpMgJlEl8VWFBkd6/gfBWY2uTWwAZnVzncUubyo2PfPSdax3lliN5Ag4J8ex bcOpmC+4WsvoZX2xNyS7TMu0L/MfIwXe9xacLSz67g+TQuFDZkWGu09YtaGu3ejTCdmu z9xYE0SR0fazpBVqvjNDPs7exBTbpH/zoYV73xoaQuquW1uPCI9eiDGDVkXJXxMosnGq /tEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EJtHJuU0; 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.04.14; Fri, 14 Dec 2018 04:04:52 -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=EJtHJuU0; 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 S1730060AbeLNMCa (ORCPT + 99 others); Fri, 14 Dec 2018 07:02:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:45414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729488AbeLNMC2 (ORCPT ); Fri, 14 Dec 2018 07:02:28 -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 BD9F62145D; Fri, 14 Dec 2018 12:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544788948; bh=bhIDoveyRB4b7aBusXCHsUkYw1ylCCf2U3C3bIEac6c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EJtHJuU0+Hr04f/1aaOecO1aYNmZiipvw/Rjt0VQoA80LWYeogKXrfZVWGVSH0dAh vQt78rNlH40X4nZ1VKucZ+0CdsvvCctftBe6XUXsfM9MCQ29d59icuN6qy/T+JjAfH TWyudEAUo043DVDX6HLYEdNoNr+EwdC+NBlKYg54= 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.19 035/142] sysv: return err instead of 0 in __sysv_write_inode Date: Fri, 14 Dec 2018 12:58:40 +0100 Message-Id: <20181214115748.452422310@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@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.19-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 499a20a5a010..273736f41be3 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