From patchwork Thu Mar 21 17:24:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10864145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2DD98139A for ; Thu, 21 Mar 2019 17:24:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B43C2A247 for ; Thu, 21 Mar 2019 17:24:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 000522A250; Thu, 21 Mar 2019 17:24:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8ECB02A252 for ; Thu, 21 Mar 2019 17:24:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728404AbfCURYb (ORCPT ); Thu, 21 Mar 2019 13:24:31 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45217 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727921AbfCURYa (ORCPT ); Thu, 21 Mar 2019 13:24:30 -0400 Received: by mail-pg1-f196.google.com with SMTP id y3so4633659pgk.12 for ; Thu, 21 Mar 2019 10:24:30 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=4nY4zfVIO3K+CBtBB7w8ykP6Q2znr7YAXHF6u34DmpU=; b=gIs5/ZAlmriUnvqVQh0RmJZ0tHxvEaFryfUuNvEoZ6vuvSpuvg/E55w0xI/BX9jPXB KLWfkgCciDfUYZZiZo9Bu+KfGvkUuK0eDbgYbA8olGn+Z0gU34wgpCKfnDbKhNcub9s4 ZpAshyIfqigJs0Noh1ghfSIsE/FVVaaZhHpjOXfa3wA12uDIWfrI3qKpzTQR8sI3d9VW xkbbq+Dg35J+D8UJYtFVckSVTSIuO9hu1EUoXXy387wvJb8Eg+HGvPHoeNEWiOAmIMhA W5xBDjFIOdlMcV6GTaa5xqT+bWvKccN8S7A7phcD6REh/YwdsRtloZGBQZvcKbreSsEO M1jA== X-Gm-Message-State: APjAAAX/MdaMKOiMXCfYsixhKo+jxUpTG7jNu8pcVxy1nEB9MIXnrvm2 XS9kyLRGZC8bVDbUnu6tWKU= X-Google-Smtp-Source: APXvYqwcqKjmKRX4Q/SykdzwGbLaM0hIKvK1ZiCsZrxADc3yv0sa3pagfARyslmq4pLD1IIjHta/Gg== X-Received: by 2002:a17:902:2a29:: with SMTP id i38mr4820216plb.22.1553189069737; Thu, 21 Mar 2019 10:24:29 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id s184sm7528549pfb.1.2019.03.21.10.24.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 10:24:28 -0700 (PDT) From: Bart Van Assche To: Jason Gunthorpe Cc: Leon Romanovsky , Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Yishai Hadas Subject: [PATCH 5/8] IB/mlx5: Declare devx_async_cmd_event_fops static Date: Thu, 21 Mar 2019 10:24:14 -0700 Message-Id: <20190321172417.77869-6-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT In-Reply-To: <20190321172417.77869-1-bvanassche@acm.org> References: <20190321172417.77869-1-bvanassche@acm.org> MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Avoid that sparse complains about a missing declaration. Cc: Yishai Hadas Fixes: 6bf8f22aea0d ("IB/mlx5: Introduce MLX5_IB_OBJECT_DEVX_ASYNC_CMD_FD") # v5.1-rc1. Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/devx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c index eaa055007f28..5cdf56838319 100644 --- a/drivers/infiniband/hw/mlx5/devx.c +++ b/drivers/infiniband/hw/mlx5/devx.c @@ -1686,7 +1686,7 @@ static __poll_t devx_async_cmd_event_poll(struct file *filp, return pollflags; } -const struct file_operations devx_async_cmd_event_fops = { +static const struct file_operations devx_async_cmd_event_fops = { .owner = THIS_MODULE, .read = devx_async_cmd_event_read, .poll = devx_async_cmd_event_poll,