Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp304296pxj; Thu, 20 May 2021 09:41:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzYfC418xwGxnFGjkHgwYxrDWZqETRgTjKbnjmUyV5vZzyD9U0tnlVsDQSR6Mo6mhvD8rY X-Received: by 2002:a05:6402:1582:: with SMTP id c2mr5905029edv.388.1621528908357; Thu, 20 May 2021 09:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621528908; cv=none; d=google.com; s=arc-20160816; b=dIYiFX4n5NQtpOhoNH8gb/46EsAwlm+Kv2oCaEa4sfIsyb91LJwAFCX+U0pDVyaDiT NyYtWbfrxKtaCUOzSIgfWWqLZCvlJXh3q1jRCJYfsj8Brs64OLK6jGIjwFJ1Wduokoit hjnD+BOvPtEDkLddyWnLPijwKGpziiqed7Cp+3lDF9jD7QMbdRkPOJ/SS+lXTCpP0Fe1 VGB+DRD2chXCrj5LSWLAg4h99jlGUQ/bXu/79EtqBKNUiGuEMbl7IVje08Oqm6DVDZgE 7W2cA3c1QmEmTcfxufBb0KmD7XtrJ3Hrwc2/DDE3ez+/C0lOAVw4a1VZkbzqbb7V/2Vo 9aRg== 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=iOe77QwV+XM1nPFeXX1TbW8UPYlqRDODntxqQu2CNjE=; b=q5Xwc6v47JFky1rXGJR8xaHoPzjvsDJx6jasixbtD3QFxYYB3q9NkE25YJ7KneeMi6 HBVGXc4mCTmxZreAkeleuAmNs3qMQQEVfoXAgOu8F0o6gm1xXUrg7QjDwEi4f/sQWXIb pppgnRkVIvR/b1PWm9EjAKoI2q+IRkf3hHaGbIv24uOaqdSATu77zZUpJAZ7thwQPfZf kegOM99IPvvOa7fQIsToPI2FAqgSCESUJkq+tlvzLed7mapqdq1Wx5mMKxxIHS3P4ZFV ztbAulryQQqKZ/0jJ1GYsRf84tRDXBRyQHz1vkKwZ6GTiPr8PRZQc6cIBC9aGDb3H4aa PZNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="j/fM7f3F"; 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 f5si2823295eje.733.2021.05.20.09.41.23; Thu, 20 May 2021 09:41:48 -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="j/fM7f3F"; 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 S233818AbhETJqk (ORCPT + 99 others); Thu, 20 May 2021 05:46:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:46618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233646AbhETJnW (ORCPT ); Thu, 20 May 2021 05:43:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1A8DB61440; Thu, 20 May 2021 09:32:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503168; bh=KBgj9Whg8NcgLbUX2Xtc1vIJqOwTMWowVEg19JRHroA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j/fM7f3FIj0/NZtusvK6KDCO+A2z7i4ulcebSC7NBm5Nfi6r5iQcqv1/jyRNq7mGI tsZ/AIV3MrttWQRQui4DbAXvX/OlAWUGEtgnbNGN0C0UIsWEvrQ1NzGMTg1UQzoyno ngeZN7w6aJXHMYjbf4NKFzzkNBmSxxSedI2rOYwM= 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.19 072/425] scsi: libfc: Fix a format specifier Date: Thu, 20 May 2021 11:17:21 +0200 Message-Id: <20210520092133.817573446@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@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 ff943f477d6f..f653109d56af 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c @@ -1741,7 +1741,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