From patchwork Wed Sep 20 10:01:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13392446 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB92BCE79B4 for ; Wed, 20 Sep 2023 10:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234253AbjITKCW (ORCPT ); Wed, 20 Sep 2023 06:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234283AbjITKCV (ORCPT ); Wed, 20 Sep 2023 06:02:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C206BC2 for ; Wed, 20 Sep 2023 03:02:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC84CC433C9; Wed, 20 Sep 2023 10:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695204135; bh=9AB5Xrqd9JGHrc0Re4GbRE58CUZg3MP+CvlPQhDiwRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Di8ftGAb+DkcLq+ZCsvrQcym/rIItRJklzIXx96mejuOCJ1BHuv2/rj/orJu+2yjL z/Peh4vGdKKUSmuNBI56ImAxDdFhgRWckFepXvp28snxX1Jf8MnJ7HgnzIgAPEkStC v5Xsh/bUfx8scvzPw5UZPBm9TOFjlJy49Wr3xWh2KhqypqnEbFw+iinl5G1c/hY3fJ kL0kkeWBaJWbmAPap7apRd65XxDDc7HekjUviD85c1e5dqIBbMUk3anYgTLMYNog2l UsauS9bK9isXsHIUmMB5EUk+5Y8IMBZiqiioDTxigmOavz27JXWduYHiwn7+WB8XMm 5saI2KQZ2J8EQ== From: Leon Romanovsky To: Jason Gunthorpe Cc: Shay Drory , Edward Srouji , linux-rdma@vger.kernel.org, Maor Gottlieb , Mark Bloch , Michael Guralnik Subject: [PATCH rdma-rc 3/3] RDMA/mlx5: Fix NULL string error Date: Wed, 20 Sep 2023 13:01:56 +0300 Message-ID: <8638e5c14fadbde5fa9961874feae917073af920.1695203958.git.leonro@nvidia.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Shay Drory checkpath is complaining about NULL string, change it to 'Unknown'. Fixes: 37aa5c36aa70 ("IB/mlx5: Add UARs write-combining and non-cached mapping") Signed-off-by: Shay Drory Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index aed5cdea50e6..555629b798b9 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -2084,7 +2084,7 @@ static inline char *mmap_cmd2str(enum mlx5_ib_mmap_cmd cmd) case MLX5_IB_MMAP_DEVICE_MEM: return "Device Memory"; default: - return NULL; + return "Unknown"; } }