From patchwork Wed Dec 23 19:31:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 352239 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 31AB0C433E0 for ; Wed, 23 Dec 2020 19:33:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EF305223E4 for ; Wed, 23 Dec 2020 19:33:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728649AbgLWTdW (ORCPT ); Wed, 23 Dec 2020 14:33:22 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35238 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727794AbgLWTdV (ORCPT ); Wed, 23 Dec 2020 14:33:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608751915; 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=IMMzliPJltnJSKAXZOaKlHE4t3zwiI7ZHw+YJUrquL4=; b=NhA6RvYjmlaKmL2I4shcyZFCCtDfI9g/jpYlosqlFKBLCkWBw8LNJ2rqAPIm5b+v75x8U/ fryysQwDhgidU8x41bS5YXAqQ29bguDYRlIf0ntnl3YA7k2J5/nZMv2zNRpMXYbUtc4HsU WHwbjl4yY/It0RAW7m5ZgufkN15LSzY= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-443-FM1aIxNeOC-64WFJiY0i9A-1; Wed, 23 Dec 2020 14:31:53 -0500 X-MC-Unique: FM1aIxNeOC-64WFJiY0i9A-1 Received: by mail-qt1-f197.google.com with SMTP id n12so31113qta.9 for ; Wed, 23 Dec 2020 11:31:53 -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=IMMzliPJltnJSKAXZOaKlHE4t3zwiI7ZHw+YJUrquL4=; b=WrYoXoI1OytRXp2Vqct4tGkoqpCjN3TwahbsvLy5IotF+1FseoRxB0phsB34ikt0LK B6OjazaEHKW4yteT8gQwIWPmx2Q4ndpDGMA4oee4Gugc84UqzqjNJuTEILx4XO9rQe2D p5KnYaUUrIEQw9vIdQRLIT/WNMf9WS7t6TV3iWTuloQcG06HdQHE2f7WGeLsm/iY4/IP 6MLcA0y8Uh3dP4pAuyp8G6DdwCR6JgqG/MKctEN82UQ+hI5wf0rz+JPN+whX1AwMyhH2 ab1HOmLFtccT+E3q77vXDSSLD0ag3j5AaPstKsPWbo0vBWE36uxtb6EShTkVlizKsxXF ZLTw== X-Gm-Message-State: AOAM5327qVALbLWgNqAtyUBzG+v+eofn4tm7u0ZC5FPSTSJdqCMgQc8n vi+dk9p/JIUxjSyKUzop1qxuXVBcYNS+jKL1mrqRhVRoszZphvZ9zA2sC2wN+0RbRkHJVhD7mPp 4EREnAoaWlLbRLOgn X-Received: by 2002:a37:9f82:: with SMTP id i124mr28376814qke.264.1608751913032; Wed, 23 Dec 2020 11:31:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwi/OMM/MITqjGQW17zbEfqi8WbAkgk/usV9HUq/eBvDm1TbQeVMU4ddfCjtHUaIjfIMqO1sg== X-Received: by 2002:a37:9f82:: with SMTP id i124mr28376790qke.264.1608751912830; Wed, 23 Dec 2020 11:31:52 -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 f6sm15956912qkh.2.2020.12.23.11.31.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 11:31:52 -0800 (PST) From: trix@redhat.com To: netanel@amazon.com, akiyano@amazon.com, gtzalik@amazon.com, saeedb@amazon.com, zorik@amazon.com, davem@davemloft.net, kuba@kernel.org, sameehj@amazon.com, shayagr@amazon.com, amitbern@amazon.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] net: ena: remove h from printk format specifier Date: Wed, 23 Dec 2020 11:31:44 -0800 Message-Id: <20201223193144.123521-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@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 --- drivers/net/ethernet/amazon/ena/ena_com.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net/ethernet/amazon/ena/ena_com.c index 02087d443e73..764852ead1d6 100644 --- a/drivers/net/ethernet/amazon/ena/ena_com.c +++ b/drivers/net/ethernet/amazon/ena/ena_com.c @@ -863,7 +863,7 @@ static u32 ena_com_reg_bar_read32(struct ena_com_dev *ena_dev, u16 offset) if (unlikely(i == timeout)) { netdev_err(ena_dev->net_device, - "Reading reg failed for timeout. expected: req id[%hu] offset[%hu] actual: req id[%hu] offset[%hu]\n", + "Reading reg failed for timeout. expected: req id[%u] offset[%u] actual: req id[%u] offset[%u]\n", mmio_read->seq_num, offset, read_resp->req_id, read_resp->reg_off); ret = ENA_MMIO_READ_TIMEOUT; @@ -2396,7 +2396,7 @@ int ena_com_fill_hash_function(struct ena_com_dev *ena_dev, if (key) { if (key_len != sizeof(hash_key->key)) { netdev_err(ena_dev->net_device, - "key len (%hu) doesn't equal the supported size (%zu)\n", + "key len (%u) doesn't equal the supported size (%zu)\n", key_len, sizeof(hash_key->key)); return -EINVAL; }