Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755697AbcJQWKS (ORCPT ); Mon, 17 Oct 2016 18:10:18 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:53304 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934956AbcJQWKI (ORCPT ); Mon, 17 Oct 2016 18:10:08 -0400 From: Arnd Bergmann To: Oleg Drokin Cc: Linus Torvalds , linux-kernel@vger.kernel.org, Arnd Bergmann , "John L . Hammond" , Jinshan Xiong , James Simmons , Andreas Dilger , Greg Kroah-Hartman , lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org Subject: [PATCH 08/28] staging: lustre: restore initialization of return code Date: Tue, 18 Oct 2016 00:08:55 +0200 Message-Id: <20161017220903.1746743-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20161017220342.1627073-1-arnd@arndb.de> References: <20161017220342.1627073-1-arnd@arndb.de> X-Provags-ID: V03:K0:oW+Daivmop4nsn0PzbrIwgbwUndcjrkNL5t5IYMtvlNnfvNEOuD x4UpNVobnEsjnr+XPjAW77knfUz1es/T72v+nAKQtWPgU+4/4bbUm8W5WVI+khniXbvaZK+ 7NTL9wKnz/bX6DjI6GmN8EgeO+uMKtpOkr5VZNqfqjwVhN6SNnRdE5cLXpM+4ugAzKLSOX5 dTk3xkzcN31wY13TrEPpg== X-UI-Out-Filterresults: notjunk:1;V01:K0:F43/w4SfJpA=:i2pNd1cO9Z9uJ2FczKXORi 6BuTZvvjwhkoOpwWlzYARomAqGyIByB0jfSIuKOiqut8xfGgh2OyMQHNY3+otj1SDtzckQ+yR c6xkLhYtKtheK6iUpqdxzISw3KcNXjeOX+IPbM9EJmrzZda070rzNaWNyJO6R7hbUGDf871pU lUlphZXjlVbePJN/E3vcmwUzTe0vqRhErh+XAsKmkBJnhzviZ4CwDWGyRP755VbjkA3NTp2hB NSd+CayxpcWMMLRFyuvoni7KR/PWqacPbtJEWh2Hho1z7n/PAiYXc2scCzN1sTm0ggiT/7M9E 62HXn89PAX4FSx1S6GBlRjHkrnjuHreXPSlOkUoyaZ8DEB0gD/udCZsCtikrbt4cLDchV1l/V 2MAqYm3ZewEk8Uy/rA1Pa+rX4h3pzxoyFj14BBeveM0NUyv/nkZAXngMPqGWnukFIqvTkHKMu tc0OSSmdUCsbLAJdkOPHlWMgKmwDIaa/uuXMmybSXCfdanZr0ewe6ZNDM4qG0tfW+kFH92ZlJ O535KmC66/7NZ/ivYlArsd5XGU5pWWx2ZQT/kffgLyanYjNKoELzU7N5JMeAhrerncrHGLEIP cKThQLF3JPsDENZnq8IextPwMJwxIjcSWCXZwW+q/cUSJj1dJcvKU+7lEOTEtnKcEDO2fBtNF bikkFdYPkanLmMkHsBaKAAAI94wy3Lk0wYoiQU6K1Wdrjyk/7L+nlanIF3WVDSPS0/m4= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1211 Lines: 32 A recent rework removed the initialization of the successful return code from lpfc_write_firmware: drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_write_firmware': drivers/scsi/lpfc/lpfc_init.c:10333:214: error: format '%ld' expects argument of type 'long int', but argument 9 has type 'size_t {aka const unsigned int}' [-Werror=format=] This adds it back. Fixes: e10a431b3fd0 ("staging: lustre: lov: move LSM to LOV layer") Cc: John L. Hammond Cc: Jinshan Xiong Cc: James Simmons Signed-off-by: Arnd Bergmann --- drivers/staging/lustre/lustre/lov/lov_pack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/lustre/lustre/lov/lov_pack.c b/drivers/staging/lustre/lustre/lov/lov_pack.c index be6e985..0439f54 100644 --- a/drivers/staging/lustre/lustre/lov/lov_pack.c +++ b/drivers/staging/lustre/lustre/lov/lov_pack.c @@ -474,6 +474,8 @@ int lov_getstripe(struct lov_object *obj, struct lov_stripe_md *lsm, ((struct lov_user_md *)lmmk)->lmm_stripe_count = lum.lmm_stripe_count; if (copy_to_user(lump, lmmk, lmm_size)) rc = -EFAULT; + else + rc = 0; out_free: kfree(lmmk); -- 2.9.0