Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp61267pxj; Thu, 20 May 2021 04:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDQVKidA6W+Kp+vJ0ArRAAX0IClz1biY/fWQ8ILJzU7p3PoERqqc0jTr26AbRKSYh62+Md X-Received: by 2002:aa7:c787:: with SMTP id n7mr4517806eds.309.1621510558781; Thu, 20 May 2021 04:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621510558; cv=none; d=google.com; s=arc-20160816; b=bnaMAh6mB/xwrs4M33SYAYQcCLeMCW7Oc8ImP0C0aZG3o6w266Lwt+ZZoAVUr/Hwrd viZTGxZHWNUgypRbjJYjqram+avm3TFPkw7lO92iPqkatufkK7hGR5YompWuwPTqdJge TFDw59Q7G7FYFhYPHTQNt0V00zjEkGoQanjSH7/31SbLJOE1yXz7hXnjPqSuMgrnk8Lc Bhjg7iQFEA4kOCR8MD4KbqVpJSTeu1fhMybFpdPMPe2XvWXjebe4YpIt+OX2QTX3KqEk Nd6LR32AU8JG+0Fm+iwik3ZUpXFzdmADfE1B4lsXYyuUEXe+o/V+v4Mbycsw5y9DIvxr Elmw== 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=vZ9DdDFTJ2HpQ0yB5CAxr/WE40dqn4GJbhRkiZENZXI=; b=oFIsLnW/wOoPKp5XbpA87z7ARfOdQ0RGPC5xsD69KzMI+EcUA8KZZ5H+sxpJ6aTsmB xT2+AMWrABXpfTtqRA3IZsVyXXnUpLs6DTGdUAvofY+i0YHVvh6GeTnw39mRtFaOKikD Ol+w8eEDeqGUYLXHUPYXnypxvWcrRODDJAuFrkmsj9BY3UYmO0al1XDgVmW3/gKP5qW/ AIo0OPVJOC2Iyw96rmmuhfey2CfmyZssT+hZf11pZ5AzD/iF2Hbk/Xs5T5fDU6U9nwTu PIVaBMhVoByImER4rCSCKE9yzfkQEIMD6hYeLje7urYUCRsMDIX9sjU4RceDuaXG788w hO7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JQBL2hD8; 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 l16si2274900edj.405.2021.05.20.04.35.34; Thu, 20 May 2021 04:35:58 -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=JQBL2hD8; 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 S242085AbhETLeY (ORCPT + 99 others); Thu, 20 May 2021 07:34:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:56412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238424AbhETLNh (ORCPT ); Thu, 20 May 2021 07:13:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ECB9561943; Thu, 20 May 2021 10:08:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505302; bh=hZvv2NqKUI4KZS94mjZPDWYNClj7uCjaJrTt6DLLZ4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JQBL2hD8BGrI1ODlfcAZeqC6+fP3l0GtFeIphEud58qI+w4wDK9Rdb0myxXIsnonz vuAjdejvDz5uRN8eEENNJXOB767b/+Fzw/SGKcmXSU3p8Tg+73dA14UViPR+caN/nW QE04HCREa0zGR1qPQc6mPCZDTwfpysUH+6flg+v8= 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.4 038/190] scsi: libfc: Fix a format specifier Date: Thu, 20 May 2021 11:21:42 +0200 Message-Id: <20210520092103.426637637@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 867fc036d6ef..815d224b9ff8 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