Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp413349pxj; Thu, 20 May 2021 12:14:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz56AX2soPRWztCxxA40yK4g1rM2iYy1zbuOR02EpL92TaoyALc9VsdGf8uUS1pTKWpa52w X-Received: by 2002:a17:907:7638:: with SMTP id jy24mr6132432ejc.120.1621538070567; Thu, 20 May 2021 12:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621538070; cv=none; d=google.com; s=arc-20160816; b=y84OWhye0/tG0bpfzLn2iHx/yICSApqQm2Eybr5amdupLDD9x7QyqUuthJnuc7oDKo Cb84I5JCCj5cGKmDItsTLsETFKJixxK+wxcsEgo5sxHgOIyRl17NH2vN5Ieofjpzc8DU 45EzldncXQ5heamW/JdRW0z/JTnrmw0pMsVBLgbvhjSFet6RGDvV4qbGUt9GQQrp7UWS Yyx9cfC7/d6GFE8XZUh2Nnsut1rj5OxeqHLzd2PrpAlqhjmzWsKctOGyZWNSJyCNmWje EYgw/rJ3/GdK6oK+DS/udcBBRflhqX7RxVYLR7x7IJE7zb45bqRINfDXtGKgxEup0k3s M1qQ== 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=1d2TDdWnjHv3aD21YdHXBbWD8RPXPWa1qpkv31GFwBw=; b=pFSCYhjtJdm9gUbFOsc7wqOvBK3RkDtveBDcj184afwAk6WilUdFeHheLOkgJcYwcq uhZGMCvhj/phYaplhKFHvhpxiALtK5/hwADhsttLqhDy9xmtzHDtUY/b+v+0wtrXSeuT YDwQmjJdcGK/lTNBIC/+VRDAWV+qfO1aGd9c6j3MKEhox8A+aHzYmlXP5jlqFoDDeenU +dkuwUmFjY/aqFZ5GaBMyG0WOwdGoHEFObkkBSI5J/rf4Zp2+fBobJRkV2mT+0JV1ZdL PspD1MnWHDLQ6u/SKSQTOtngBNyMpLgrz48AqqPDHDyDLd1znbok29tKQ70qTcSj2LYe vd8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=InNBawrE; 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 w9si3297005edx.381.2021.05.20.12.14.07; Thu, 20 May 2021 12:14:30 -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=InNBawrE; 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 S237286AbhETKdi (ORCPT + 99 others); Thu, 20 May 2021 06:33:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:51816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235501AbhETKUe (ORCPT ); Thu, 20 May 2021 06:20:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D83F8619B7; Thu, 20 May 2021 09:47:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504049; bh=XxWpKtmGXBh+wCjhl/xB/tR0SEd/k8HwnNtlnQ5hRtM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=InNBawrEir7um+0TO3husN1RS9Qu3A9tS0qaPCZb7ttGKqLGl43/7pV9nsesgaKG3 Yre8rtYaPOLvTzTXHgdLmPovomsAzgpiDXUuTJYx7x/cytoJP4GSLDId3eHaFcel3T bYfK601uVRJ57jlzqe7PxSzb6HExR7qx0EG3eVfs= 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 4.14 072/323] scsi: libfc: Fix a format specifier Date: Thu, 20 May 2021 11:19:24 +0200 Message-Id: <20210520092122.566581182@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 ca7967e390f1..5c0aa2c5fd55 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c @@ -1754,7 +1754,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