Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1002580yba; Thu, 4 Apr 2019 02:10:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkPivm7xERHKfkVpGMYWmxQgKzXcIaACbh5uWR+q9u7UL1U6i0Yz8L76yPAwi28ttdptvi X-Received: by 2002:a17:902:4681:: with SMTP id p1mr5203972pld.42.1554369007987; Thu, 04 Apr 2019 02:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554369007; cv=none; d=google.com; s=arc-20160816; b=nwlzdRbyKvd800ml9RghzFJROyd/Tc0QaVAFpvB3GqYWCLVleuyItoYYn2rf6SDLHS gEMllC0t/xpNybTv0ezhQD8omkdZVfj7lf+7gWRQ4QSRqqjrySNzaQPyPP0sQQ3CFr+E +dznbqATwCPY9W4weDzlH4HajP1013sR2w/Vv7ZEs9BQex+i+0VpqZ5iXulXdbSX8KaF 280ed7TShfsbMBoCOEgIowEc166dCsXdtDtcE5aCPLFTqS1ImmYttfNWwQshBhlkfYpL 9I7nizS7d//kjGcIlbyfSMs2DqkpuxaKLCGBVWoOgqAkJkB/TtUoK7ByNDqdeEWgStPw LNug== 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=PnzYiBjBX/GJY922Lslztrb/6PJyNz//HkJMcKcmgzo=; b=larwgNtlT7T5kHg4J4m9wTdU9jxaMoSHXLfScX7OEs/cThtQBC7DxRPp3FUSZPOEfX p0X3/+mt4xvCvTnblDPa5Jyd35VOn9+WcXcuIAPTGuNc0uBKGd/xVTZL5huQs30oGoEa LW09amvcQrMJGsXb7ejjL8ujAA0t5XMf6DasdruFJWkco8WTBiAE7rl6qqwx4QGfEfzw 8uiyW1M7iQgtPWt3JOYYeYXPIFmuNVVTYDcxyUS/cIjxGiI/zr3pASCWh0dpg6aN+dhL fPUAfw+PsOnWhRe1a57EVBYAg73K0NU3LaRaP37C+B7iUhG1ROp8OdiNoKqgou+uHFgT N4GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qda5zGXg; 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 h8si15385232pgp.446.2019.04.04.02.09.53; Thu, 04 Apr 2019 02:10:07 -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=@kernel.org header.s=default header.b=Qda5zGXg; 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 S1732795AbfDDJJR (ORCPT + 99 others); Thu, 4 Apr 2019 05:09:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:48350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731894AbfDDJJM (ORCPT ); Thu, 4 Apr 2019 05:09:12 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 1E8622075E; Thu, 4 Apr 2019 09:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368951; bh=LhOHW4mCyl2nmaBN0ZS+FKNTjFjxewPlG8t8dfWyp68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qda5zGXge91TtmkkW2jgoiCWtbmQhIKaNyFj0vJDvQCx5Xrsjt6XeJKPTwQZByF9k Jx/pV/U7DYpj96FhWH31cHmGkhijwdECzgvXE7mM2K/5nG19xk/rYCUN12iJ4MxhJ0 BVX2aLcJLLKsqknf08pTIQh+RgJWVONiD2z9SvQU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Louis Taylor , Steve French , Nick Desaulniers , Sasha Levin Subject: [PATCH 5.0 042/246] cifs: use correct format characters Date: Thu, 4 Apr 2019 10:45:42 +0200 Message-Id: <20190404084620.507441471@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@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 5.0-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 259594bea574e515a148171b5cd84ce5cbdc028a ] When compiling with -Wformat, clang emits the following warnings: fs/cifs/smb1ops.c:312:20: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] tgt_total_cnt, total_in_tgt); ^~~~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:289:4: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->flags, ref->server_type); ^~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:289:16: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->flags, ref->server_type); ^~~~~~~~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:291:4: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->ref_flag, ref->path_consumed); ^~~~~~~~~~~~~ fs/cifs/cifs_dfs_ref.c:291:19: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] ref->ref_flag, ref->path_consumed); ^~~~~~~~~~~~~~~~~~ The types of these arguments are unconditionally defined, so this patch updates the format character to the correct ones for ints and unsigned ints. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Louis Taylor Signed-off-by: Steve French Reviewed-by: Nick Desaulniers Signed-off-by: Sasha Levin --- fs/cifs/cifs_dfs_ref.c | 4 ++-- fs/cifs/smb1ops.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c index d9b99abe1243..5d83c924cc47 100644 --- a/fs/cifs/cifs_dfs_ref.c +++ b/fs/cifs/cifs_dfs_ref.c @@ -285,9 +285,9 @@ static void dump_referral(const struct dfs_info3_param *ref) { cifs_dbg(FYI, "DFS: ref path: %s\n", ref->path_name); cifs_dbg(FYI, "DFS: node path: %s\n", ref->node_name); - cifs_dbg(FYI, "DFS: fl: %hd, srv_type: %hd\n", + cifs_dbg(FYI, "DFS: fl: %d, srv_type: %d\n", ref->flags, ref->server_type); - cifs_dbg(FYI, "DFS: ref_flags: %hd, path_consumed: %hd\n", + cifs_dbg(FYI, "DFS: ref_flags: %d, path_consumed: %d\n", ref->ref_flag, ref->path_consumed); } diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 32a6c020478f..20a88776f04d 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c @@ -308,7 +308,7 @@ coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) remaining = tgt_total_cnt - total_in_tgt; if (remaining < 0) { - cifs_dbg(FYI, "Server sent too much data. tgt_total_cnt=%hu total_in_tgt=%hu\n", + cifs_dbg(FYI, "Server sent too much data. tgt_total_cnt=%hu total_in_tgt=%u\n", tgt_total_cnt, total_in_tgt); return -EPROTO; } -- 2.19.1