From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753155AbdK1SXI (ORCPT ); Tue, 28 Nov 2017 13:23:08 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:36179 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbdK1SXH (ORCPT ); Tue, 28 Nov 2017 13:23:07 -0500 X-Google-Smtp-Source: AGs4zMbsBi+ee2b1vRTU9+6024FHZgQ7GZMdn7thAfdkh2rSaSgLlyKComq16FviXRUaya1RptYHPg== Date: Tue, 28 Nov 2017 10:23:03 -0800 From: Jakub Kicinski To: Greg Kroah-Hartman Cc: Nicolai Stange , linux-kernel@vger.kernel.org, oss-drivers@netronome.com, Arnd Bergmann Subject: Re: [PATCH v2] debugfs: add definition of debugfs_real_fops() if CONFIG_DEBUG_FS unset Message-ID: <20171128102303.72b4d0a3@cakuba.netronome.com> In-Reply-To: <20171128142300.GA14578@kroah.com> References: <20171127203544.7708-1-jakub.kicinski@netronome.com> <20171128142300.GA14578@kroah.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Nov 2017 15:23:00 +0100, Greg Kroah-Hartman wrote: > On Mon, Nov 27, 2017 at 12:35:44PM -0800, Jakub Kicinski wrote: > > Recent commit moved the implementation of debugfs_real_fops() > > out of the header file. The declaration, however, is only > > provided if CONFIG_DEBUG_FS is set. Add an empty static inline > > definition for when CONFIG_DEBUG_FS is unset. > > > > Fixes: 7c8d469877b1 ("debugfs: add support for more elaborate ->d_fsdata") > > Signed-off-by: Jakub Kicinski > > --- > > include/linux/debugfs.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > Arnd sent me a better patch for this last week that I'll queue up now. Arnd's patch assumes all call sites can be eliminated, i.e. all of the users are static functions assigned to static fops and compiler is clever enough. It does solve my immediate problem but let's wait and see if that bites us on the rear later :)