Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2489806pxj; Mon, 10 May 2021 04:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQhIeXSEzE5ndZqQRRgxVlgPCnqptUmkZUGvOu1/0efcbzNL2851WuMxKu58GC6RshPUIq X-Received: by 2002:a05:6e02:b2c:: with SMTP id e12mr4171631ilu.136.1620645667018; Mon, 10 May 2021 04:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645667; cv=none; d=google.com; s=arc-20160816; b=jtmuxAu9ZbKMnlWVZImFZ3Eja/BLa6BX1bL5St4y0M8aQPCCo4CZPbse120wmJXzJR pYy0Smd2Xvozu88qzUdlaURp8t5FTJzqmeSjhWC8AY7UHW6q2Uc9BA+2+OofkrON+6k1 JY8jhga9fnc7RnCiumoViTU8/3IH/BGWLowYZSNJdgrDYuIdeX7h1T7r6CxFIs3EvFY7 eCJi+UUD1D0g9FngUJqAo6JRqG7kmHBGAlTTwEx25bs/oDg2HbtsM1g/fXxamTGjue41 dWyKfpAfe8RSSl+N3ZK1pK5ouR7CV8xl+Dr/In1K6/gqCJ//YfUIjhSc+4kZvkgDtU/K ZxXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ch8Cja3eCz/uvJYOPr82JG9ucGuYaXi640RWo11isCA=; b=YGh84hNmEiXVobmaze/MdmotVP36LVcNqVShcUI+XA/RPOxsGLugzoiOk5PU8x2/oz 2IWJ6dROZWLohIZA73TRuAI/d4bRnSzErpgvutOmbVno8YzIQvHkXzlu96BHTMGT50vg VBHXoRAzFj9d7LvMXYB69P4t2OdiA7GXlFBo51UhVroD27NDs8gQBX18oz8Rnv4lvNAU wD1IvUA5TpTq28w8tmrX1UJy974MH38GydO36NYU9m8usDMXxX0wR5GhrXtDgrA2353a d6HOetKRRFTkBA8mn90Bp8yC16VfsadPRUUCvcsg5nVfJnZo/7n69qnam5HL8trsaFvR iuIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BvOIAr11; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si20054473jat.35.2021.05.10.04.20.54; Mon, 10 May 2021 04:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BvOIAr11; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237982AbhEJLQm (ORCPT + 99 others); Mon, 10 May 2021 07:16:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:46292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232431AbhEJKwJ (ORCPT ); Mon, 10 May 2021 06:52:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C84BE61962; Mon, 10 May 2021 10:40:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643244; bh=L66Dg4efrjTlEdVkkjD8JcYEnpuE6xHh4jiXg+tdQJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BvOIAr11+GKdCfMpPQisJLE1OIwsyXCkzkyJlqrx/HJn6bdtXcGKb1TputQXzPJoz NtT6YXFohDv+spiTgxDXeGH1dJ/HsaKwxCKNPYv2FbgVlXd36RYcWSkAkxvD+1RueT 7lfhPG+6WTHoZOcrvAWl+ycUq2cWVlBTHEiuIbLo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , Bart Van Assche , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 202/299] scsi: libfc: Fix a format specifier Date: Mon, 10 May 2021 12:19:59 +0200 Message-Id: <20210510102011.611370795@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Van Assche [ Upstream commit 90d6697810f06aceea9de71ad836a8c7669789cd ] Since the 'mfs' member has been declared as 'u32' in include/scsi/libfc.h, use the %u format specifier instead of %hu. This patch fixes the following clang compiler warning: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat] "lport->mfs:%hu\n", mfs, lport->mfs); ~~~ ^~~~~~~~~~ %u Link: https://lore.kernel.org/r/20210415220826.29438-8-bvanassche@acm.org Cc: Hannes Reinecke Signed-off-by: Bart Van Assche Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/libfc/fc_lport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c index 6557fda85c5c..abb14b206be0 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c @@ -1731,7 +1731,7 @@ void fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, if (mfs < FC_SP_MIN_MAX_PAYLOAD || mfs > FC_SP_MAX_MAX_PAYLOAD) { FC_LPORT_DBG(lport, "FLOGI bad mfs:%hu response, " - "lport->mfs:%hu\n", mfs, lport->mfs); + "lport->mfs:%u\n", mfs, lport->mfs); fc_lport_error(lport, fp); goto out; } -- 2.30.2