From patchwork Wed Mar 27 23:50:48 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: 10874361 X-Patchwork-Delegate: jgg@ziepe.ca 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 E3CB113B5 for ; Wed, 27 Mar 2019 23:51:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D06C728DC9 for ; Wed, 27 Mar 2019 23:51:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C473028DA5; Wed, 27 Mar 2019 23:51:26 +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 CAF9728C82 for ; Wed, 27 Mar 2019 23:51:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731712AbfC0XvJ (ORCPT ); Wed, 27 Mar 2019 19:51:09 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39163 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfC0XvI (ORCPT ); Wed, 27 Mar 2019 19:51:08 -0400 Received: by mail-pg1-f195.google.com with SMTP id k3so6997695pga.6 for ; Wed, 27 Mar 2019 16:51:08 -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=u+4cJHRRN7jknxJ2giGW03aZCvZAhtnRMCf+3phL4Ts=; b=FvOwshm+E6Aoy8+rlqdItWRTBO4/03KdORMgikDnt0pZ7qa7k/VEE/307w2LtUPgM+ WjrnJlNcp3kGemxAE9sRuLgKwnQ1qClXvenjUDftnyN7woH/OSiDTEag3uuKwbfq2Ek7 znWtffzmxnUE37YP5QPyF55mdFv4rcLHaccT0uR2AeifKzbMpdwSR9Z3w0SIf5CHLcPN jP4Zye3lR/RXATfMM1+HgxXNVThUvhiLqrkJmAS9VeYnkvUx9kTrsrwp8VbbIxcXLivq lvuy1m2tHxZED2LAY4Ux4l8bzjYjEUmVGigXws+QzBsR9CE9weUAmc+fjjDyf1mtDjt6 az5w== X-Gm-Message-State: APjAAAU6ar447GkUfh3mLm1q+rFu9IJ/KoQY4WeABFlC38+HWa1DN0Jb WzBJbMt7DWRfhVQZrALSLRc= X-Google-Smtp-Source: APXvYqyKg3N+PPVaL3kHUs62rmrCWOMWXU//fbTmWY5M7so93jEnUaYSzehBG5S/W300psWnSkTbbg== X-Received: by 2002:a62:fb10:: with SMTP id x16mr38159833pfm.5.1553730668252; Wed, 27 Mar 2019 16:51:08 -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 a3sm16493115pfn.182.2019.03.27.16.51.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 16:51:07 -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 v2 4/7] IB/mlx5: Declare devx_async_cmd_event_fops static Date: Wed, 27 Mar 2019 16:50:48 -0700 Message-Id: <20190327235051.67361-5-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT In-Reply-To: <20190327235051.67361-1-bvanassche@acm.org> References: <20190327235051.67361-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. Reviewed-by: Leon Romanovsky Cc: Yishai Hadas Fixes: 6bf8f22aea0d ("IB/mlx5: Introduce MLX5_IB_OBJECT_DEVX_ASYNC_CMD_FD") # v5.1-rc1. Signed-off-by: Bart Van Assche --- 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 9e08df7914aa..fa8d2a9229fa 100644 --- a/drivers/infiniband/hw/mlx5/devx.c +++ b/drivers/infiniband/hw/mlx5/devx.c @@ -1704,7 +1704,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,