From patchwork Wed Dec 23 19:30:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 11988807 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35EC5C433E0 for ; Wed, 23 Dec 2020 19:32:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 078AC223E0 for ; Wed, 23 Dec 2020 19:32:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728610AbgLWTcR (ORCPT ); Wed, 23 Dec 2020 14:32:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:30627 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728395AbgLWTcQ (ORCPT ); Wed, 23 Dec 2020 14:32:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608751850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kJjdbOEEwK1FgkEiEXoUPnsXX70awX/jULTzmJUO6PI=; b=Uq2NFVNnTsHXc5QLCdUjG+qePMhsZf5GuwkmikuX3VZtkKJZd0n5zvIv5SezGxOBW5OFL5 zCIsSiEVL7N5zgem/aQ3LMzibWHRCWLB4IpzYKcMnJhYLoWP8WZHcwudRBvq6Znzrtv74/ uhErEx06FLLrvNk58EKJgEPyMBmCY1Q= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-562-zJefPztZPw6Mp1Ujqc9Udg-1; Wed, 23 Dec 2020 14:30:47 -0500 X-MC-Unique: zJefPztZPw6Mp1Ujqc9Udg-1 Received: by mail-qt1-f198.google.com with SMTP id c14so37271qtn.5 for ; Wed, 23 Dec 2020 11:30:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kJjdbOEEwK1FgkEiEXoUPnsXX70awX/jULTzmJUO6PI=; b=LlWhQCukKEa8i+lQofzgqRGPTSN2t5bHuGgece1sScOWRvLwXF7I0mdsz7GWy6gLlg g6ICK9XcnNcFlrs5IQIzqD2TZ3iF2MZNdZOnyLflPBaCxXOEUxHbkoBUYmvmhzB0jG2l a+i174dtVCcIKbKM1pmkt1sA7BQQl7wtcFrYNFMDck2VN3unYyhxjEcTuGi25PJRMQar bff2Pdf1wM9yW9a8fSVp8pFOdWit0/eTS7Wh1sOfJZyKjXgc9ypHvEs7+7TtXZTOnXlz 2XRluG84E9OvMQs68kiLEtpc0AUvHHY5ySP/Mob4FT7Pu2YSyHBju3Bw+AygPX6G0VmU PYXw== X-Gm-Message-State: AOAM533IXmb1JvqJaPizRzoBTldExd0kb6NJSTM/VINhUm1KYPnDyiP/ VHILExIcefQcFKPwV/gV5zrDR7AI+NrB5pi8sB0GKuSKBYoi1OG7a19syTSrnK/S8TdntDe9Jhv pXYgzRwtJcb46M7DjoSU2Rg== X-Received: by 2002:a05:620a:1467:: with SMTP id j7mr11967180qkl.266.1608751846728; Wed, 23 Dec 2020 11:30:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKwbFoyymE7Jwel6VxWx8gXu/NpY8kME52DRUvz+9bwXz0mTvx+Pg/WT3rGFg2zGDGixu97w== X-Received: by 2002:a05:620a:1467:: with SMTP id j7mr11967160qkl.266.1608751846529; Wed, 23 Dec 2020 11:30:46 -0800 (PST) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id e10sm14676767qtr.92.2020.12.23.11.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 11:30:45 -0800 (PST) From: trix@redhat.com To: oulijun@huawei.com, huwei87@hisilicon.com, liweihang@huawei.com, dledford@redhat.com, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] RDMA/hns: remove h from printk format specifier Date: Wed, 23 Dec 2020 11:30:41 -0800 Message-Id: <20201223193041.122850-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Tom Rix This change fixes the checkpatch warning described in this commit commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]") Standard integer promotion is already done and %hx and %hhx is useless so do not encourage the use of %hh[xudi] or %h[xudi]. Signed-off-by: Tom Rix Reviewed-by: Leon Romanovsky --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 833e1f259936..4c068899c52b 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -361,7 +361,7 @@ static int check_send_valid(struct hns_roce_dev *hr_dev, } else if (unlikely(hr_qp->state == IB_QPS_RESET || hr_qp->state == IB_QPS_INIT || hr_qp->state == IB_QPS_RTR)) { - ibdev_err(ibdev, "failed to post WQE, QP state %hhu!\n", + ibdev_err(ibdev, "failed to post WQE, QP state %u!\n", hr_qp->state); return -EINVAL; } else if (unlikely(hr_dev->state >= HNS_ROCE_DEVICE_STATE_RST_DOWN)) {