From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754688AbcCWK72 (ORCPT ); Wed, 23 Mar 2016 06:59:28 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:34010 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754383AbcCWK7S (ORCPT ); Wed, 23 Mar 2016 06:59:18 -0400 Date: Wed, 23 Mar 2016 12:59:11 +0200 From: Leon Romanovsky To: Arnd Bergmann Cc: Doug Ledford , Matan Barak , Leon Romanovsky , Sean Hefty , Hal Rosenstock , Sagi Grimberg , "David S. Miller" , Haggai Eran , "majd@mellanox.com" , Saeed Mahameed , Maor Gottlieb , Haggai Abramovsky , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] IB/mlx5: fix VFs callback function prototypes Message-ID: <20160323105911.GQ25216@leon.nu> Reply-To: leon@leon.nu Mail-Followup-To: Arnd Bergmann , Doug Ledford , Matan Barak , Leon Romanovsky , Sean Hefty , Hal Rosenstock , Sagi Grimberg , "David S. Miller" , Haggai Eran , "majd@mellanox.com" , Saeed Mahameed , Maor Gottlieb , Haggai Abramovsky , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org References: <1458729502-3155671-1-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458729502-3155671-1-git-send-email-arnd@arndb.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 23, 2016 at 11:37:45AM +0100, Arnd Bergmann wrote: > The previous patch that added a couple of callback functions put > the declarations inside of an #ifdef CONFIG_INFINIBAND_ON_DEMAND_PAGING, > which causes the build to fail if that option is disabled: > > drivers/infiniband/hw/mlx5/main.c: In function 'mlx5_ib_add': > drivers/infiniband/hw/mlx5/main.c:2358:31: error: 'mlx5_ib_get_vf_config' undeclared (first use in this function) > > This moves the four declarations below the #ifdef section so they > are always available. > > Signed-off-by: Arnd Bergmann > Fixes: eff901d30e6c ("IB/mlx5: Implement callbacks for manipulating VFs") Thanks, Reviewed-by: Leon Romanovsky